template_dir="../templates/"; $smarty->compile_dir="../c_templates/"; if($_SERVER['HTTP_HOST']!="www.wolfdog.hu") $smarty->assign("norobots", 1); session_start(); if(isset($_SESSION['uname']) and $_SESSION['uname']!="") { $smarty->assign("loggedin", isset($_SESSION['name'])?$_SESSION['name']:$_SESSION['loginname']); $smarty->assign("logintpl", "loggedin.tpl"); } else $smarty->assign("logintpl", "login.tpl"); switch($_GET['cmd']) { case "impresszum": case "partners": $title=$titles[$_GET['cmd']]; $description=$descriptions[$_GET['cmd']]; $template="$_GET[cmd].tpl"; break; case "contact": case "galleries": case "history": case "gallery_groups": case "album": case "links": case "stories": case "redir": case "quotes": case "login": case "logout": case "register_form": case "register": case "verify": $title=$titles[$_GET['cmd']]; $description=$descriptions[$_GET['cmd']]; include_once("../includes/$_GET[cmd].inc"); break; case "main": default: include_once("../includes/main.inc"); } $smarty->assign("template", $template); if(!empty($title)) $smarty->assign("title", $title); if(!empty($description)) $smarty->assign("description", $description); if(!empty($body)) $smarty->assign("body", $body); $smarty->loadFilter('output', 'trimwhitespace'); $smarty->display("index.tpl"); ?>