From 428ab312cb952020cc5ff8415201de52532ed3b9 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 31 Jan 2017 17:41:00 +0400 Subject: [PATCH] renamed debug constant to DEBUG --- debug.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debug.php b/debug.php index b01c072..80d42e5 100644 --- a/debug.php +++ b/debug.php @@ -54,7 +54,7 @@ debug constant -------------- if defined comma separated list of allowed ip adresses to debug for - !defined('debug') - debug for everyone + !defined('DEBUG') - debug for everyone const debug = '127.0.0.1,217.07.01.01'; - only clients from this two ips will see debug @@ -67,7 +67,7 @@ function debug ($object, $title=null, $plain=false, $limit=6, $level=0) { - if (defined('debug') && ((isset($_SERVER['REMOTE_ADDR']) && !(debug==$_SERVER['REMOTE_ADDR'] || strpos(debug,$_SERVER['REMOTE_ADDR'].',')===0 || strpos(debug,','.$_SERVER['REMOTE_ADDR'].',')!==false || strpos(debug,','.$_SERVER['REMOTE_ADDR'])===strlen(debug)-strlen($_SERVER['REMOTE_ADDR'])-1)) || (!isset($_SERVER['REMOTE_ADDR']) && debug===false)) + if (defined('DEBUG') && ((isset($_SERVER['REMOTE_ADDR']) && !(debug==$_SERVER['REMOTE_ADDR'] || strpos(debug,$_SERVER['REMOTE_ADDR'].',')===0 || strpos(debug,','.$_SERVER['REMOTE_ADDR'].',')!==false || strpos(debug,','.$_SERVER['REMOTE_ADDR'])===strlen(debug)-strlen($_SERVER['REMOTE_ADDR'])-1)) || (!isset($_SERVER['REMOTE_ADDR']) && debug===false)) ) {