📄 config.php
字号:
<?php
include( "../config.inc.php" );
include( "../includes/SysGlobal.php" );
include( "language/".$aLan."_".$charset.".php" );
include( "../includes/version.php" );
include( "../includes/pro.php" );
include( "func/adm.inc.php" );
include( "func/common.inc.php" );
include( "func/db.inc.php" );
include( "func/nocatch.php" );
needauth( 1 );
$step = $_REQUEST['step'];
echo "<html>\r\n<head >\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=";
echo $charset;
echo "\">\r\n<link id=\"style_sheet\" href=\"css/commonstyle.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<title>";
echo $strAdminTitle;
echo "</title>\r\n\r\n</head>\r\n\r\n<body class=\"NormalPage\">\r\n<div align=\"center\">\r\n <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" background=\"images/mu8.gif\" height=\"30\" >\r\n <tr> \r\n <td width=\"250\" > <img src=\"images/bar.gif\" > ";
echo $strConfig;
echo "</td>\r\n <td > </td>\r\n <td width=\"100\" > </td>\r\n </tr>\r\n \r\n </table>\r\n ";
if ( $step == "modify" )
{
$var = $_POST['var'];
while ( list( $key, $val ) = key )
{
$msql->query( "update {$tbl_config} set value='{$val}' where variable='{$key}'" );
}
sayok( $strConfigOk, "config.php", "" );
}
echo " \r\n<br>\r\n <table width=\"625\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <form name=\"form1\" method=\"post\" action=\"\">\r\n <tr align=\"center\"> \r\n <td> \r\n <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"6\" cellspacing=\"1\">\r\n <tr> \r\n <td class=title>";
echo $strConfigName;
echo "</td>\r\n <td height=\"28\" class=title width=\"220\">";
echo $strConfigSet;
echo "</td>\r\n </tr>\r\n ";
$msql->query( "select * from {$tbl_config} order by xuhao" );
while ( $msql->next_record( ) )
{
$variable = $msql->f( "variable" );
$value = $msql->f( "value" );
$vname = $msql->f( "vname" );
$coltype = $msql->f( "coltype" );
$colwidth = $msql->f( "colwidth" );
$intro = $msql->f( "intro" );
$intro = str_replace( "\n", "<br>", $intro );
echo " \r\n <tr class=list> \r\n <td > \r\n \r\n <font style=\"color:#495579;line-height:16px\"><b>";
echo $vname;
echo " : </b><br>\r\n ";
echo $intro;
echo "</font></td>\r\n <td height=\"20\" width=\"220\"> ";
if ( $coltype == "YN" )
{
echo " \r\n <input type=\"radio\" name=\"var[";
echo $variable;
echo "]\" value=\"1\" ";
echo checked( $value, "1" );
echo ">";
echo $strYes;
echo " <input type=\"radio\" name=\"var[";
echo $variable;
echo "]\" value=\"0\" ";
echo checked( $value, "0" );
echo ">\r\n ";
echo $strNo;
echo " ";
}
else if ( $coltype == "ownersys" )
{
echo " ";
echo "<s";
echo "elect name=\"var[";
echo $variable;
echo "]\" >\r\n <option value=\"0\" ";
echo seld( $value, 0 );
echo " >";
echo $strEmailSys0;
echo "</option>\r\n\t\t\t\t <option value=\"1\" ";
echo seld( $value, 1 );
echo " >";
echo $strEmailSys1;
echo "</option>\r\n <option value=\"2\" ";
echo seld( $value, 2 );
echo ">";
echo $strEmailSys2;
echo "</option>\r\n </select>\r\n ";
}
else
{
echo " \r\n <input type=\"text\" name=\"var[";
echo $variable;
echo "]\" value=\"";
echo $value;
echo "\" size=\"";
echo $colwidth;
echo "\" class=input>\r\n";
}
echo "\r\n\r\n </td>\r\n </tr>\r\n ";
}
echo " \r\n <tr> \r\n <td class=title colspan=\"2\" align=\"center\"> \r\n <input name=\"cc2\" type=\"submit\" id=\"cc\" value=\"";
echo $strSubmit;
echo "\" class=button>\r\n <font color=\"#666666\"> \r\n <input type=\"hidden\" name=\"step\" value=\"modify\">\r\n </font> </td>\r\n </tr>\r\n </table>\r\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" height=\"10\" background=\"images/mu1.jpg\">\r\n <tr> \r\n <td align=\"center\" height=\"2\" colspan=\"2\"></td>\r\n ";
echo " </tr>\r\n </table>\r\n <font color=\"#666666\"> </font> </td>\r\n </tr>\r\n </form>\r\n </table>\r\n</div>\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -