Index: trunk/core/kernel/utility/debugger/debugger_responce.php =================================================================== diff -u -r6093 -r6650 --- trunk/core/kernel/utility/debugger/debugger_responce.php (.../debugger_responce.php) (revision 6093) +++ trunk/core/kernel/utility/debugger/debugger_responce.php (.../debugger_responce.php) (revision 6650) @@ -2,9 +2,10 @@ define('FULL_PATH', realpath(dirname(__FILE__).'/../../../..') ); $sid = $_GET['sid']; + $path = isset($_GET['path']) ? $_GET['path'] : '/kernel/cache'; if (!preg_match('/^@([\d]+)@$/', $sid)) exit; - - $debug_file = FULL_PATH.'/kernel/cache/debug_'.$sid.'.txt'; + + $debug_file = FULL_PATH.$path.'/debug_'.$sid.'.txt'; if (file_exists($debug_file)) { $ret = file_get_contents($debug_file); $ret = str_replace('#DBG_FILESIZE#', formatSize( filesize($debug_file) ), $ret); @@ -13,16 +14,16 @@ else { $ret = 'file not found'; } - - + + if (function_exists('gzencode') && strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) { header('Content-Encoding: gzip'); echo gzencode($ret); } else { echo $ret; } - + /** * Formats file/memory size in nice way *