|
il y a 4 ans | |
---|---|---|
admin | il y a 4 ans | |
apps | il y a 4 ans | |
core | il y a 4 ans | |
data | il y a 4 ans | |
install | il y a 4 ans | |
plugins | il y a 4 ans | |
public | il y a 4 ans | |
templates | il y a 4 ans | |
.gitignore | il y a 4 ans | |
.htaccess | il y a 5 ans | |
LICENSE | il y a 5 ans | |
README.md | il y a 5 ans | |
favicon.ico | il y a 5 ans | |
index.php | il y a 4 ans | |
安装说明.md | il y a 4 ans |
MeiuPic升级为多用户相册系统了!可以轻松构建图虫、500px之类的图片社区。
install/install.sql
导入到数据库中。data/config.default.php
修改为 data/config.php
,并设置您的数据库相关配置:
php
'database' => array(
'adapter' => 'pdomysql',
'host' => '127.0.0.1',
'port' => '3306',
'dbuser' => 'root',
'dbpass' => '',
'dbname' => 'meiupic',
'pconnect' => false,
'charset' => 'utf8',
'pre' => ''
),
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1&$args last;
break;
}
}
admin
密码:admin
体验吧。data/config.php
中的
php
'base_url' => '/目录/',
'admin_base' => '/目录/admin/',
'public_url' => '/目录/public/',
'storage' => array(
'adapter' => 'file', //存储引擎,目前支持file,qiniu两种
'setting' => array(
'dirpath' => ROOT_DIR.'public/upfiles/',
'url_pre' => '/目录/public/upfiles/'
)
),
location / {
if (!-e $request_filename) {
rewrite ^/目录/(.*)$ /目录/index.php?q=$1&$args last;
break;
}
}
可以通过修改配置文件直接支持七牛存储
'storage' => array(
'adapter' => 'qiniu', //存储引擎,目前支持file,qiniu两种
'setting' => array(
'bucket' => 'bucket名字',
'access_key' => '请填写七牛的access_key',
'secret_key' => '请填写七牛的secret_key',
'url_pre' => 'http://七牛bucket绑定的域名/',
'area' => 'z0' //这里输入七牛的区域
)
),
如果发现了bug,欢迎在issues中提交。