<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心</title>
</head>
<body>
<?php
include('checkadmin.php');
include("head.php");
include("../conn.php");
include("../mysql.class.php");
if($_POST[submit]){
$file = fopen("../conn.php","w");
fwrite($file,$_POST[conn]);
fclose($file);
echo "修改成功";
}
?>
<h1>修改网站参数</h1>
<form action="" method="post">
<textarea name="conn" rows="20" cols="60">
<?php
$file=fopen("../conn.php","r");
while(!feof($file))
{
echo fgets($file);
}
fclose($file);
?>
</textarea><br />
<input type="submit" name="submit" value="修改" />
</body>
</html>