commit | author | age
|
8b8bcc
|
1 |
<?php |
T |
2 |
|
|
3 |
ini_set('error_reporting', E_ALL&~E_NOTICE); |
|
4 |
ini_set('display_errors', 1); |
|
5 |
|
|
6 |
session_start(); |
|
7 |
|
|
8 |
?> |
354978
|
9 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
T |
10 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
11 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
12 |
<head> |
|
13 |
<title>RoundCube Webmail Installer</title> |
|
14 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
|
15 |
<link rel="stylesheet" type="text/css" href="styles.css" /> |
c5042d
|
16 |
<script type="text/javascript" src="client.js"></script> |
354978
|
17 |
</head> |
T |
18 |
|
|
19 |
<body> |
|
20 |
|
|
21 |
<div id="banner"> |
|
22 |
<div id="header"> |
|
23 |
<div class="banner-logo"><a href="http://www.roundcube.net"><img src="images/banner_logo.gif" width="200" height="56" border="0" alt="RoundCube Webmal Project" /></a></div> |
|
24 |
<div class="banner-right"><img src="images/banner_right.gif" width="10" height="56" alt="" /></div> |
|
25 |
</div> |
|
26 |
<div id="topnav"> |
|
27 |
<a href="http://trac.roundcube.net/wiki/Howto_Install">How-to Wiki</a> |
|
28 |
</div> |
|
29 |
</div> |
|
30 |
|
|
31 |
<div id="content"> |
|
32 |
|
|
33 |
<?php |
6557d3
|
34 |
|
c5042d
|
35 |
$docroot = realpath(dirname(__FILE__) . '/../'); |
T |
36 |
$include_path = $docroot . '/program/lib' . PATH_SEPARATOR . $docroot . '/program' . PATH_SEPARATOR . ini_get('include_path'); |
|
37 |
set_include_path($include_path); |
|
38 |
|
354978
|
39 |
require_once 'rcube_install.php'; |
c5042d
|
40 |
$RCI = rcube_install::get_instance(); |
b3f9df
|
41 |
$RCI->load_config(); |
967b34
|
42 |
|
T |
43 |
// exit if installation is complete |
|
44 |
if ($RCI->configured && !$RCI->getprop('enable_installer') && !$_SESSION['allowinstaller']) { |
|
45 |
header("HTTP/1.0 404 Not Found"); |
|
46 |
echo '<h2 class="error">The installer is disabled!</h2>'; |
|
47 |
echo '<p>To enable it again, set <tt>$rcmail_config[\'enable_installer\'] = true;</tt> in config/main.inc.php</p>'; |
|
48 |
echo '</div></body></html>'; |
|
49 |
exit; |
|
50 |
} |
b3f9df
|
51 |
|
354978
|
52 |
?> |
T |
53 |
|
967b34
|
54 |
<h1>RoundCube Webmail Installer</h1> |
T |
55 |
|
354978
|
56 |
<ol id="progress"> |
T |
57 |
<?php |
|
58 |
|
|
59 |
foreach (array('Check environment', 'Create config', 'Test config') as $i => $item) { |
|
60 |
$j = $i + 1; |
b3f9df
|
61 |
$link = ($RCI->step >= $j || $RCI->configured) ? '<a href="./index.php?_step='.$j.'">' . Q($item) . '</a>' : Q($item); |
354978
|
62 |
printf('<li class="step%d%s">%s</li>', $j+1, $RCI->step > $j ? ' passed' : ($RCI->step == $j ? ' current' : ''), $link); |
T |
63 |
} |
|
64 |
?> |
|
65 |
</ol> |
|
66 |
|
|
67 |
<?php |
|
68 |
$include_steps = array('welcome.html', 'check.php', 'config.php', 'test.php'); |
|
69 |
|
|
70 |
if ($include_steps[$RCI->step]) { |
|
71 |
include $include_steps[$RCI->step]; |
|
72 |
} |
|
73 |
else { |
|
74 |
header("HTTP/1.0 404 Not Found"); |
|
75 |
echo '<h2 class="error">Invalid step</h2>'; |
|
76 |
} |
|
77 |
|
|
78 |
?> |
|
79 |
</div> |
|
80 |
|
|
81 |
<div id="footer"> |
ad43e6
|
82 |
Installer by the RoundCube Dev Team. Copyright © 2008 - Published under the GNU Public License; |
T |
83 |
Icons by <a href="http://famfamfam.com">famfamfam</a> |
354978
|
84 |
</div> |
T |
85 |
</body> |
|
86 |
</html> |