assign('questions', getAllQuestions()); } elseif ($_GET['page'] == 'container_question' && is_numeric($_GET['question_id'])) { $smarty->assign('question', getQuestion($_GET['question_id'])); } elseif ($_GET['page'] == 'container_answere' && is_numeric($_GET['question_id'])) { $smarty->assign('question', getQuestion($_GET['question_id'])); } elseif ($_GET['page']=='container_browsercheck') { $smarty->assign('questions', getAllQuestions()); } elseif ($_GET['page']=='container_rules') { } elseif ($_GET['page']=='container_highscore') { $smarty->assign('highscore', getHighScore(30)); } elseif ($_GET['page']=='save_highscore') { insertHighscore($_POST['username'],$_POST['score'],$_POST['username']); } elseif ($_GET['page']=='container_summary') { $smarty->assign('questions', getAllQuestions()); } elseif ($_GET['page']=='page_lexicon') { $smarty->assign('lexicon', getLexiconEntries($_GET['letter'])); } elseif ($_GET['page']=='page_lexicon_entry') { $smarty->assign('entry', getLexiconEntry($_GET['entry'])); } elseif ($_GET['page']=='page_partner') { } else { $page = 'page_quiz'; $smarty->assign('questions', getAllQuestions()); } echo $smarty->fetch(dirname(__FILE__).'/templates/'.$page.'.tpl'); ?>