www.gusucode.com > HadSky PHP轻论坛系统源码 v2.4.2源码程序 > ytqlt_v2.4.2.0701/install/index.php

    <?php
/*
 * HadSky - 安装程序
 * 作者:蒲乐天
 * QQ:632827168
 */
error_reporting(0);
date_default_timezone_set("PRC");
if (file_exists(dirname(__FILE__) . '/install.locked')) {
	exit("install locked!");
}

define('puyuetian', 'hadsky.com');
//基础框架加载
require dirname(__FILE__) . "/../puyuetian/variable.php";
require dirname(__FILE__) . "/../puyuetian/function.php";
//模板路径所在
$tpath = dirname(__FILE__) . '/template/';

$step = Cnum($_GET['step'], 1);

switch ($step) {
	case 1 :
		$HTMLCODE .= template("{$tpath}step1.html", TRUE);
		break;
	case 2 :
		$HTMLCODE .= template("{$tpath}step2.html", TRUE);
		break;
	case 3 :
		require dirname(__FILE__) . '/phpscript/install.php';
		break;
	default :
		$error = "无效的参数!";
		template("{$tpath}htmltip.html");
		exit();
		break;
}

template("{$tpath}frame.html");