All Data Structures Namespaces Files Functions Variables Pages
mapitemmng.php
Go to the documentation of this file.
<?php
if(!defined('IN_ADMIN')) {
exit('Access Denied');
}
if($mygroup < 9){
exit($_ERROR['no_power']);
}
require_once GAME_ROOT.'./include/system.func.php';
$sqldir = GAME_ROOT.'./gamedata/sql/';
foreach(Array('log','chat','mapitem','newsinfo') as $v){
$d = file_get_contents("{$sqldir}{$v}.sql");
$a = getmicrotime();
if($v=='mapitem'){
for($i=0;$i<30;$i++){
$d2 = str_replace("\r", "\n", str_replace(' bra_', ' test_'.$i, $d));
runquery($d2);
}
}else{
$d = str_replace("\r", "\n", str_replace(' bra_', ' test_', $d));
runquery($d);
}
$b = getmicrotime();
$time = ($b-$a)*1000 ;
echo "{$v}.sql 执行时间：$time 毫秒 <br>";
}
//var_dump($db->query("DROP TABLE test_log"));
?>
$sqldir
$sqldir
Definition: mapitemmng.php:9
$i
$i
Definition: botservice.php:267
runquery
if(!$action) elseif($action== 'config') elseif($action== 'dbselect') elseif($action== 'environment') elseif($action== 'install') runquery($sql)
Definition: install.php:1213
GAME_ROOT
const GAME_ROOT
Definition: clear.php:6
$_ERROR
$_ERROR
Definition: resources_1.php:1044
getmicrotime
getmicrotime()
Definition: global.func.php:484