/[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.3 by joko, Tue Dec 3 17:39:38 2002 UTC revision 1.5 by jonen, Sun Dec 22 13:27:32 2002 UTC
# Line 3  Line 3 
3  //    $Id$  //    $Id$
4  //    -------------------------------------------------------------------------  //    -------------------------------------------------------------------------
5  //    $Log$  //    $Log$
6    //    Revision 1.5  2002/12/22 13:27:32  jonen
7    //    + modified path to 'debugbox.js' according to new file structure under 'inc'
8    //
9    //    Revision 1.4  2002/12/03 17:48:42  joko
10    //    + bugfix - too fast making changes before  -  debug box stayed empty ;)
11    //
12  //    Revision 1.3  2002/12/03 17:39:38  joko  //    Revision 1.3  2002/12/03 17:39:38  joko
13  //    + don't have _any_ kind of php-errors in the (critical) startup-phase  //    + don't have _any_ kind of php-errors in the (critical) startup-phase
14  //  //
# Line 50  function activate() { Line 56  function activate() {
56    var debugbox_level_E_USER_NOTICE = <?= E_USER_NOTICE ?>;    var debugbox_level_E_USER_NOTICE = <?= E_USER_NOTICE ?>;
57  </script>  </script>
58    
59  <script language="javascript" src="<?= $site->config['url']['base'] . 'inc/debugbox.js' ?>"></script>  <script language="javascript" src="<?= $site->config['url']['base'] . 'inc/js/debugbox.js' ?>"></script>
60    
61    <?    <?
62      $debugbox_status['injs'] = 0;      $debugbox_status['injs'] = 0;
# Line 74  function append($message, $level) { Line 80  function append($message, $level) {
80    if (!isset($debugbox_status['injs'])) { $debugbox_status['injs'] = 0; }    if (!isset($debugbox_status['injs'])) { $debugbox_status['injs'] = 0; }
81    
82    // don't do any output when inside javascript    // don't do any output when inside javascript
83    if (isset($debugbox_status['injs'])) { return; }    if ($debugbox_status['injs']) { return; }
84    
85    //$message = str_replace("\n", "", $message);    //$message = str_replace("\n", "", $message);
86    //$message = str_replace("'", '', $message);    //$message = str_replace("'", '', $message);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

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