$twigTemplate = 'hmac'; break; case 'hmacmd5': $twigVars['hmac'] = 'md5'; $twigTemplate = 'hmac'; break; case 'base64': require_once 'controller/base64Controller.php'; $controller = new Base64Controller(); break; case 'contact': require_once 'controller/contactController.php'; $controller = new ContactController(); } if (isset($controller)) { $vars = $controller->process(); $render = $vars['render']; $twigVars = array_merge($twigVars, $vars); } if ($render === true) { echo $twig->render('page/' . $twigTemplate . '.twig', $twigVars); } } function determinePage() { $pageId = ""; if (isset($_GET['t'])) { $pageId = $_GET['t']; } if (false === array_search($pageId, array('base64', 'md5', 'sha1', 'sha256', 'sha512', 'hmacsha1', 'hmacsha256', 'hmacsha512', 'hmacmd5', 'html', 'htpasswd', 'url', 'contact'))) { $pageId = "";