compile_check = true; $smarty->debugging = false; $smarty->template_dir = ROOT_PATH .'/templates'; $smarty->compile_dir = ROOT_PATH .'shop/templates_c'; $smarty->cache_dir = ROOT_PATH .'shop/cache'; $smarty->config_dir = ROOT_PATH .'shop/configs'; // $shop = new Shop_Function; //Połącz z bazą // $shop->TMVC_MySQL(); // $shop->user = new User; $shop = new Shop_Function; //Połącz z bazą $shop->TMVC_MySQL(); $shop->user = new User; if ($act=='logout') { $shop->user->user_logout('index.php'); $act = ''; } $shop->mod = $mod; $kolekcja_id = $_GET['kolekcja_id']; //if (($kolekcja_id==8) AND ($catid!=50)) $kolekcja_id = ''; if ($catid!=50) $kolekcja_id = ''; //Dane $shop->ID = $_GET['ID']; $shop->catid= $catid; $shop->kolekcja_id = $kolekcja_id; $shop->L1= 18; if ($L == "") { $shop->L = 0; } else { $shop->L = $L; } $shop->kolor = $_GET['kolor']; if ($shop->kolor=='') $shop->kolor = $_GET['kolor']; $shop->cmi = $_GET['cmi']; $shop->cmx = $_GET['cmx']; $shop->co = $_POST['co']; $login = $_POST['login']; $haslo = $_POST['haslo']; //User if ((isset($login)) AND (isset($haslo))) { $shop->user->user_login($login, $haslo); } //Sprawdz czy zalogowany if (($_SESSION['user']!='') AND ($shop->user->user_check_key()) ) { $user = $shop->user->user_dane($_SESSION['user'], 0); $smarty->assign("user", $user); //$shop->user = $user; } //KOSZYK $smarty->assign("kosz_produktow", $cart->GetItemsCount()); // MODUŁY $block = $_GET['block']; if ((!isset($block)) OR ($block == 'bizuteria')) { $block = 'bizuteria'; $shop->block_id = 1; $shop->topcatid = 50; $shop->block = 'bizuteria'; } define('INST', 1); if (file_exists(ROOT_PATH . DIR_WS_MODUL . $mod.'.php')) { require(ROOT_PATH . DIR_WS_MODUL . $mod.'.php'); } else { echo 'brak strony'; } ?>