Jacek Kowalski
2019-09-19 51eea1c5e113e25683109b3544d847ee0668d921
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 ?>