Beispiel #1
0
 public function Header()
 {
     $result = '';
     if (Db_Admin::isLogged()) {
         $result .= $this->TPL->display('page_header', true);
     }
     return $result;
 }
Beispiel #2
0
    ini_set('display_errors', 1);
}
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT ^ E_DEPRECATED);
if (get_magic_quotes_gpc()) {
    function stripslashes_gpc(&$value)
    {
        $value = stripslashes($value);
    }
    array_walk_recursive($_GET, 'stripslashes_gpc');
    array_walk_recursive($_POST, 'stripslashes_gpc');
    array_walk_recursive($_COOKIE, 'stripslashes_gpc');
    array_walk_recursive($_REQUEST, 'stripslashes_gpc');
}
include_once 'initialize.php';
//If the user is logged in, go to the page he selects
if (Db_Admin::isLogged()) {
    switch ($page) {
        case 'orders':
            switch ($spage) {
                case 'orders':
                    $Page = new Page_Orders('');
                    print $Page->Html();
                    break;
            }
        case 'options':
            switch ($spage) {
                case 'promotions':
                    $Page = new Page_Promotions('');
                    print $Page->Html();
                    break;
                case 'feature':