2 if(!defined(
'IN_ADMIN')) {
6 $adminmsg = file_get_contents(
'./gamedata/adminmsg.htm') ;
7 $systemmsg = file_get_contents(
'./gamedata/systemmsg.htm') ;
9 if($command ==
'edit') {
13 'systemmsg' =>
'html',
28 foreach($edfmt as $key => $val){
29 if(isset($_POST[$key])){
30 ${
'o_'.$key} = ${$key};
32 ${$key} = intval($_POST[$key]);
34 intval($_POST[$key]) != 0 ? ${$key} = 1 : ${$key} = 0;
36 ${$key} = html_entity_decode(
astrfilter($_POST[$key]),ENT_COMPAT);
38 ${$key} = $_POST[$key];
40 if(${$key} != ${
'o_'.$key}){
45 $cmd_info .=
"$lang[$key] 修改为 ${$key} <br>";
47 $edlist[$key] = ${$key};
55 if(in_array(
'adminmsg',array_keys($edlist))){
56 file_put_contents(
'./gamedata/adminmsg.htm',
$adminmsg);
58 if(in_array(
'systemmsg',array_keys($edlist))){
59 file_put_contents(
'./gamedata/systemmsg.htm',
$systemmsg);
63 $systemfile = file_get_contents(
'./gamedata/system.php');
64 foreach($edlist as $key => $val){
65 if($key !=
'adminmsg' && $key !=
'systemmsg'){
66 if($edfmt[$key] ==
'int' || $edfmt[$key] ==
'b'){
67 $systemfile = preg_replace(
"/[$]{$key}\s*\=\s*-?[0-9]+;/is",
"\${$key} = ${$key};", $systemfile);
69 $systemfile = preg_replace(
"/[$]{$key}\s*\=\s*[\"'].*?[\"'];/is",
"\${$key} = '${$key}';", $systemfile);
74 file_put_contents(
'./gamedata/system.php',$systemfile);
83 $startmode_input .=
"<input type=\"radio\" name=\"startmode\" value=\"$i\" checked>".$lang[
'startmode_'.$i].
'<br>';
85 $startmode_input .=
"<input type=\"radio\" name=\"startmode\" value=\"$i\">".$lang[
'startmode_'.$i].
'<br>';
88 include
template(
'admin_systemmng');
while($gm=$db->fetch_array($result)) $cmd_info
【生存者数:<?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)
if($command== 'edit') $startmode_input
adminlog($op, $an1='', $an2='', $an3='')
if(!defined('IN_ADMIN')) $adminmsg