Tokiwa Battle Royale
GE777
A PHP Battle Royale inspired game
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
infomng.php
Go to the documentation of this file.
1
<?php
2
if
(!defined(
'IN_ADMIN'
)) {
3
exit(
'Access Denied'
);
4
}
5
if
($mygroup < 2){
6
exit(
$_ERROR
[
'no_power'
]);
7
}
8
9
10
require_once
GAME_ROOT
.
'./include/system.func.php'
;
11
12
$result
=
$db
->query(
"SELECT pid FROM {$tablepre}players WHERE type=0"
);
13
$validnum
=
$db
->num_rows(
$result
);
14
15
$result
=
$db
->query(
"SELECT pid FROM {$tablepre}players WHERE hp>0 AND type=0"
);
16
$alivenum
=
$db
->num_rows(
$result
);
17
18
$result
=
$db
->query(
"SELECT pid FROM {$tablepre}players WHERE hp<=0 OR state>=10"
);
19
$deathnum
=
$db
->num_rows(
$result
);
20
21
movehtm
();
22
23
save_gameinfo
();
24
25
adminlog
(
'infomng'
);
26
echo
"状态更新:激活人数 {$validnum},生存人数 {$alivenum},死亡人数 {$deathnum}<br>"
;
27
echo
"已重置移动地点缓存数据"
;
28
?>
$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
include
admin
infomng.php
Generated on Thu Nov 20 2014 11:38:04 for Tokiwa Battle Royale by
1.8.8