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.

38 lines
1.4 KiB

7 years ago
<?php
//项目绝对路径
6 years ago
define("APP","homedir");
7 years ago
//载入数据库类
include_once(APP."functions/class/Medoo.php");
$config = array(
6 years ago
"domain" => "https://imgurl.org/", //站点地址
"user" => "imguser", //管理员账号
"password" => "imgpass", //管理员密码
7 years ago
"limit" => 5, //游客上传数量限制
"watermark" => "imgurl.org", //图片文字水印
"userdir" => "temp", //游客上传目录,一般不用做修改
"admindir" => "upload", //管理员上传目录,一般不用做修改
"datadir" => APP."db/imgurl.db3" //数据库路径,一般不用做修改
);
// TinyPNG压缩图片
$tinypng = array(
"option" => false,
"key" => array(
"xxx", //TinyPNG API KEY,支持填写多行key
7 years ago
"xxx" //如果只有一个key,请删除此行
7 years ago
)
);
//ModerateContent 图片鉴黄,请参考帮助文档:https://doc.xiaoz.me/docs/imgurl/imgurl-jh
$ModerateContent = array(
"option" => false,
"key" => "xxx"
);
//初始化Medoo
use Medoo\Medoo;
$database = new medoo([
'database_type' => 'sqlite',
'database_file' => $config['datadir']
]);
?>