diff --git a/install/index.php b/install/index.php index 07be630..8782547 100644 --- a/install/index.php +++ b/install/index.php @@ -38,17 +38,17 @@ function checkconnect($connect){ } } -function random($length, $numeric = 0) { - $seed = base_convert(md5(microtime().$_SERVER['DOCUMENT_ROOT']), 16, $numeric ? 10 : 35); - $seed = $numeric ? (str_replace('0', '', $seed).'012340567890') : ($seed.'zZ'.strtoupper($seed)); - $hash = ''; - $max = strlen($seed) - 1; - for($i = 0; $i < $length; $i++) { - $hash .= $seed[mt_rand(0, $max)]; - } - return $hash; -} -$ver = '1.1.1' +// function random($length, $numeric = 0) { +// $seed = base_convert(md5(microtime().$_SERVER['DOCUMENT_ROOT']), 16, $numeric ? 10 : 35); +// $seed = $numeric ? (str_replace('0', '', $seed).'012340567890') : ($seed.'zZ'.strtoupper($seed)); +// $hash = ''; +// $max = strlen($seed) - 1; +// for($i = 0; $i < $length; $i++) { +// $hash .= $seed[mt_rand(0, $max)]; +// } +// return $hash; +// } +$ver = '1.1.2' ?> @@ -101,18 +101,29 @@ $_SESSION['checksession']=1; - PHP 5.4+ + PHP 5.4及以上 必须 ')?''.PHP_VERSION.'':''.PHP_VERSION.''; ?> PHP版本支持 - - Mysqli + PDO 必须 - + 数据库连接 + + file_get_contents() + 必须 + + 读取文件 + + + session + 必须 + 可用':'不支持'; ?> + PHP必备功能 + @@ -132,11 +143,7 @@ $_SESSION['checksession']=1;
下一步 -HTML; -else +if(!defined("SAE_ACCESSKEY")) echo << @@ -311,7 +318,7 @@ if($e==0) {
array('method'=>"GET",'timeout'=>10)))); + @file_get_contents($domian[1].'://dev.hao.'.$domian[0].'.com/installs?v='.$domian[2].'&date='.date('Y-m-d H:i').'&url='.$_SERVER['HTTP_HOST'], false, stream_context_create(array('http'=>array('method'=>"GET",'timeout'=>10)))); @file_put_contents("install.lock",'安装锁'); echo '
安装完成!管理账号和密码是:admin/123456

>>网站首页>>后台管理
更多设置选项请登录后台管理进行修改。

如果你的空间不支持本地文件读写,请自行在install/ 目录建立 install.lock 文件!
提示:本程序使用Bing每日壁纸作为网站背景
添加每天的CRON任务[非必需]
GET http://'.$_SERVER['HTTP_HOST'].'/assets/img/cron.php
执行后会每天更新网站背景为Bing每日壁纸,忽略将使用默认图片作为背景
'; ?>