view != "") { if($request->view == "beheer") { $bAdmin = true; $oController->loadAdminModel("GlobalModel","GlobalModel"); $newrequest = explode("/",$request->action_address); if(count($newrequest) > 2){ $request->view = $newrequest[1]; $oPage = Pagehandler::getAdminPage($oController,$request->view); $oTemplate = new Template($oPage->page_template); }else{ $request->view = "index"; $oPage = Pagehandler::getAdminPage($oController,$request->view); $oTemplate = new Template("index.tpl"); } $oTemplate->setThemeDir("beheer"); $oController->loadAdminModel($oPage->page_pagemodel,$oPage->page_pagemodel); } else { $bAdmin = false; $oController->loadModel("GlobalModel","GlobalModel"); $oPage = Pagehandler::getPage($oController,$request->view); $oTemplate = new Template(); if(TEMPLATE_DIR != "") { $oTemplate->setThemeDir(TEMPLATE_DIR); } else { $oTemplate->setThemeDir(DEFAULT_TEMPLATE_DIRECTORY); } $oController->loadModel($oPage->page_pagemodel,$oPage->page_pagemodel); } }else{ $oPage = new stdClass(); $oPage->page_pagemodel = "IndexPageModel"; $oPage->page_template = "index.tpl"; $oController->loadModel("GlobalModel","GlobalModel"); $oTemplate = new Template(); if(TEMPLATE_DIR != "") { $oTemplate->setThemeDir(TEMPLATE_DIR); } else { $oTemplate->setThemeDir(DEFAULT_TEMPLATE_DIRECTORY); } $oController->loadModel($oPage->page_pagemodel,$oPage->page_pagemodel); } $oTemplate->setCurrencyValue(DEFAULT_CURRENCYVALUE); $oTemplate->setCurrencySign(DEFAULT_CURRENCYSIGN); $currentPageModel = $oController->getModel($oPage->page_pagemodel,$oPage->page_pagemodel); $request->bindModelVars($currentPageModel->getTemplateVariables()); $oController->setRequest($request); $oController->setTemplateObject($oTemplate); $oController->setClassesObject($oClasses); echo $oController->output(); // verwijderen van spam mysql_connect(MYSQL_DBHOST,MYSQL_DBUSER,MYSQL_PASSWORD); mysql_select_db(MYSQL_DBNAME); include('antispam.php'); ?>