mirror of https://github.com/helloxz/imgurl.git
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.
41 lines
1.3 KiB
41 lines
1.3 KiB
<?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; |
|
} |
|
?>
|