* '' - user have an empty token * Any other (string) value - the token * * See Dot_Auth::checkUserToken() */ $userToken = isset($_POST['userToken']) ? $_POST['userToken'] : null; /** * From this point , the control is taken by the Action specific controller * call the Action specific file, but check first if exists */ $actionControllerPath = CONTROLLERS_PATH . '/' . $registry->requestModule . '/' . $registry->requestControllerProcessed . 'Controller.php'; if (file_exists($actionControllerPath)) { $dotAuth = Dot_Auth::getInstance(); $dotAuth->checkIdentity('user'); require $actionControllerPath; } else { Dot_Route::pageNotFound(); } // set menus $tpl->setMenu(); // set SEO html tags from dots/seo.xml file $tpl->setSeoValues($pageTitle); // display message (error, warning, info) $tpl->displayMessage(); // parse the main content block $tpl->parse('MAIN_CONTENT', 'tpl_main'); // show debugbar $debug = new Dot_Debug($tpl); $debug->show(); // parse and print the output $tpl->pparse('OUTPUT', 'tpl_index');