| 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 |
| 13 |
|
// + don't have _any_ kind of php-errors in the (critical) startup-phase |
| 14 |
|
// |
| 15 |
// Revision 1.2 2002/11/17 07:23:13 jonen |
// Revision 1.2 2002/11/17 07:23:13 jonen |
| 16 |
// + 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 |
| 17 |
// |
// |
| 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; |
| 66 |
global $site, $debugbox_status; |
global $site, $debugbox_status; |
| 67 |
|
|
| 68 |
//print "msg: $message<br>"; |
//print "msg: $message<br>"; |
| 69 |
|
|
| 70 |
|
// TODO: queue messages here for later view when output started |
| 71 |
|
//if (!$debugbox_status) { return; } |
| 72 |
|
|
| 73 |
|
// don't do any output when not in html |
| 74 |
if (!$debugbox_status['inhtml']) { return; } |
if (!$debugbox_status['inhtml']) { return; } |
| 75 |
|
|
| 76 |
if (!$site->config['mode']['DEBUGBOX']) { return; } |
if (!$site->config['mode']['DEBUGBOX']) { return; } |
| 77 |
if ($level > $site->config['mode']['DEBUGBOX_LEVEL'] && $level != E_USER_NOTICE) { return; } |
if ($level > $site->config['mode']['DEBUGBOX_LEVEL'] && $level != E_USER_NOTICE) { return; } |
| 78 |
|
|
| 79 |
if (!$debugbox_status['active']) { $debugbox_status['active'] = 0; } |
if (!isset($debugbox_status['active'])) { $debugbox_status['active'] = 0; } |
| 80 |
if (!$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 |
| 83 |
if ($debugbox_status['injs']) { return; } |
if ($debugbox_status['injs']) { return; } |
| 84 |
|
|
| 85 |
//$message = str_replace("\n", "", $message); |
//$message = str_replace("\n", "", $message); |