forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.php
executable file
·78 lines (69 loc) · 3.55 KB
/
setup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/*
+-----------------------------------------------------------------------------+
| ILIAS open source |
+-----------------------------------------------------------------------------+
| Copyright (c) 1998-2008 ILIAS open source, University of Cologne |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program; if not, write to the Free Software |
| Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
+-----------------------------------------------------------------------------+
*/
/**
* setup file for ilias
*
* this file helps setting up ilias
* main purpose is writing the ilias.ini to the filesystem
* it can set up the database to if the settings are correct and the dbuser has the rights
*
* @author Sascha Hofmann <[email protected]>
* @version $Id$
*
* @package ilias-setup
*/
if (false === file_exists(__DIR__ . '/../libs/composer/vendor/autoload.php')) {
echo 'Could not find composers "autoload.php". Try to run "composer install" in the directory ".libs/composer"';
exit;
}
if (php_sapi_name() === "cli") {
require_once(__DIR__ . "/cli.php");
} else {
header("Content-Type: text/html");
echo <<<MSG
<p>Dear user,</p>
<p>the GUI for the setup is abandoned as of ILIAS 7:</p>
<p>
<a href="https://docu.ilias.de/goto_docu_wiki_wpage_6314_1357.html" target="_blank">Setup - Abandon web based GUI</a><br />
<a href="https://docu.ilias.de/goto_docu_wiki_wpage_6391_1357.html" target="_blank">Setup - Abandon Maintenance Mode</a><br />
<a href="https://docu.ilias.de/goto_docu_wiki_wpage_6338_1357.html" target="_blank">Setup - Abandon Multi Client</a><br />
</p>
<p>It is replaced by a command line implementation of the setup:</p>
<p>
<a href="https://docu.ilias.de/goto_docu_wiki_wpage_5890_1357.html" target="_blank">Setup - Introduce CLI-Setup</a><br />
<a href="https://docu.ilias.de/goto_docu_wiki_wpage_6567_1357.html" target="_blank">Setup - Let update-Command change configs</a><br />
</p>
<p>
while the functionality for the maintenance mode and the multi-<br />
clients are removed completely as dicussed in the context of<br />
the Setup Revision:<br />
</p>
<p><a href="https://docu.ilias.de/goto_docu_wiki_wpage_4900_1357.html" target="_blank">Setup Revision 2018</a></p>
<p>
Have a look into a detailed documentation of the setup in the<br />
file setup/README.md or take a look into the ILIAS installation<br />
instructions at <a href="../docs/configuration/install.md">docs/configuration/install.md</a>.<br />
</p>
<p>Best regards!</p>
MSG;
}