PHP 图片分享系统 Linger

软件介绍

Linger 是 PHP 图片分享系统。

一个精简的图片分享系统网站,采用Bootstrap前端框架,支持部分页面的移动端自适应。同时采用HTML5进行图片批量上传。

使用了一个简单的时间线动态展示,可作为简易的图片社交社区。

有一个完整的用户中心和通知中心,管理员能进行一定的功能管理,同时对CDN进行完美支持。

http://git.oschina.net/iloveyulove/Linger

安装步骤

cd config
mv all-simple.php all.php
vim all.php //配置正确的数据库连接信息
访问 http://xxx.xxx/install.php 进行安装

安装后会创建一个管理员账户,用该账户登录可访问后台,然后进行详细的配置。

网站配置

由于完全依赖于伪静态,所以必须对文件进行重定向。

nginx配置

location / {
    if (!-f $request_filename){
        rewrite (.*) /index.php;
    }
}
# 重定向404页面,防止静态资源404无法获取
error_page 404 /index.php;

Apache 配置

RewriteEngine On
RewriteBase /

#不存在的文件直接重定向
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php [L]

同时,对于Apache也可以使用PATH_INFO的形式,如 index.php/Home .

系统默认将Web配置目录放到web文件夹下,其他对应的文件sys,app,install等文件均在web目录的上级目录, 这是为了安全性的考虑,如果有需要将文件调整到一个目录,可具体参考sys/config.php文件调整目录结构,并调整index.php文件的具体参数 同时如果未安装系统,同时可能需要修改install.php中的文件参数。

本文地址:https://codercto.com/soft/d/25141.html

Rationality for Mortals

Rationality for Mortals

Gerd Gigerenzer / Oxford University Press, USA / 2008-05-02 / USD 65.00

Gerd Gigerenzer's influential work examines the rationality of individuals not from the perspective of logic or probability, but from the point of view of adaptation to the real world of human behavio......一起来看看 《Rationality for Mortals》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具