function debug_for_backend() { global $gbl, $sgbl, $login, $ghtml; check_for_debug("/commands.php"); if ($sgbl->isDebug()) { return; } check_for_debug("/backend.php"); }
function debug_for_backend() { global $gbl, $sgbl, $login, $ghtml; check_for_debug("/usr/local/lxlabs/hypervm/httpdocs/commands.php"); if ($sgbl->isDebug()) { return null; } check_for_debug("/usr/local/lxlabs/hypervm/httpdocs/backend.php"); return null; }
<?php /** * Functions to register and deregister a debug variable for live debugging. * Pretty much should be included explicitly on a page to allow live debugging on that page. * * @category debug * @package lib * @subpackage settings * @link */ // *** This function call turns on or off debugging. check_for_debug(); function check_for_debug() { $dbg = in('debug'); if ($dbg == 'on') { $_COOKIE['debug'] == true; } elseif ($dbg == 'off') { $_COOKIE['debug'] == false; } } function nw_debug() { $result = false; if (DEBUG) { $result = true; } if ($_COOKIE['debug']) { $result = true; }