mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
#18587973 : follow debug_protect in file debugging
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7100 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
72f5e52cda
commit
360ca9c297
1 changed files with 8 additions and 0 deletions
|
|
@ -336,6 +336,10 @@
|
|||
|
||||
// 전체 실행 시간 출력, Request/Response info 출력
|
||||
if(__DEBUG__ & 2) {
|
||||
if(__DEBUG_PROTECT__ == 1 && __DEBUG_PROTECT_IP__ != $_SERVER['REMOTE_ADDR']) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Request/Response 정보 작성
|
||||
$buff .= "\n- Request/ Response info\n";
|
||||
$buff .= sprintf("\tRequest URI \t\t\t: %s:%s%s%s%s\n", $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT'], $_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']?'?':'', $_SERVER['QUERY_STRING']);
|
||||
|
|
@ -363,6 +367,10 @@
|
|||
|
||||
// DB 로그 작성
|
||||
if(__DEBUG__ & 4) {
|
||||
if(__DEBUG_PROTECT__ == 1 && __DEBUG_PROTECT_IP__ != $_SERVER['REMOTE_ADDR']) {
|
||||
return;
|
||||
}
|
||||
|
||||
if($GLOBALS['__db_queries__']) {
|
||||
$buff .= sprintf("\n- DB Queries : %d Queries. %0.5f sec\n", count($GLOBALS['__db_queries__']), $GLOBALS['__db_elapsed_time__']);
|
||||
$num = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue