Exemplo n.º 1
0
 /**
  * Registration
  * @access public
  * @static
  * @name register
  */
 public static function register()
 {
     self::$prefix = substr(__CLASS__, 0, strpos(__CLASS__, '_') + 1);
     self::$path = dirname(dirname(realpath(__FILE__))) . DIRECTORY_SEPARATOR;
     // ici est opéré la registration
     spl_autoload_register(array(__CLASS__, 'autoload'));
 }
Exemplo n.º 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();