All Data Structures Namespaces Files Functions Variables Pages
infomng.php
Go to the documentation of this file.
<?php
if(!defined('IN_ADMIN')) {
exit('Access Denied');
}
if($mygroup < 2){
exit($_ERROR['no_power']);
}
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');
echo "状态更新：激活人数 {$validnum},生存人数 {$alivenum},死亡人数 {$deathnum}<br>";
echo "已重置移动地点缓存数据";
?>
$deathnum
$deathnum
Definition: infomng.php:19
$validnum
$validnum
Definition: infomng.php:13
movehtm
movehtm($atime=0)
Definition: system.func.php:478
$db
$db
Definition: clear.php:32
GAME_ROOT
const GAME_ROOT
Definition: clear.php:6
$result
$result
Definition: infomng.php:12
$_ERROR
$_ERROR
Definition: resources_1.php:1044
$alivenum
$alivenum
Definition: infomng.php:16
adminlog
adminlog($op, $an1='', $an2='', $an3='')
Definition: admin.php:58
save_gameinfo
save_gameinfo()
Definition: global.func.php:304