template_dir = './templates'; $smarty->compile_dir = './smarty/templates_c'; $smarty->cache_dir = './smarty/cache'; $smarty->config_dir = './smarty/configs'; $smarty->plugins_dir[] = './smarty/plugins'; $smarty->trusted_dir = array('./includes', './templates'); $smarty->security = true; $smarty->cache_lifetime = 7200; $smarty->force_compile = true; $smarty->compile_check = false; $smarty->use_sub_dirs = false; $smarty->caching = false; session_name("AMMOSCAFEID"); session_start(); date_default_timezone_set("Europe/Athens"); $_SESSION['locale'] = "1"; $smarty->assign('LANGUAGE', "el"); setlocale(LC_ALL, 'el_GR.utf8'); bindtextdomain("ammoscafe", "./locale"); textdomain("ammoscafe"); $_action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'homepage'; switch($_action) { case "gallery": $templateoverride = "2.html"; $smarty->assign('BUTTON2', "current"); break; case "contact": $templateoverride = "3.html"; $smarty->assign('BUTTON3', "current"); break; default: $templateoverride = "1.html"; $smarty->assign('BUTTON1', "current"); break; } if(isset($templateoverride)) $smarty->assign_by_ref('SMARTYTEMPLATE', $templateoverride); else $smarty->assign('SMARTYTEMPLATE', "1.html"); $smarty->display('0.html'); ?>