/**
  * ilias initialisation
  *
  * This needs to be overwritten because Ilias would ignore several settings
  * initIlias has to be overwritten because there is no easy way to
  * refine the context definition
  */
 public static function initILIAS()
 {
     if (self::$already_initialized) {
         return;
     }
     self::$already_initialized = true;
     global $tree;
     self::initCore();
     if (ilContext::initClient()) {
         self::initClient();
         self::initUser();
         // NOTE authenticate() will setup the session user
         self::authenticate();
         // init after Auth otherwise breaks CAS
         self::includePhp5Compliance();
         // language may depend on user setting
         self::initLanguage();
         $tree->initLangCode();
     }
 }