_initUserAuth($docArr); $this->UserAuth->checkLogin(); require_once 'class/Session.php'; if (Session::getData('admin_sect', 'tplLite' )){ $docArr['tpl'] = SiteMap::getPath('Doc/tpl/admin/lite.tpl'); }else { $docArr['tpl'] = SiteMap::getPath('Doc/tpl/admin/main.tpl'); } $this->Doc($docArr); $this->_initMenu(); require_once 'class/Session.php'; if ($error = Session::getData(CURR_PAGE, 'error') ){ Session::clearData(CURR_PAGE, 'error'); $this->addContent(array('tpl' => 'msg_error.tpl', 'text' => $error)); } if ($msg = Session::getData(CURR_PAGE, 'msg')){ Session::clearData(CURR_PAGE, 'msg'); $this->addContent(array('tpl' => 'msg.tpl', 'text' => $msg)); } } function _initUserAuth($docAdd) { $Admin = SiteMap::getObj('Admin/Admin.php', &$this); $this->UserAuth = SiteMap::getObj('Admin/AdminAuth.php', $docAdd, $Admin); } function _initMenu() { $adminMenu = array( 'admin/cms' => 'Content Management', 'admin/admin' => 'Manage Staff', 'admin/settings' => 'Settings', 'admin/users' => 'Manage Users', 'admin/contact' => 'Manage Contact / Groups', 'admin/mail/template' => 'Manage Mail Templates', 'admin/mail' => 'Send HTML Emails', 'admin/logout' => 'Logout', ); $this->assign('adminMenu', $adminMenu); return true; } } ?>