ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
inc.check_pear.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
24
33@include_once("PEAR.php");
34@include_once("Auth/Auth.php");
35@include_once("MDB2.php");
36@include_once("MDB2/Driver/mysql.php");
37
38// wrapper for php 4.3.2 & higher
39@include_once "HTML/Template/ITX.php";
40$tpl_class_name = "HTML_Template_ITX";
42if (!class_exists("HTML_Template_ITX"))
43{
44 include_once "HTML/ITX.php";
45 $tpl_class_name = "IntegratedTemplate";
46 $html_templ_it = class_exists("HTML_Template_ITX");
47}
48
49$include_paths = ini_get("include_path");
50
51// unix & windows use different characters to separate paths
53
54if (!strstr(php_uname(), "Windows"))
55{
56 $separator = ":";
57}
58
60
61$pear = class_exists("PEAR");
62$auth = class_exists("Auth");
63$mdb2 = class_exists("MDB2");
64$mdb2_mysql = class_exists("MDB2_Driver_mysql");
65
66if (!$pear || !$auth || !$html_templ_it || !$mdb2 || !$mdb2_mysql)
67{
68 $logo = (is_file("../templates/default/images/HeaderIcon.png"))
69 ? "../templates/default/images/HeaderIcon.png"
70 : "./templates/default/images/HeaderIcon.png";
71?>
72<div style="border-color:#9EADBA; border-style:solid; border-width:1px; padding: 10px; margin: 150px 25%; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:0.9em;">
73<img src=<?php echo '"'.$logo.'"'; ?> border="0" /><br /><br />
74<span style="font-size:120%;">Welcome to ILIAS.</span><br/><br/>
75To run ILIAS 3 you will need the following missing PEAR components:
76<ul>
77<?php
78 if (!$pear) echo "<li>PEAR</li>";
79 if (!$auth) echo "<li>Auth</li>";
80 if (!$html_templ_it) echo "<li>HTML_Template_IT</li>";
81 if (!$mdb2) echo "<li>MDB2</li>";
82 if (!$mdb2_mysql) echo "<li>MDB2#mysql</li>";
83?>
84</ul>
85You can find help on how to install the missing components
86at the
87<a href="http://www.ilias.de/docu/goto.php?target=lm_367&client_id=docu" target="_blank">
88ILIAS website</a>. General help on PEAR is available at
89<a href="http://pear.php.net" target="_blank">http://pear.php.net</a>.
90</div>
91
92<?php
93 exit();
94}
95
96if (!$auth)
97{
98 $msg = "<p><b>Error: Couldn't find module Auth in your PEAR API!</b><br/>".
99 "ILIAS 3 requires this module for authentification. ".
100 "Please read the manual how to install the auth module before using ILIAS 3.</p>".
101 "<p>More information and a documetation about the PEAR API can be found at ".
102 "<a href=\"http://pear.php.net\" target=\"_blank\">http://pear.php.net</a></p>";
103 echo $msg;
104 exit();
105}
106?>
ILIAS base class perform basic setup: init database handler, load configuration file,...
Definition: class.ilias.php:17
if(!class_exists("HTML_Template_ITX")) $include_paths
$html_templ_it
$tpl_class_name
$separator
$mdb2_mysql
exit
Definition: login.php:54