mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-07 17:04:24 +03:00
fix hacker console, Issue #53
This commit is contained in:
parent
463fd3bb5e
commit
d9d8dce7ad
|
@ -53,14 +53,12 @@ function isAjaxRequest() {
|
||||||
/**
|
/**
|
||||||
* функция вывода отладочных сообщений через "хакерскую" консоль Дмитрия Котерова
|
* функция вывода отладочных сообщений через "хакерскую" консоль Дмитрия Котерова
|
||||||
*/
|
*/
|
||||||
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
|
function dump($msg) {
|
||||||
require_once Config::Get('path.root.server')."/engine/lib/external/HackerConsole/Main.php";
|
|
||||||
new Debug_HackerConsole_Main(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function dump($msg) {
|
|
||||||
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
|
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
|
||||||
|
if (!class_exists('Debug_HackerConsole_Main')) {
|
||||||
|
require_once Config::Get('path.root.server')."/engine/lib/external/HackerConsole/Main.php";
|
||||||
|
new Debug_HackerConsole_Main(true);
|
||||||
|
}
|
||||||
call_user_func(array('Debug_HackerConsole_Main', 'out'), $msg);
|
call_user_func(array('Debug_HackerConsole_Main', 'out'), $msg);
|
||||||
} else {
|
} else {
|
||||||
//var_dump($msg);
|
//var_dump($msg);
|
||||||
|
|
Loading…
Reference in a new issue