Jacek Kowalski
2012-06-23 175a52e78df3f3462927885ce6d732cb1b36a818
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
<?php
define('STANDARD', TRUE);
 
class error {
    static $time;
    static function add($text) {
        $title = 'Błąd';
        include('design/top.php');
        
        echo '<p>'.$text.'</p>';
        
        include('design/bottom.php');
        die();
    }
}
 
error::$time = microtime(TRUE);
 
function __autoload($class) {
    if($class == 'sql') {
        $class = 'db2';
    }
    require_once('./includes/'.$class.'.php');
}
?>