/[cvs]/nfo/php/libs/org.netfrag.flib/Site/DebugBox.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.flib/Site/DebugBox.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jonen, Sun Nov 17 07:23:13 2002 UTC revision 1.4 by joko, Tue Dec 3 17:48:42 2002 UTC
# Line 3  Line 3 
3  //    $Id$  //    $Id$
4  //    -------------------------------------------------------------------------  //    -------------------------------------------------------------------------
5  //    $Log$  //    $Log$
6    //    Revision 1.4  2002/12/03 17:48:42  joko
7    //    + bugfix - too fast making changes before  -  debug box stayed empty ;)
8    //
9    //    Revision 1.3  2002/12/03 17:39:38  joko
10    //    + don't have _any_ kind of php-errors in the (critical) startup-phase
11    //
12  //    Revision 1.2  2002/11/17 07:23:13  jonen  //    Revision 1.2  2002/11/17 07:23:13  jonen
13  //    + small bugfix: really _no_ error should occour when javascript scope is not switched  //    + small bugfix: really _no_ error should occour when javascript scope is not switched
14  //  //
# Line 57  function append($message, $level) { Line 63  function append($message, $level) {
63    global $site, $debugbox_status;    global $site, $debugbox_status;
64    
65    //print "msg: $message<br>";    //print "msg: $message<br>";
66      
67      // TODO: queue messages here for later view when output started
68      //if (!$debugbox_status) { return; }
69    
70      // don't do any output when not in html
71    if (!$debugbox_status['inhtml']) { return; }    if (!$debugbox_status['inhtml']) { return; }
72    
73    if (!$site->config['mode']['DEBUGBOX']) { return; }    if (!$site->config['mode']['DEBUGBOX']) { return; }
74    if ($level > $site->config['mode']['DEBUGBOX_LEVEL'] && $level != E_USER_NOTICE) { return; }    if ($level > $site->config['mode']['DEBUGBOX_LEVEL'] && $level != E_USER_NOTICE) { return; }
75    
76    if (!$debugbox_status['active']) { $debugbox_status['active'] = 0; }    if (!isset($debugbox_status['active'])) { $debugbox_status['active'] = 0; }
77    if (!$debugbox_status['injs']) { $debugbox_status['injs'] = 0; }    if (!isset($debugbox_status['injs'])) { $debugbox_status['injs'] = 0; }
78    
79      // don't do any output when inside javascript
80    if ($debugbox_status['injs']) { return; }    if ($debugbox_status['injs']) { return; }
81    
82    //$message = str_replace("\n", "", $message);    //$message = str_replace("\n", "", $message);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed