commit | author | age | ||
175a52 | 1 | <?php |
JK | 2 | define('STANDARD', TRUE); |
3 | ||
4 | class error { | |
5 | static $time; | |
6 | static function add($text) { | |
7 | $title = 'Błąd'; | |
8 | include('design/top.php'); | |
9 | ||
10 | echo '<p>'.$text.'</p>'; | |
11 | ||
12 | include('design/bottom.php'); | |
13 | die(); | |
14 | } | |
15 | } | |
16 | ||
17 | error::$time = microtime(TRUE); | |
18 | ||
19 | function __autoload($class) { | |
20 | if($class == 'sql') { | |
21 | $class = 'db2'; | |
22 | } | |
23 | require_once('./includes/'.$class.'.php'); | |
24 | } | |
532779 | 25 | ?> |