2 if(!defined(
'IN_ADMIN')) {
6 if($command ==
'edit') {
9 $edfmt = Array(
'authkey'=>
'',
'bbsurl'=>
'',
'gameurl'=>
'',
'homepage'=>
'',
'moveut'=>
'int',
'moveutmin'=>
'int',
'tplrefresh'=>
'b',
'errorinfo'=>
'b');
12 foreach($edfmt as $key => $val){
13 if(isset($_POST[$key])){
14 ${
'o_'.$key} = ${$key};
16 ${$key} = intval($_POST[$key]);
18 intval($_POST[$key]) != 0 ? ${$key} = 1 : ${$key} = 0;
22 if(${$key} != ${
'o_'.$key}){
27 $cmd_info .=
"$lang[$key] 修改为 ${$key} <br>";
29 $edlist[$key] = ${$key};
38 $configfile = file_get_contents(
'./config.inc.php');
39 foreach($edlist as $key => $val){
40 if($edfmt[$key] ==
'int' || $edfmt[$key] ==
'b'){
41 $configfile = preg_replace(
"/[$]{$key}\s*\=\s*-?[0-9]+;/is",
"\${$key} = ${$key};", $configfile);
43 $configfile = preg_replace(
"/[$]{$key}\s*\=\s*[\"'].*?[\"'];/is",
"\${$key} = '${$key}';", $configfile);
48 file_put_contents(
'./config.inc.php',$configfile);
58 $orin_time =
$nowyear.$lang[
'year'].$nowmonth.$lang[
'month'].$nowday.$lang[
'day'].$nowhour.$lang[
'hour'].$nowmin.$lang[
'min'];
62 $set_time =
$setyear.$lang[
'year'].$setmonth.$lang[
'month'].$setday.$lang[
'day'].$sethour.$lang[
'hour'].$setmin.$lang[
'min'];
64 include
template(
'admin_configmng');
while($gm=$db->fetch_array($result)) $cmd_info
if(!defined('IN_ADMIN')) if($command== 'edit') $sysnow
【生存者数:<?php echo $alivenum?> 人】< input type="button"value="显示全部幸存者"onClick="$('alivemode').value='all';$('gbmode').value='none';postCmd('alive','alive.php');"></p > if($gamblingon &&$gamestate >=20) elseif($gamblingon &&$gamestate<=10)
adminlog($op, $an1='', $an2='', $an3='')