ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
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 require_once "HTML/Template/ITX.php";
39 $tpl_class_name = "HTML_Template_ITX";
41 
42 $include_paths = ini_get("include_path");
43 
44 // unix & windows use different characters to separate paths
45 $separator = ";";
46 
47 if (!strstr(php_uname(), "Windows"))
48 {
49  $separator = ":";
50 }
51 
53 
54 $pear = class_exists("PEAR");
55 $auth = class_exists("Auth");
56 $mdb2 = class_exists("MDB2");
57 $mdb2_mysql = class_exists("MDB2_Driver_mysql");
58 
59 if (!$pear || !$auth || !$html_templ_it || !$mdb2 || !$mdb2_mysql)
60 {
61  $logo = (is_file("../templates/default/images/HeaderIcon.png"))
62  ? "../templates/default/images/HeaderIcon.png"
63  : "./templates/default/images/HeaderIcon.png";
64 ?>
65 <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;">
66 <img src=<?php echo '"'.$logo.'"'; ?> border="0" /><br /><br />
67 <span style="font-size:120%;">Welcome to ILIAS.</span><br/><br/>
68 To run ILIAS 3 you will need the following missing PEAR components:
69 <ul>
70 <?php
71  if (!$pear) echo "<li>PEAR</li>";
72  if (!$auth) echo "<li>Auth</li>";
73  if (!$html_templ_it) echo "<li>HTML_Template_IT</li>";
74  if (!$mdb2) echo "<li>MDB2</li>";
75  if (!$mdb2_mysql) echo "<li>MDB2#mysql</li>";
76 ?>
77 </ul>
78 You can find help on how to install the missing components
79 at the
80 <a href="http://www.ilias.de/docu/goto.php?target=lm_367&client_id=docu" target="_blank">
81 ILIAS website</a>. General help on PEAR is available at
82 <a href="http://pear.php.net" target="_blank">http://pear.php.net</a>.
83 </div>
84 
85 <?php
86  exit();
87 }
88 
89 if (!$auth)
90 {
91  $msg = "<p><b>Error: Couldn't find module Auth in your PEAR API!</b><br/>".
92  "ILIAS 3 requires this module for authentification. ".
93  "Please read the manual how to install the auth module before using ILIAS 3.</p>".
94  "<p>More information and a documetation about the PEAR API can be found at ".
95  "<a href=\"http://pear.php.net\" target=\"_blank\">http://pear.php.net</a></p>";
96  echo $msg;
97  exit();
98 }
99 ?>
$html_templ_it
exit
Definition: login.php:54
$separator
$include_paths
"color:#CC0000 style
Definition: example_001.php:92
$mdb2_mysql
ILIAS base class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions.
Definition: class.ilias.php:16
$tpl_class_name