/** * @return boolean */ function command_reloadconfig() { global $multibotObject; global $buffer; global $break; global $lang; $multibotObject->addInfo($lang['command_reload']['console_info']); $status = $multibotObject->setConfig("multibot"); if ($status) { socketSend("success"); //$break = true; return true; } else { socketSend("error"); return false; } }
function command_reloadconfig() { global $multibotCore; global $buffer; global $break; print 'reload'; $status = $multibotCore->refreshConfig(); if ($status) { socketSend("success"); $break = true; return true; } else { socketSend("error"); return false; } }