[go: up one dir, main page]

Menu

[r7]: / trunk / core / global.inc.php  Maximize  Restore  History

Download this file

29 lines (26 with data), 683 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
// +--------------------------------------------+
// | Twiggi web-based groupware. |
// | |
// | For copyright and license information |
// | please read the COPYRIGHT file. |
// +--------------------------------------------+
// Message types
define('ERROR', 0);
define('WARNING', 1);
function core_print($file,$line,$message_type,$message)
{
// TODO: database storage
switch ($message_type)
{
case ERROR:
print "<font color='red'>TWIGGI ERROR: ".$file." (".$line.") ".$message."</font><br>";
break;
case WARNING:
print "<font color='orange'>TWIGGI WARNING: ".$file." (".$line.") ".$message."</font><br>";
break;
default:
break;
}
}
?>