All Data Structures Namespaces Files Functions Variables Pages
banlistmng.php
Go to the documentation of this file.
<?php
if(!defined('IN_ADMIN')) {
exit('Access Denied');
}
//if($mygroup < 6){
// exit($_ERROR['no_power']);
//}
$dir = GAME_ROOT.'./gamedata/';
if($command == 'write'){
$nmlimit = astrfilter($postnmlmt);
$iplimit = astrfilter($postiplmt);
writeover("{$dir}banlist.list","<?php\n\n\$nmlimit = '$nmlimit';\n\$iplimit = '$iplimit';\n\n?>");
//write_list($dir,$postnmlmt,$postiplmt);
$cmd_info = '新的屏蔽列表已经写入。';
}else{
include_once $dir.'banlist.list';
}
include template('admin_banlistmng');
?>
$cmd_info
while($gm=$db->fetch_array($result)) $cmd_info
Definition: gmlist.php:10
writeover
writeover($filename, $data, $method="rb+", $iflock=1, $check=1, $chmod=1)
Definition: global.func.php:155
$dir
if(!defined('IN_ADMIN')) $dir
Definition: banlistmng.php:8
$iplimit
$iplimit
Definition: banlist.php:4
GAME_ROOT
const GAME_ROOT
Definition: clear.php:6
$nmlimit
$nmlimit
Definition: banlist.php:3
astrfilter
astrfilter($str)
Definition: admin.php:91