mirror of https://github.com/helloxz/imgurl
parent
c485e87414
commit
3c91867ae9
@ -1,14 +1,14 @@
|
||||
<?php
|
||||
//项目绝对路径
|
||||
define("APP","D:/wwwroot/imgurl/");
|
||||
define("APP","homedir");
|
||||
|
||||
//载入数据库类
|
||||
include_once(APP."functions/class/Medoo.php");
|
||||
|
||||
$config = array(
|
||||
"domain" => "http://localhost/imgurl/", //站点地址
|
||||
"user" => "xiaoz", //管理员账号
|
||||
"password" => "xiaoz.me", //管理员密码
|
||||
"domain" => "https://imgurl.org/", //站点地址
|
||||
"user" => "imguser", //管理员账号
|
||||
"password" => "imgpass", //管理员密码
|
||||
"limit" => 5, //游客上传数量限制
|
||||
"watermark" => "imgurl.org", //图片文字水印
|
||||
"userdir" => "temp", //游客上传目录,一般不用做修改
|
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
//载入类
|
||||
//echo __DIR__."/functions/class/class.install.php";
|
||||
include_once(__DIR__."/functions/class/class.install.php");
|
||||
@$setup = (int)$_GET['setup'];
|
||||
|
||||
$install = new Install;
|
||||
$statusarr = $install->check();
|
||||
|
||||
$info = $install->info();
|
||||
|
||||
switch ($setup) {
|
||||
case 1:
|
||||
//载入模板
|
||||
include_once("./tpl/user/header.php");
|
||||
include_once("./tpl/user/install1.php");
|
||||
include_once("./tpl/user/footer.php");
|
||||
break;
|
||||
case 2:
|
||||
include_once("./tpl/user/header.php");
|
||||
include_once("./tpl/user/install2.php");
|
||||
include_once("./tpl/user/footer.php");
|
||||
break;
|
||||
case 3:
|
||||
//获取用户名
|
||||
@$data['user'] = $_POST['user'];
|
||||
//获取用户密码
|
||||
@$data['pass1'] = $_POST['pass1'];
|
||||
@$data['pass2'] = $_POST['pass2'];
|
||||
@$data['domain'] = $_POST['domain'];
|
||||
@$data['homedir'] = $_POST['homedir'];
|
||||
$install->setup($data);
|
||||
include_once("./tpl/user/header.php");
|
||||
include_once("./tpl/user/install3.php");
|
||||
include_once("./tpl/user/footer.php");
|
||||
break;
|
||||
default:
|
||||
header("location:./install.php?setup=1");
|
||||
break;
|
||||
}
|
||||
?>
|
Loading…
Reference in new issue