📄 0-1.php
字号:
<?php
include"../cache/config.inc.php";
include"begin.php";
adminlogin();
if (isset($_GET['post'])) {
$all = &$_POST['all'];
$all[8] = $all[8]?1:'';
$all[12] = $all[12]?1:'';
$all[13] = $all[13]?1:'';
$all[14] = $all[14]?1:'';
if ($all[23] == 1 || $all[23] == 2) {
} else {
$all[23] = 0;
}
$all[56]=nameformat($all[56]);
$all[24]=nameformat($all[24]);
$all[27] = min_format($all[27], 0);
$all[28] = min_format($all[28], 0);
$all[29] = min_format($all[29], 5);
$all[30] = min_format($all[30], 3);
$all[51] = min_format($all[51], 5);
$all[33] = min_format($all[33], 0);
$all[34] = min_format($all[34], 10);
$all[35][0] = min_format($all[35][0], 0);
$all[35][1] = min_format($all[35][1], 0);
$all[36] = min_format($all[36], 0);
$all[7] = min_format($all[7], 0);
$all[2] = min_format($all[2], 0);
$all[11] = min_format($all[11], 1);
$all[11] = max_format($all[11], 3);
$all[48] = min_format($all[48], 0);
$all[37] = min_format($all[37], 3);
$all[51] = min_format($all[51], 1);
$all[64] = max_format($all[64], 1000);
$all[68] = min_format($all[68], 2);
$all[70] = min_format($all[70], 2);
$all[71] = max_format($all[71], 50000);
$all[69] = max_format($all[69], 250);
$all[40][0] = min_format($all[40][0], 10);
$all[40][1] = min_format($all[40][1], 10);
$all[67] = min_format($all[67], 0);
$all[38][0] = min_format($all[38][0], 3);
$all[38][1] = max_format($all[38][1], 15);
$all[38][2] = min_format($all[38][2], 6);
$all[38][3] = max_format($all[38][3], 20);
$all[54] = $all[54]?1:"";
$all[35] = implode("|", $all[35]);
$all[38] = implode("|", $all[38]);
$all[40] = implode("|", $all[40]);
$all[41] = strtolower(htmlspecialchars(trim($all[41])));
$all[26] = strtolower(htmlspecialchars(trim($all[26])));
preg_match("/^[a-zA-Z0-9]+$/is", $all[43])?null : echoerror(24);
$all[1] = nameformat(trim($all[1]));
$all[39] = htmlspecialchars(trim($all[39]));
$all[65] = strtolower(htmlspecialchars(trim($all[65])));
$all[66] = strtolower(htmlspecialchars(trim($all[66])));
while (list ($key, $val) = @each($all)) {
$val = trim($val);
mysql_query("update {$db_prefix}config set value='$val' where id='$key'", $myconn);
}
$close = '<!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="Pragma" content="no-cache" />
<meta HTTP-EQUIV="Cache-Control" content="no-cache,must-revalidate" />
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>' . $all[56] . '</title>
</head>
<body>
' . $all[22] . '
</body>
</html>';
$fp = fopen('../cache/webclose.html', 'w');
fwrite($fp, $close);
fclose($fp);
$reurl = "0-1.php";
echoioy(11);
}
$result = mysql_query("select * from {$db_prefix}styles", $myconn);
while ($row = mysql_fetch_array($result)) {
$styleas[$row["id"]] = $row["name"];
}
$result = mysql_query("select * from {$db_prefix}config", $myconn);
while ($row = mysql_fetch_array($result)) {
$all[$row["id"]] = $row["value"];
}
$defstyle[$all[17]] = "selected";
$all[13] = $all[13]?"checked":null;
$all[14] = $all[14]?"checked":null;
$all[21] = $all[21]?"checked":null;
$id = $all[23];
$all[23] = null;
$all[23][$id] = "checked";
$all[54] = $all[54]?"checked":null;
$all[8] = $all[8]?"checked":null;
$all[12] = $all[12]?"checked":null;
$all[35] = explode("|", $all[35]);
$all[38] = explode("|", $all[38]);
$all[40] = explode("|", $all[40]);
$all[50]?$all[50]:"http://";
require_once './template/header.htm';
require_once './template/0-1.htm';
require_once './template/footer.htm';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -