php 网站在线安装源码
/*
+-------------------------------------------
|
| Technology of WeSpace Software
| ========================================
| Powered by WeSpace
| (c) 2006 wane.net
| F_Space Ver3.x
| ========================================
| Site: http://www.wesofts.com
|
+-------------------------------------------
| Autohr : wsfuyibing
| Email : websearch@163.com
| MSN : websearch@163.com
+-------------------------------------------
*/
error_reporting(E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
define('IN_www.111cn.net',true);
define('IN_LICENSED',true);
define('WANE_ROOT','../');
$timestamp = time();
$configfile = '../config.inc.php';
/*
+-------------------------------------------
+ Check PHP version
+-------------------------------------------
*/
if (@phpversion()
{
$_COOKIE = &$HTTP_COOKIE_VARS;
$_SERVER = &$HTTP_SERVER_VARS;
$_FILES = &$HTTP_POST_FILES;
$_GET = &$HTTP_GET_VARS;
$_POST = &$HTTP_POST_VARS;
}
/*
+-------------------------------------------
+ Language
+-------------------------------------------
*/
$lang = in_array($_GET['lang'],array('gbk','big5','utf-8-gbk','utf-8-big5')) ? $_GET['lang'] : 'utf-8-gbk';
$charset = substr($lang ,0,5);
if (!file_exists('./'.$lang.'/language.php'))
{
exit('Can not load language file . ');
}
else
{
require_once './'.$lang.'/language.php';
}
/*
+-------------------------------------------
+ Step
+-------------------------------------------
*/
$step = file_exists('../upload/install.lock') ? '0' : ($_GET['step'] ? $_GET['step'] : '1');
$steps = 16;
$step = $step > $steps ? $steps : $step;
/*
+-------------------------------------------
+ Template
+-------------------------------------------
*/
$tpl_header = ''."\n";
$tpl_header .= ''."\n";
$tpl_header .= '
'.$tplang['title'].' | '."\n\t\t".''.($step > 1 ? $tplang['lang_'.$lang].' ' : '').$tplang['step_name'].': '.$tplang['step'.$step].'('.$tplang['step_cur'].$step.$tplang['step_unit'].'/'.$tplang['step_total'].$steps.$tplang['step_unit'].') | '."\n\t".'
'.$tplang['footer'].' | '."\n\t".'
=$tplang['step0_1']?> |
=$tplang['step_last']?> =$tplang['step_next']?> |
=$tplang['step_last']?> =$tplang['step_next']?> |
=$tplang['step4_0']?> |
=$tplang['step4_0']?> |
=$tplang['step6_1_0']?> |
=$tplang['step6_1_1']?> |
=$tplang['step6_2_0']?> |
=$tplang['step6_2_1']?> |
=$tplang['step_last']?> =$tplang['step_next']?> |
=$tplang['step4_0']?> |
=$tplang['step7_0_0']?> (=$sqlfile?>) |
=$tplang['step7_0_1']?> (=$sqlfile?>) |
=$tplang['step7_1']?> |
=$tplang['step_last']?> =$tplang['step_next']?> |
=$tplang['step4_0']?> |
=$tplang['step7_0_0']?> (=$sqlfile?>) |
=$tplang['step7_0_1']?> (=$sqlfile?>) |
=$tplang['step14_1']?> |
=$tplang['step_last']?> =$tplang['step_next']?> |
=$tplang['step15_1_0']?> =$tplang['step_last']?> |
=$tplang['step16_1']?> =$tplang['step16_2']?> |
=$tplang['step15_u']?>:=$username?> =$tplang['step15_p']?>:=$password?> =$tplang['step15_s']?>:=$sex=='1' ? $tplang['step15_s1'] : $tplang['step15_s2']?> =$tplang['step15_e']?>:=$email?> |
=$tplang['step16_1']?> =$tplang['step16_2']?> |