<?php /** * Copyright 2011 - Inform8 * http://www.inform8.com * * Licensed under the Apache License, Version 2.0 (the "License") * http://www.apache.org/licenses/LICENSE-2.0 */ // set the indexing session key Session::setSiteKey(StaticConfig::getSiteName()); // load the session $session = Session::getInstance();
*/ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="/plugins/senchatouch/css/sencha-touch.css" type="text/css"> <script type="text/javascript" src="/plugins/senchatouch/sencha-touch.js"></script> <link rel="stylesheet" href="/css/core.css" type="text/css"> <script type="text/javascript" src="/js/App.js"></script> <script type="text/javascript" src="/js/app/HomeController.js"></script> <script type="text/javascript" src="/js/app/HomeScreen.js"></script> <script type="text/javascript" src="/js/auth/LoginFormPanel.js"></script> <script type="text/javascript" src="/js/auth/LoginScreen.js"></script> <script type="text/javascript" src="/js/auth/LoginTransaction.js"></script> <script type="text/javascript" src="/js/auth/LogoutTransaction.js"></script> <script type="text/javascript" src="/js/user/GetUserTransaction.js"></script> <link rel="icon" type="image/png" href="/images/favicon.ico" /> <title><?php echo StaticConfig::getSiteName() . ' | ' . Response::getInstance()->getPageTitle(); ?> </title> </head> </html>
<?php try { require_once 'config/settings.php'; $controller = WebContext::getController(BaseController::getPage()); $controller->run(); } catch (Exception $e) { mail(StaticConfig::getAdministratorEmail(), StaticConfig::getSiteName() . " - Site error", $e); header('Location: /error'); die; }