= 5 && strlen($p = trim($_POST['password'])) >= 5 && $p === trim($_POST['password2'])) { $data = ""; if (file_put_contents("admin.php", $data)) { header("Location: {$_SERVER['SCRIPT_NAME']}?{$_SERVER['QUERY_STRING']}"); exit; } else { $info = "没有权限写入配置文件!"; } } else { $info = "没有正确输入配置信息!"; } } require "xhtml.php"; header("Content-Type:text/html;charset=UTF-8"); xhtml_head("配置系统"); echo "
\n"; echo "
\n"; echo "用户昵称:
\n
\n"; echo "用户密码:
\n
\n"; echo "重复密码:
\n
\n"; echo "\n"; echo "
\n"; echo "
\n"; if (isset($info)) { echo "
\n配置系统错误信息\n
\n"; echo "
\n$info\n
\n"; } xhtml_footer(); exit; } } ?>