commit | author | age | ||
175a52 | 1 | <?php |
JK | 2 | define('STANDARD', TRUE); |
3 | ||
bc710e | 4 | class errorclass { |
175a52 | 5 | static $time; |
JK | 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 | ||
bc710e | 17 | errorclass::$time = microtime(TRUE); |
175a52 | 18 | |
JK | 19 | function __autoload($class) { |
20 | if($class == 'sql') { | |
21 | $class = 'db2'; | |
22 | } | |
23 | require_once('./includes/'.$class.'.php'); | |
24 | } | |
bc710e | 25 | ?> |