3 |
// $Id$ |
// $Id$ |
4 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
5 |
// $Log$ |
// $Log$ |
6 |
|
// Revision 1.3 2002/12/03 17:39:38 joko |
7 |
|
// + don't have _any_ kind of php-errors in the (critical) startup-phase |
8 |
|
// |
9 |
|
// Revision 1.2 2002/11/17 07:23:13 jonen |
10 |
|
// + small bugfix: really _no_ error should occour when javascript scope is not switched |
11 |
|
// |
12 |
// Revision 1.1 2002/11/12 05:42:31 joko |
// Revision 1.1 2002/11/12 05:42:31 joko |
13 |
// + initial checkin |
// + initial checkin |
14 |
// |
// |
28 |
|
|
29 |
$width = 380; |
$width = 380; |
30 |
|
|
31 |
|
$debugbox_status['injs'] = 1; |
32 |
?> |
?> |
33 |
|
|
34 |
<div id="debugbox_control" align="right" style="position:absolute;top:0px;right:0px;border:1px solid black;padding:3px;font-family:Verdana,Helvetica,Arial;font-size:10px;z-index:99;"> |
<div id="debugbox_control" align="right" style="position:absolute;top:0px;right:0px;border:1px solid black;padding:3px;font-family:Verdana,Helvetica,Arial;font-size:10px;z-index:99;"> |
50 |
var debugbox_level_E_USER_NOTICE = <?= E_USER_NOTICE ?>; |
var debugbox_level_E_USER_NOTICE = <?= E_USER_NOTICE ?>; |
51 |
</script> |
</script> |
52 |
|
|
53 |
<script language="javascript" src="<?= $site->config[url][base] . 'inc/debugbox.js' ?>"> |
<script language="javascript" src="<?= $site->config['url']['base'] . 'inc/debugbox.js' ?>"></script> |
|
</script> |
|
54 |
|
|
55 |
<? |
<? |
56 |
|
$debugbox_status['injs'] = 0; |
57 |
} |
} |
58 |
|
|
59 |
function append($message, $level) { |
function append($message, $level) { |
60 |
global $site, $debugbox_status; |
global $site, $debugbox_status; |
61 |
|
|
62 |
//print "msg: $message<br>"; |
//print "msg: $message<br>"; |
63 |
|
|
64 |
|
// TODO: queue messages here for later view when output started |
65 |
|
//if (!$debugbox_status) { return; } |
66 |
|
|
67 |
|
// don't do any output when not in html |
68 |
if (!$debugbox_status['inhtml']) { return; } |
if (!$debugbox_status['inhtml']) { return; } |
69 |
|
|
70 |
if (!$site->config['mode']['DEBUGBOX']) { return; } |
if (!$site->config['mode']['DEBUGBOX']) { return; } |
71 |
if ($level > $site->config['mode']['DEBUGBOX_LEVEL'] && $level != E_USER_NOTICE) { return; } |
if ($level > $site->config['mode']['DEBUGBOX_LEVEL'] && $level != E_USER_NOTICE) { return; } |
72 |
|
|
73 |
if (!$debugbox_status['active']) { $debugbox_status['active'] = 0; } |
if (!isset($debugbox_status['active'])) { $debugbox_status['active'] = 0; } |
74 |
if (!$debugbox_status['injs']) { $debugbox_status['injs'] = 0; } |
if (!isset($debugbox_status['injs'])) { $debugbox_status['injs'] = 0; } |
75 |
|
|
76 |
if ($debugbox_status['injs']) { return; } |
// don't do any output when inside javascript |
77 |
|
if (isset($debugbox_status['injs'])) { return; } |
78 |
|
|
79 |
//$message = str_replace("\n", "", $message); |
//$message = str_replace("\n", "", $message); |
80 |
//$message = str_replace("'", '', $message); |
//$message = str_replace("'", '', $message); |