Added 4 RCON threads

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-22 14:29:30 +02:00
parent 1cb3e25bf9
commit d08807abaf
4 changed files with 20 additions and 2 deletions

View File

@ -36,6 +36,23 @@ if(!function_exists("cli_set_process_title")){
}
}
function kill($pid){
switch(Utils::getOS()){
case "win":
ob_start();
passthru("%WINDIR%\\System32\\taskkill.exe /F /PID ".((int) $pid));
ob_end_clean();
break;
case "mac":
case "linux":
default:
ob_start();
passthru("kill -9 ".((int) $pid));
ob_end_clean();
}
}
function require_all($path, &$count = 0){
$dir = dir($path."/");
$dirs = array();