Skip to content
Branch: master
Clone or download
Latest commit 2fab80e Oct 27, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
content 1.4 Oct 27, 2017
require 1.4 Oct 27, 2017
static 1.4 Oct 27, 2017
.htaccess 2017-9-10 Sep 10, 2017
LICENSE Initial commit Sep 10, 2017
README.md 更新说明 Oct 27, 2017
ajax.php 2017-9-10 Sep 10, 2017
contents.sql 2017-09-10 Sep 10, 2017
index.php 1.4 Oct 27, 2017
options.sql 修复phpmyadmin不显示修改的问题 Oct 7, 2017

README.md

伪静态

Apache

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^mous/page/(.*)$ /index.php?mous=&page=$1
RewriteRule ^mous/(.*)/page/(.*)$ /index.php?mous=$1&page=$2
RewriteRule ^mous/(.*)$ /index.php?mous=$1&page=1
RewriteRule ^pages/(.*)$ /index.php?pages=$1
</IfModule>

Nginx

rewrite ^/mous/page/(.*)$ /index.php?mous=&page=$1;
rewrite ^/mous/(.*)/page/(.*)$ /index.php?mous=$1&page=$2;
rewrite ^/mous/(.*)$ /index.php?mous=$1&page=1;
rewrite ^/pages/(.*)$ /index.php?pages=$1;

数据库说明

导入数据库

先将根目录内的 options.sql 和 contents.sql 导入数据库

连接数据库

在 /require/function.php 第三行 更改为自己的数据库信息

'mysql'=>'localhost',	//数据库地址
'name'=>'root',		//数据库登录名
'password'=>'',		//数据库密码
'dbname'=>'lovewall'	//数据库名
You can’t perform that action at this time.