Feature #18615 ยป 20080413_RFC_8112.diff
t3lib/class.t3lib_div.php (working copy) | ||
---|---|---|
* @internal
|
||
*/
|
||
public static function debug_ordvalue($string,$characters=100) {
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['dontShowDebugOutput']) return '';
|
||
if(strlen($string) < $characters) $characters = strlen($string);
|
||
for ($i=0; $i<$characters; $i++) {
|
||
$valuestring.=' '.ord(substr($string,$i,1));
|
||
... | ... | |
* @return void
|
||
*/
|
||
public static function debug($var='',$brOrHeader=0) {
|
||
// buffer the output of debug if no buffering started before
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['dontShowDebugOutput']) return '';
|
||
// buffer the output of debug if no buffering started before
|
||
if (ob_get_level()==0) {
|
||
ob_start();
|
||
}
|
||
... | ... | |
* @return string
|
||
*/
|
||
public static function debug_trail() {
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['dontShowDebugOutput']) return '';
|
||
$trail = debug_backtrace();
|
||
$trail = array_reverse($trail);
|
||
array_pop($trail);
|
||
... | ... | |
* @return void Outputs to browser.
|
||
*/
|
||
public static function debugRows($rows,$header='',$returnHTML=FALSE) {
|
||
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['dontShowDebugOutput']) return '';
|
||
if (is_array($rows)) {
|
||
reset($rows);
|
||
$firstEl = current($rows);
|
||
|
t3lib/config_default.php (working copy) | ||
---|---|---|
'recursiveDomainSearch' => 0, // Boolean. If set, the search for domain records will be done recursively by stripping parts of the host name off until a matching domain record is found.
|
||
'devIPmask' => '127.0.0.1,::1', // Defines a list of IP addresses which will allow development-output to display. The debug() function will use this as a filter. See the function t3lib_div::cmpIP() for details on syntax. Setting this to blank value will deny all. Setting to "*" will allow all.
|
||
'sqlDebug' => 0, // Boolean. If set, then database queries that fails are outputted in browser. For development.
|
||
'dontShowDebugOutput' => 0, // Boolean. If set, then then no output of the debug functions will be outputted in browser. For making sure no forgetten t3lib_div::debug will output debug live.
|
||
'enable_DLOG' => FALSE, // Whether the developer log is enabled. See constant "TYPO3_DLOG"
|
||
'ddmmyy' => 'd-m-y', // Format of Date-Month-Year - see PHP-function date()
|
||
'hhmm' => 'H:i', // Format of Hours-Minutes - see PHP-function date()
|