All Data Structures Namespaces Files Functions Variables Pages
gamecheck.php
Go to the documentation of this file.
<?php
if(!defined('IN_ADMIN')) {
exit('Access Denied');
}
if($gamestate >= 20){
require_once GAME_ROOT.'./include/system.func.php';
$result = $db->query("SELECT pid FROM {$tablepre}players WHERE type=0");
$validnum = $db->num_rows($result);
$result = $db->query("SELECT pid FROM {$tablepre}players WHERE hp>0 AND type=0");
$alivenum = $db->num_rows($result);
$result = $db->query("SELECT pid FROM {$tablepre}players WHERE hp<=0 OR state>=10");
$deathnum = $db->num_rows($result);
movehtm();
save_gameinfo();
adminlog('infomng');
$cmd_info = "状态更新：激活人数 {$validnum},生存人数 {$alivenum},死亡人数 {$deathnum}<br>";
$cmd_info .= "已重置移动地点缓存数据";
}else{
$cmd_info = "当前游戏未开始！";
}
//$db->query("ALTER TABLE {$tablepre}winners ADD itmsk6 char(5) not null default '' AFTER itmsk5");
//$db->query("ALTER TABLE {$tablepre}winners ADD itms6 char(5) not null default '0' AFTER itmsk5");
//$db->query("ALTER TABLE {$tablepre}winners ADD itme6 mediumint unsigned NOT NULL default '0' AFTER itmsk5");
//$db->query("ALTER TABLE {$tablepre}winners ADD itmk6 char(5) not null default '' AFTER itmsk5");
//$db->query("ALTER TABLE {$tablepre}winners ADD itm6 CHAR( 30 ) NOT NULL default '' AFTER itmsk5");
//$db->query("ALTER TABLE {$tablepre}winners CHANGE itme0 itme0 mediumint unsigned NOT NULL default '0'");
//$db->query("ALTER TABLE {$tablepre}winners CHANGE itme1 itme1 mediumint unsigned NOT NULL default '0'");
//$db->query("ALTER TABLE {$tablepre}winners CHANGE itme2 itme2 mediumint unsigned NOT NULL default '0'");
//$db->query("ALTER TABLE {$tablepre}winners CHANGE itme3 itme3 mediumint unsigned NOT NULL default '0'");
//$db->query("ALTER TABLE {$tablepre}winners CHANGE itme4 itme4 mediumint unsigned NOT NULL default '0'");
//$db->query("ALTER TABLE {$tablepre}winners CHANGE itme5 itme5 mediumint unsigned NOT NULL default '0'");
//$db->query("ALTER TABLE {$tablepre}users ADD validgames smallint unsigned NOT NULL default '0' AFTER credits");
//$db->query("ALTER TABLE {$tablepre}users ADD wingames smallint unsigned NOT NULL default '0' AFTER validgames");
include template('admin_menu');
?>
$cmd_info
while($gm=$db->fetch_array($result)) $cmd_info
Definition: gmlist.php:10
$validnum
$validnum
Definition: gameinfo.php:13
movehtm
movehtm($atime=0)
Definition: system.func.php:478
$db
$db
Definition: clear.php:32
$deathnum
$deathnum
Definition: gameinfo.php:15
GAME_ROOT
const GAME_ROOT
Definition: clear.php:6
$alivenum
$alivenum
Definition: gameinfo.php:14
$gamestate
$gamestate
Definition: gameinfo.php:4
$result
if(!$cuser||!$cpass) $result
Definition: admin.php:25
adminlog
adminlog($op, $an1='', $an2='', $an3='')
Definition: admin.php:58
save_gameinfo
save_gameinfo()
Definition: global.func.php:304