日期:2014-05-17 浏览次数:20549 次
<?php
echo"<meta http-equiv='Content-Type' content='text/html' charset='UTF-8' />";
if(file_exists("chen")){
echo"你已经成功安装过!如果你要重新安装,请删除目录下的‘chen’文件再运行安装";
exit();
}
$do=isset($_GET['do'])?$_GET['do']:sq;
$sq=$_GET['sqm'];
$da=$_GET['do'];
if($da=='sq2'){
file_get_contents('http://92gq.tk/shou.php');
}
include('system.php');
$sqm=curl_chen('http://92gq.tk/sqmm.php','chen=chen');
$a1=explode(',',$sqm);
if($do=='sq'){
echo"<form action='install.php' method='get'>
请输入给你的授权码:<br><input type='hidden' name='do' value='sq2'/><input type='text' name='sqm' value=''/><br/>
<input type='submit' value='确认授权'/>";
}
if($do=='sq2'){
if($sq==$a1[1]){
echo"授权成功,请<a href='install.php?do=".$sq."&sqm=".$sq."'>下一步</a>";
}else{
echo"授权失败,请询问你的授权码是否失效或错误!";
}
}
if($do==$a1[1]){
echo"<pre>";
include("shuoming.txt");
echo"</pre>";
if(function_exists(trim(curl_init)) and function_exists(trim(file_get_contents))){echo '<font color="#33ff33">空间服务器支持!</font>';
echo"<br>支持,请<a href='install.php?do=".$sq."2&sqm=".$sq."'>下一步</a>";
}else{echo '<font color="red">空间服务器不支持!</font>';
if(function_exists(trim(curl_init))){}else{echo"<br>由于你的空间不支持curl不能够使用功能,请更换空间.<br>";}if(function_exists(trim(trim(file_get_contents)))){}else{echo"<br>由于你的空间关闭文件读写,不能够使用功能,请更改目录权限为777.<br>";}
}}elseif($do ==$a1[1].'2'){
echo"
数据库信息:<br>
<form action='install.php?do=bc' method='post'>
数据库地址:<input type='text' name='dz' value='localhost'/><br/>
数据库账号:<input type='text' name='zh' value=''/><br/>
数据库密码:<input type='password' name='mm' value=''/><br/>
数据库名:<input type='text' name='km' value=''/><br/>
管理密码:<input type='password' name='pass' value=''/><br/>
邀请码:<input type='text' name='yq' value=''/><br/>
系统网标:<input type='text' name='mb' value=''/><br/>
宣传后缀:<input type='text' name='qd' value=''/><br/>
<input type='submit' name='an' value='保存'/>
";
}elseif($do == 'bc'){
$pdz=$_POST['dz'];
$pzh=$_POST['zh'];
$pmm=$_POST['mm'];
$pmk=$_POST['km'];
$pmb=$_POST['mb'];
$pass=$_POST['pass'];
$yq=$_POST['yq'];
$qd=$_POST['qd'];
$connfile='
<?php
include"cona.php";
$conn=mysql_connect("'.$pdz.'","'.$pzh.'","'.$pmm.'") or
die("现在系统繁忙,请稍后再试...");
mysql_select_db("'.$pmk.'",$conn);
mysql_query("set names \'utf8\'");
$b="v2.8";
date_default_timezone_set("PRC");
$date = date("Y-m-j H:i:s ");
?>
';
$ad='
<?php
$password = \''.$pass.'\';
$g = \''.$pmb.'\';
$yqm= \''.$yq.'\';
$qd= \''.$qd.'\';
$x="80";
?>
';
$fp=fopen("cona.php","w");
fwrite($fp,$ad);
fclose($fp);
$fp=fopen("conn.php","w");
fwrite($fp,$connfile);
fclose($fp);
echo"文件保存成功!<a href='install.php?do=dr'>点击继续</a>";
}elseif($do