<?php
if(!defined('InEmpireBak'))
{
	exit();
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>鍙冩暩瑷疆</title>
<link href="images/css.css" rel="stylesheet" type="text/css">
<script>
function ChangeSet(cset){
	if(cset=="setuser")
	{
		setdb.style.display="none";
		setuser.style.display="";
		setck.style.display="none";
		//setlang.style.display="none";
		setother.style.display="none";
	}
	else if(cset=="setck")
	{
		setdb.style.display="none";
		setuser.style.display="none";
		setck.style.display="";
		//setlang.style.display="none";
		setother.style.display="none";
	}
	else if(cset=="setlang")
	{
		setdb.style.display="none";
		setuser.style.display="none";
		setck.style.display="none";
		//setlang.style.display="";
		setother.style.display="none";
	}
	else if(cset=="setother")
	{
		setdb.style.display="none";
		setuser.style.display="none";
		setck.style.display="none";
		//setlang.style.display="none";
		setother.style.display="";
	}
	else
	{
		setdb.style.display="";
		setuser.style.display="none";
		setck.style.display="none";
		//setlang.style.display="none";
		setother.style.display="none";
	}
}
</script>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr> 
    <td>浣岖疆锛?a href="SetDb.php">鍙冩暩瑷疆</a></td>
  </tr>
</table>
<br>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#0472BC">
  <tr bgcolor="#FFFFFF"> 
    <td width="20%" height="23" id="dbtd" onmouseover="this.style.backgroundColor='#DBEAF5'" onmouseout="this.style.backgroundColor='#ffffff'"> 
      <div align="center"><strong><a href="#ebak" onclick="javascript:ChangeSet('setdb');">鏁告摎搴ō缃?/a></strong></div></td>
    <td width="20%" onmouseover="this.style.backgroundColor='#DBEAF5'" onmouseout="this.style.backgroundColor='#ffffff'"> 
      <div align="center"><strong><a href="#ebak" onclick="javascript:ChangeSet('setuser');">甯宠櫉瑷疆</a></strong></div></td>
    <td width="20%" onmouseover="this.style.backgroundColor='#DBEAF5'" onmouseout="this.style.backgroundColor='#ffffff'"> 
      <div align="center"><strong><a href="#ebak" onclick="javascript:ChangeSet('setck');">COOKIE瑷疆</a></strong></div></td>
    <td width="20%" onmouseover="this.style.backgroundColor='#DBEAF5'" onmouseout="this.style.backgroundColor='#ffffff'"> 
      <div align="center"><strong><a href="#ebak" onclick="javascript:ChangeSet('setother');">鍏跺畠瑷疆</a></strong></div></td>
  </tr>
</table>
<form name="form1" method="post" action="phome.php">
  <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#0472BC" id="setdb">
    <tr> 
      <td height="25" colspan="2"><font color="#FFFFFF"><strong>鏁告摎搴ō缃?
        <input name="phome" type="hidden" id="phome" value="SetDb">
        </strong></font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><strong>MYSQL鐗堟湰</strong></td>
      <td height="25" bgcolor="#FFFFFF"><p> 
          <input type="radio" name="mysqlver" value="5.0"<?=$phome_db_ver=='5.0'?' checked':''?>>
          MYSQL5.*&nbsp;&nbsp; 
          <input type="radio" name="mysqlver" value="4.1"<?=$phome_db_ver=='4.1'?' checked':''?>>
          MYSQL 4.1.*&nbsp;&nbsp; 
          <input type="radio" name="mysqlver" value="4.0"<?=$phome_db_ver=='4.0'?' checked':''?>>
          MYSQL 4.0.*/3.*&nbsp;&nbsp; 
          <input type="radio" name="mysqlver" value="auto"<?=$phome_db_ver==''?' checked':''?>>
          镊嫊阆告搰</p></td>
    </tr>
    <tr> 
      <td width="24%" height="25" bgcolor="#FFFFFF"><strong>鏁告摎搴湇鍕椤櫒</strong></td>
      <td width="76%" height="25" bgcolor="#FFFFFF"><input name="dbhost" type="text" id="dbhost" value="<?=$phome_db_server?>"> 
        <font color="#666666">(姣斿锛歭ocalhost)</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">鏁告摎搴湇鍕椤櫒绔彛</td>
      <td height="25" bgcolor="#FFFFFF"><input name="dbport" type="text" id="dbport" value="<?=$phome_db_port?>"> 
        <font color="#666666">(涓€鑸儏娉佷笅镣虹┖鍗冲彲)</font> </td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><strong>鏁告摎搴敤鎴跺悕</strong></td>
      <td height="25" bgcolor="#FFFFFF"><input name="dbusername" type="text" id="dbusername" value="<?=$phome_db_username?>"> 
        <font color="#666666">(姣斿锛歳oot)</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><strong>鏁告摎搴瘑纰?/strong></td>
      <td height="25" bgcolor="#FFFFFF"><input name="dbpassword" type="password" id="dbpassword">
        (<font color="#FF0000">涓嶆兂淇敼璜嬬暀绌恒€傜剧瀵嗙⒓鐢ㄣ€宯ull銆嶈〃绀?/font>)</td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">榛樿獚鍌欎唤镄勬暩鎿氩韩</td>
      <td height="25" bgcolor="#FFFFFF"><input name="dbname" type="text" id="dbname" value="<?=$phome_db_dbname?>"> 
        <font color="#666666">(鍙偤绌?濡傝几鍏ユ暩鎿氩韩鍚?鍌欎唤鐩存帴杞夊埌阃椤€嫔韩.) </font></td>
    </tr>
	<tr>
      <td height="25" bgcolor="#FFFFFF">榛樿獚鍌欎唤鏁告摎琛ㄧ殑鍓岖洞</td>
      <td height="25" bgcolor="#FFFFFF"><input name="sbaktbpre" type="text" id="sbaktbpre" value="<?=$baktbpre?>">
        <font color="#666666">(绌虹偤鍒楀嚭镓€链夋暩鎿氲〃.)</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">榛樿獚绶ㄧ⒓</td>
      <td height="25" bgcolor="#FFFFFF"><input name="dbchar" type="text" id="dbchar" value="<?=$phome_db_char?>"> 
        <font color="#666666"> 
        <select name="selectchar" onchange="document.form1.dbchar.value=this.value">
          <option value="">阆告搰</option>
          <?php
				echo Ebak_ReturnDbCharList('');
				?>
        </select>
        (涓€鑸儏娉佷笅镣虹┖鍗冲彲) </font></td>
    </tr>
  </table>
	
  <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#0472BC" id="setuser" style="display:none">
    <tr> 
      <td height="25" colspan="2"><strong><font color="#FFFFFF">甯宠櫉瑷疆</font></strong></td>
    </tr>
    <tr> 
      <td width="24%" height="25" bgcolor="#FFFFFF">鐢ㄦ埗鍚?/td>
      <td height="25" bgcolor="#FFFFFF"> <input name="adminusername" type="text" id="adminusername" value="<?=$set_username?>">
        <font color="#666666">(淇敼寰岃閲嶆柊鐧婚寗)</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">瀵嗙⒓</td>
      <td height="25" bgcolor="#FFFFFF"> <input name="adminpassword" type="password" id="adminpassword"> 
        <font color="#666666">(涓嶆兂淇敼璜嬬暀绌?</font></td>
    </tr>
    <tr>
      <td height="25" bgcolor="#FFFFFF">瑾嶈瓑纰?/td>
      <td height="25" bgcolor="#FFFFFF"><input name="adminloginauth" type="text" id="adminloginauth" value="<?=$set_loginauth?>">
        <font color="#666666">(浜岀礆瀵嗙⒓,绌虹偤涓嶈ō缃?</font></td>
    </tr>
    <tr>
      <td height="25" bgcolor="#FFFFFF">椹楄瓑闅ㄦ纰?/td>
      <td height="25" bgcolor="#FFFFFF"><input name="adminloginrnd" type="text" id="adminloginrnd" value="<?=$set_loginrnd?>">
        <font color="#666666">
        <input type="button" name="Submit3" value="闅ㄦ" onclick="document.form1.adminloginrnd.value='<?=$loginauthrnd?>';">
        (淇敼寰岃閲嶆柊鐧婚寗)</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">瓒呮檪闄愬埗</td>
      <td height="25" bgcolor="#FFFFFF"><input name="outtime" type="text" id="outtime" value="<?=$set_outtime?>">
        鍒嗛悩</td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">鐧婚寗鏄惁闇€瑕侀璀夌⒓</td>
      <td height="25" bgcolor="#FFFFFF"><input type="radio" name="loginkey" value="0"<?=$set_loginkey==0?' checked':''?>>
        鏄?
        <input type="radio" name="loginkey" value="1"<?=$set_loginkey==1?' checked':''?>>
        鍚?/td>
    </tr>
  </table>
	
  <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#0472BC" id="setck" style="display:none">
    <tr> 
      <td height="25" colspan="2"><font color="#FFFFFF"><strong>COOKIE瑷疆(阃氩父涓嶉渶瑕佷慨鏀?</strong></font></td>
    </tr>
    <tr> 
      <td width="24%" height="25" bgcolor="#FFFFFF">COOKIE浣灭敤鍩?/td>
      <td height="25" bgcolor="#FFFFFF"><input name="ckdomain" type="text" id="ckdomain" value="<?=$phome_cookiedomain?>"></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">COOKIE浣灭敤璺緫</td>
      <td height="25" bgcolor="#FFFFFF"><input name="ckpath" type="text" id="ckpath" value="<?=$phome_cookiepath?>"></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">COOKIE璁婇噺鍓岖洞</td>
      <td height="25" bgcolor="#FFFFFF"><input name="ckvarpre" type="text" id="ckvarpre" value="<?=$phome_cookievarpre?>"></td>
    </tr>
	</table>
	
	
  <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#0472BC" id="setother" style="display:none">
    <tr> 
      <td height="25" colspan="2"><strong><font color="#FFFFFF">鍏跺畠瑷疆</font></strong></td>
    </tr>
    <tr> 
      <td width="24%" height="25" bgcolor="#FFFFFF">鏁告摎鍌欎唤鐩寗</td>
      <td height="25" bgcolor="#FFFFFF"><input name="sbakpath" type="text" id="sbakpath" value="<?=$bakpath?>"></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">澹撶府鍖呭瓨鏀剧洰閷?/td>
      <td height="25" bgcolor="#FFFFFF"><input name="sbakzippath" type="text" id="sbakzippath" value="<?=$bakzippath?>"></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">鏂囦欢鐢熸垚娆婇檺瑷疆</td>
      <td height="25" bgcolor="#FFFFFF"><input type="radio" name="sfilechmod" value="0"<?=$filechmod0?>>
        0777 
        <input type="radio" name="sfilechmod" value="1"<?=$filechmod1?>>
        涓嶉檺鍒?font color="#666666">(濡傛灉绌洪枔涓嶆敮鎸侀亱琛?777镄?php鏂囦欢,阆告搰涓嶉檺鍒跺嵆鍙?)</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">PHP阆嬭鏂煎畨鍏ㄦā寮?/td>
      <td height="25" bgcolor="#FFFFFF"><input name="sphpsafemod" type="checkbox" id="sphpsafemod" value="1"<?=$phpsafemod==1?' checked':''?>>
        鏄?font color="#666666">(濡傛灉阆嬭鏂煎畨鍏ㄦā寮忥紝镓€链夋暩鎿氩潎鍌欎唤鍒痈data/safemod鐩寗)</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF">PHP瓒呮檪鏅傞枔瑷疆</td>
      <td height="25" bgcolor="#FFFFFF"><input name="sphp_outtime" type="text" id="sphp_outtime" value="<?=$php_outtime?>" size="6">
        绉?<font color="#666666">(涓€鑸笉闇€瑕佽ō缃紝闇€瑕乻et_time_limit()鏀寔镓嶆湁鏁?</font></td>
    </tr>
    <tr> 
      <td rowspan="2" bgcolor="#FFFFFF"> <p>MYSQL鏀寔镆ヨ鏂瑰纺</p></td>
      <td height="25" bgcolor="#FFFFFF"><input name="slimittype" type="checkbox" id="slimittype" value="1"<?=$checklimittype?>>
        鏀寔 <font color="#666666">(濡傛灉鍌欎唤鏅傚嚭鐝句笅闱㈤尟瑾?璜嫔皣镓揿嬀铡绘帀鍗冲彲瑙ｆ焙)</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FFFFFF"><font color="#FF0000">You have an error 
        in your SQL syntax; check the manual that corresponds to your MySQL server 
        version for the right syntax to use near '-1' at line 1</font></td>
    </tr>
	<tr>
      <td height="25" bgcolor="#FFFFFF">绌洪枔涓嶆敮鎸佹暩鎿氩韩鍒楄〃</td>
      <td height="25" bgcolor="#FFFFFF"><input name="scanlistdb" type="checkbox" id="scanlistdb" value="1"<?=$canlistdb==1?' checked':''?>>
        涓嶆敮鎸?font color="#666666">(濡傛灉绌洪枔涓嶅厑瑷卞垪鍑烘暩鎿氩韩,璜嬫墦鍕撅绂涓︿笖瑕佽ō缃粯瑾嶅倷浠界殑鏁告摎搴?</font></td>
    </tr>
  </table>
	<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#0472BC">
    <tr> 
      <td height="25" colspan="2" bgcolor="#FFFFFF"> <div align="left"> 
          <input type="submit" name="Submit" value="鎻愪氦">&nbsp;&nbsp;
          <input type="reset" name="Submit2" value="閲岖疆">
        </div></td>
    </tr>
  </table>
</form>
</body>
</html>