$gettext->textdomain($lang); #$gettext =& phpgettext(); dump($gettext); if ($adminside) { // Start ACL require_once $configuration->rootPath() . '/includes/gacl.class.php'; require_once $configuration->rootPath() . '/includes/gacl_api.class.php'; $acl = new gacl_api(); // Handle special admin side options $option = strtolower(mosGetParam($_REQUEST, 'option', 'com_admin')); $domain = substr($option, 4); session_name(md5(mamboCore::get('mosConfig_live_site'))); session_start(); // restore some session variables $my = new mosUser(); $my->getSession(); if (mosSession::validate($my)) { mosSession::purge(); } else { mosSession::purge(); $my = null; } if (!$my and $option == 'login') { $option = 'admin'; require_once $configuration->rootPath() . '/includes/authenticator.php'; $authenticator =& mamboAuthenticator::getInstance(); $my = $authenticator->loginAdmin($acl); } elseif ($option == 'logout') { require $configuration->rootPath() . '/administrator/logout.php'; exit; } // We can now create the mainframe object
/** * Enter description here... * * @param unknown_type $user * @param unknown_type $database */ function offlineCheck(&$user, &$database) { global $adminside; if ($this->mosConfig_offline && !$adminside or file_exists($this->rootPath . '/installation/index.php')) { require_once $this->rootPath() . '/administrator/includes/admin.php'; session_name(md5($this->mosConfig_live_site)); session_start(); $session =& mosSession::getCurrent(); $my =& new mosUser(); $my->getSessionData(); if (mosSession::validate($my)) { return; } include "{$this->mosConfig_absolute_path}/offline.php"; exit; } }