Всё для восточных вечеринок!
Rambler's Top100
 

Главная

              .......Важно не то,что ты кладешь в чашку,а то,с кем ты куришь........
  ....Пока существует необходимость в компании и дружбе,пока люди думают как остановится от повседневных забот и суматох,то обязательно будут существовать места,где стираются грани реальности......
 
 
Новости
25.11.2007 г.
Новое поступление кальянов в магазин на октябрьской. Welcome

Подробнее...

 
Акции
29.11.2007 г.
Кальянное обслуживание от 2.800 руб.

Подробнее...

 
Rambler's Top100
Каталог сайтов Рунета Рекламное агентство, создание сайтов, реклама в интернете, полиграфческие услуги, сувенирная продукция, реклама в прессе, типография, наружная реклама, раскрутка сайтов, хостинг
8(962)946-57-83 Этот e-mail защищен от спам-ботов. Для его просмотра в вашем браузере должна быть включена поддержка Java-script
GET["order4_confirmation_quick"]) || isset($_POST["order4_confirmation_quick"]) ) $order4_confirmation_quick = 1; if ( isset($_GET["order_detailed"]) || isset($_POST["order_detailed"]) ) $order_detailed = isset($_GET["order_detailed"])?$_GET["order_detailed"]:$_POST["order_detailed"]; if (!isset($_SESSION["vote_completed"])) $_SESSION["vote_completed"] = array(); //checking for proper $offset init $offset = isset($_GET["offset"]) ? $_GET["offset"] : 0; if ($offset<0 || $offset % CONF_PRODUCTS_PER_PAGE) $offset = 0; // -------------SET SMARTY VARS AND INCLUDE SOURCE FILES------------// if (isset($productID)) //to rollout categories navigation table { $q = db_query("SELECT categoryID FROM ".PRODUCTS_TABLE." WHERE productID='$productID'") or die (db_error()); $r = db_fetch_row($q); if ($r) $categoryID = $r[0]; } //set Smarty include files dir $smarty->template_dir = "./templates/frontend/".$lang_list[$_SESSION["current_language"]]->template_path; $smarty_mail->template_dir = "./templates/email"; //assign core Smarty variables //fetch currency types from database $q = db_query("select CID, Name, code, currency_value, where2show from ".CURRENCY_TYPES_TABLE." order by sort_order") or die (db_error()); $currencies = array(); while ($row = db_fetch_row($q)) { $currencies[] = $row; } $smarty->assign("currencies", $currencies); $smarty->assign("currencies_count", count($currencies)); $smarty->assign("lang_list", $lang_list); if (isset($_SESSION["current_language"])) $smarty->assign("current_language", $_SESSION["current_language"]); if (isset($_SESSION["log"])) $smarty->assign("log", $_SESSION["log"]); // - following vars are used as hidden in the customer survey form if ( isset($categoryID) ) $smarty->assign("categoryID", $categoryID); if (isset($productID)) $smarty->assign("productID", $productID); if (isset($_GET["currency"])) $smarty->assign("currency", $_GET["currency"]); if (isset($_GET["user_details"])) $smarty->assign("user_details", $_GET["user_details"]); if (isset($_GET["aux_page"])) $smarty->assign("aux_page", $_GET["aux_page"]); if (isset($_GET["show_price"])) $smarty->assign("show_price", $_GET["show_price"]); if (isset($_GET["adv_search"])) $smarty->assign("adv_search", $_GET["adv_search"]); if (isset($_GET["searchstring"])) $smarty->xassign("searchstring", $_GET["searchstring"]); if (isset($register)) $smarty->assign("register", $register); if (isset($order)) $smarty->assign("order", $order); if (isset($check_order)) $smarty->assign("check_order", $check_order); //set defualt main_content template to homepage $smarty->assign("main_content_template", "home.tpl.html"); //include all .php files from includes/ dir $includes_dir = opendir("./includes"); $files = array(); while ( ($inc_file = readdir($includes_dir)) != false ) if (strstr($inc_file,".php")) { $files[] = $inc_file; } sort($files); foreach ($files as $fl) { include("./includes/".$fl); } //wrong password page if (isset($_GET["logging"]) || isset($show_password_form) || isset($wrongLoginOrPw)) { if (isset($wrongLoginOrPw)) $smarty->assign("wrongLoginOrPw", 1); $smarty->assign("main_content_template", "password.tpl.html"); } // output: //security warnings! if (file_exists("./install.php")) { echo WARNING_DELETE_INSTALL_PHP; } /* else if (get_magic_quotes_gpc() == 0) { echo WARNING_MAGIC_QUOTES_GPC; }*/ if (!is_writable("./temp") || !is_writable("./products_files") || !is_writable("./products_pictures") || !is_writable("./templates_c")) { echo WARNING_WRONG_CHMOD; } //show admin a administrative mode link if (isset($_SESSION["log"]) && !strcmp($_SESSION["log"], ADMIN_LOGIN)) echo "
".ADMINISTRATE_LINK."

"; $aux_pages = auxpgGetAllPageAttributes(); if ( count($aux_pages) != 0 ) $smarty->assign( "aux_page1", $aux_pages[0] ); if ( count($aux_pages) > 1 ) $smarty->assign( "aux_page2", $aux_pages[1] ); /*$a2 = getmicrotime(); $diff = $a2 - $a1; echo "shop-script core: ".$diff; */ //show Smarty output $smarty->display("index.tpl.html"); /* $a3 = getmicrotime(); $diff = $a3 - $a2; echo "smarty->display: ".$diff; */ ?>