<?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>