• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

setup/include/inc.setup_header.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2001 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00032 define("DEBUG",false);
00033 
00034 //include files from PEAR
00035 require_once "PEAR.php";
00036 require_once "DB.php";
00037 
00038 // wrapper for php 4.3.2 & higher
00039 @include_once "HTML/ITX.php";
00040 
00041 if (!class_exists("IntegratedTemplateExtension"))
00042 {
00043         include_once "HTML/Template/ITX.php";
00044         include_once "../classes/class.ilTemplateHTMLITX.php";
00045 }
00046 else
00047 {
00048         include_once "../classes/class.ilTemplateITX.php";
00049 }
00050 
00051 require_once "./classes/class.ilTemplate.php";  // modified class. needs to be merged with base template class 
00052 
00053 require_once "../include/inc.check_pear.php";
00054 require_once "./classes/class.ilLanguage.php";  // modified class. needs to be merged with base language class 
00055 require_once "../classes/class.ilLog.php";
00056 require_once "../classes/class.ilUtil.php";
00057 require_once "../classes/class.ilIniFile.php";
00058 require_once "../classes/class.perm.php";
00059 require_once "../classes/class.ilDBx.php";
00060 require_once "./classes/class.ilSetupGUI.php";
00061 require_once "./classes/class.Session.php";
00062 require_once "./classes/class.ilClientList.php";
00063 require_once "./classes/class.ilClient.php";
00064 require_once "../classes/class.ilFile.php";
00065 require_once "./classes/class.ilCtrlStructureReader.php";
00066 require_once "../classes/class.ilSaxParser.php";
00067 require_once "../include/inc.ilias_version.php";
00068 
00069 // include error_handling
00070 require_once "../classes/class.ilErrorHandling.php";
00071 
00072 $ilErr = new ilErrorHandling();
00073 $ilErr->setErrorHandling(PEAR_ERROR_CALLBACK,array($ilErr,'errorHandler'));
00074 
00075 // set ilias pathes
00076 define ("ILIAS_HTTP_PATH",substr("http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["REQUEST_URI"]),0,-6));
00077 
00078 // PHP is running in CGI mode?
00079 if (isset($_SERVER["REDIRECT_STATUS"]) && !isset($_SERVER["FCGI_ROLE"]))
00080 {
00081         define ("ILIAS_ABSOLUTE_PATH",substr(dirname($_SERVER["PATH_TRANSLATED"]),0,-6));
00082 }
00083 else
00084 {
00085         define ("ILIAS_ABSOLUTE_PATH",substr(dirname($_SERVER["SCRIPT_FILENAME"]),0,-6));
00086 }
00087 
00088 define ("TPLPATH","./templates/blueshadow");
00089 
00090 // init session
00091 $sess = new Session();
00092 
00093 $lang = (isset($_GET["lang"])) ? $_GET["lang"] : $_SESSION["lang"];
00094 
00095 $_SESSION["lang"] = $lang;
00096 
00097 // init languages
00098 $lng = new ilLanguage($lang);
00099 
00100 // init log
00101 $log = new ilLog(ILIAS_ABSOLUTE_PATH,"ilias.log","SETUP",false);
00102 $ilLog =& $log;
00103 
00104 // init template - in the main program please use ILIAS Template class
00105 // instantiate main template
00106 $tpl = new ilTemplate("./templates");
00107 $tpl->loadTemplatefile("tpl.main.html", true, true);
00108 
00109 // make instance of structure reader
00110 $ilCtrlStructureReader = new ilCtrlStructureReader();
00111 $ilCtrlStructureReader->setErrorObject($ilErr);
00112 
00113 require_once "../classes/class.ilBenchmark.php";
00114 $ilBench =& new ilBenchmark();
00115 $GLOBALS['ilBench'] =& $ilBench;
00116 
00117 
00118 ?>

Generated on Fri Dec 13 2013 13:52:13 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1