ImgURL是一个简单、纯粹的图床程序,让个人图床多一个选择。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
940 B

7 years ago
<?php
7 years ago
$App = getcwd();
$App = str_replace('admin','',$App);
7 years ago
require_once( 'sdk/Medoo.php' );
use Medoo\Medoo;
7 years ago
//echo $App;
7 years ago
$database = new medoo([
'database_type' => 'sqlite',
7 years ago
'database_file' => $App.'/data/imgurl.db3'
7 years ago
]);
7 years ago
$config = array(
7 years ago
'domain' => 'http://localhost/imgurl/', //网站域名
'watermark' => 'false', //文字水印
'userdir' => 'temp', //访客上传目录,一般保持默认
'admindir' => 'upload', //管理员上传目录,一般保持默认
'username' => 'xiaoz', //管理员账号
'password' => 'xiaoz.me', //管理员密码
7 years ago
'tinypng' => '' //使用TinyPNG压缩图片,填写TinyPNG KEY,为空则不启用压缩
7 years ago
);
7 years ago
//是否启用腾讯万象优图鉴黄识别
$identify = array(
'eroticism' => false, //如果此项为true则下面必须填写,请参考帮助文档。
'APP_ID' => '',
'SECRET_ID' => '',
'SECRET_KEY' => '',
'BUCKET' => ''
)
7 years ago
?>