webui: make d_echo work in webui (#4432)

* webui: make d_echo work in webui
Remove d_print_r(), it is redundant to d_echo()
Remove d_echo calls in services.inc.php

* Switched debug check to work with nginx
This commit is contained in:
Tony Murray
2016-09-14 04:05:49 -05:00
committed by Neil Lathwood
parent ce95ceaa2b
commit 0351b54fb8
5 changed files with 11 additions and 25 deletions

View File

@@ -34,14 +34,16 @@ function catchFatal()
}
}
if (strpos($_SERVER['PATH_INFO'], "debug")) {
$debug = "1";
if (strpos($_SERVER['REQUEST_URI'], "debug")) {
$debug = true;
ini_set('display_errors', 0);
ini_set('display_startup_errors', 1);
ini_set('log_errors', 1);
ini_set('error_reporting', E_ALL);
set_error_handler('logErrors');
register_shutdown_function('catchFatal');
$sql_debug = array();
$php_debug = array();
} else {
$debug = false;
ini_set('display_errors', 0);