ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
setup.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2008 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
36 if (false === file_exists(__DIR__ . '/../libs/composer/vendor/autoload.php')) {
37  echo 'Could not find composers "autoload.php". Try to run "composer install" in the directory ".libs/composer"';
38  exit;
39 }
40 
41 if (php_sapi_name() === "cli") {
42  require_once(__DIR__ . "/cli.php");
43 } else {
44 
45 // ATTENTION: This is a hack to get around the usage of the echo/exit pattern in
46  // the setup for the command line version of the setup.
47  function setup_exit($message)
48  {
49  echo "<pre>$message</pre>";
50  die();
51  }
52 
53  if (ini_get('session.save_handler') != 'files') {
54  throw new Exception("session.save_handler in php.ini must be configured to 'files'.");
55  }
56 
57  chdir("..");
58  define('IL_INITIAL_WD', getcwd());
59  require_once "./setup/include/inc.setup_header.php";
60 
61  $setup = new ilSetupGUI();
62 }
exit
Definition: login.php:29
$setup
Definition: setup.php:61
Setup GUI class.
setup_exit($message)
Definition: cli.php:54
$message
Definition: xapiexit.php:14