Пример #1
0
 /**
  * @access public
  * Initialise la session ou renouvelle la session
  * @param array $session
  * @param bool $debug
  */
 public function session_run($session_tabs)
 {
     try {
         $lang = new frontend_model_IniLang();
         $lang->autoLangSession();
         $this->ini_session_var($session_tabs);
     } catch (Exception $e) {
         magixglobal_model_system::magixlog('An error has occured :', $e);
     }
 }
Пример #2
0
    exit;
} else {
    require $magixglobal;
    require $mcfrontend;
}
$loaderFilename = 'lib/loaderIniclass.php';
if (!file_exists($loaderFilename)) {
    print "<p>Loader is not found<br />Contact Support Magix CMS: support@magix-cms.com</p>";
    exit;
} else {
    require $loaderFilename;
}
$config = 'app/config/config.php';
if (!file_exists($config)) {
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
    header("Pragma: no-cache");
    header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
    header("Location: /install/index.php");
    exit;
}
magixglobal_Autoloader::register();
/**
 * Autoload Frontend
 */
frontend_Autoloader::register();
session_name('lang');
ini_set('session.hash_function', 1);
session_start();
$lang = new frontend_model_IniLang();
$lang->autoLangSession();