Jacek Kowalski
2017-08-28 adfb2d2afab2b017db7006fcb7808d66aa2ef411
commit | author | age
175a52 1 <?php
JK 2 define('STANDARD', TRUE);
3
adfb2d 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
adfb2d 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 }
adfb2d 25 ?>