1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category backend
|
5
|
* @package install
|
6
|
* @author WebsiteBaker Project
|
7
|
* @copyright 2004-2009, Ryan Djurovich
|
8
|
* @copyright 2009-2011, Website Baker Org. e.V.
|
9
|
* @link http://www.websitebaker2.org/
|
10
|
* @license http://www.gnu.org/licenses/gpl.html
|
11
|
* @platform WebsiteBaker 2.8.x
|
12
|
* * @requirements PHP 5.2.2 and higher
|
13
|
* @version $Id: index.php 1373 2011-01-10 12:14:10Z Luisehahne $
|
14
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/install/index.php $
|
15
|
* @lastmodified $Date: 2011-01-10 13:14:10 +0100 (Mon, 10 Jan 2011) $
|
16
|
*
|
17
|
*/
|
18
|
|
19
|
// Start a session
|
20
|
if(!defined('SESSION_STARTED')) {
|
21
|
session_name('wb_session_id');
|
22
|
session_start();
|
23
|
define('SESSION_STARTED', true);
|
24
|
}
|
25
|
$mod_path = dirname(str_replace('\\', '/', __FILE__));
|
26
|
$doc_root = rtrim(str_replace('\\', '/',$_SERVER['DOCUMENT_ROOT']),'/');
|
27
|
$mod_name = basename($mod_path);
|
28
|
$wb_path = dirname(dirname(str_replace('\\', '/', __FILE__)));
|
29
|
$wb_root = str_replace($doc_root,'',$wb_path);
|
30
|
|
31
|
// Function to highlight input fields which contain wrong/missing data
|
32
|
function field_error($field_name='') {
|
33
|
if(!defined('SESSION_STARTED') || $field_name == '') return;
|
34
|
if(isset($_SESSION['ERROR_FIELD']) && $_SESSION['ERROR_FIELD'] == $field_name) {
|
35
|
return ' class="wrong"';
|
36
|
}
|
37
|
}
|
38
|
|
39
|
// Check if the page has been reloaded
|
40
|
if(!isset($_GET['sessions_checked']) OR $_GET['sessions_checked'] != 'true') {
|
41
|
// Set session variable
|
42
|
$_SESSION['session_support'] = '<font class="good">Enabled</font>';
|
43
|
// Reload page
|
44
|
header('Location: index.php?sessions_checked=true');
|
45
|
exit(0);
|
46
|
} else {
|
47
|
// Check if session variable has been saved after reload
|
48
|
if(isset($_SESSION['session_support'])) {
|
49
|
$session_support = $_SESSION['session_support'];
|
50
|
} else {
|
51
|
$session_support = '<font class="bad">Disabled</font>';
|
52
|
}
|
53
|
}
|
54
|
|
55
|
// Check if AddDefaultCharset is set
|
56
|
$e_adc=false;
|
57
|
$sapi=php_sapi_name();
|
58
|
if(strpos($sapi, 'apache')!==FALSE || strpos($sapi, 'nsapi')!==FALSE) {
|
59
|
flush();
|
60
|
$apache_rheaders=apache_response_headers();
|
61
|
foreach($apache_rheaders AS $h) {
|
62
|
if(strpos($h, 'html; charset')!==FALSE) {
|
63
|
preg_match('/charset\s*=\s*([a-zA-Z0-9- _]+)/', $h, $match);
|
64
|
$apache_charset=$match[1];
|
65
|
$e_adc=$apache_charset;
|
66
|
}
|
67
|
}
|
68
|
}
|
69
|
|
70
|
?>
|
71
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
72
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
73
|
<head>
|
74
|
<title>Website Baker Installation Wizard</title>
|
75
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
76
|
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
|
77
|
<script language="javascript" type="text/javascript">
|
78
|
|
79
|
function confirm_link(message, url) {
|
80
|
if(confirm(message)) location.href = url;
|
81
|
}
|
82
|
function change_os(type) {
|
83
|
if(type == 'linux') {
|
84
|
document.getElementById('operating_system_linux').checked = true;
|
85
|
document.getElementById('operating_system_windows').checked = false;
|
86
|
document.getElementById('file_perms_box').style.display = 'block';
|
87
|
} else if(type == 'windows') {
|
88
|
document.getElementById('operating_system_linux').checked = false;
|
89
|
document.getElementById('operating_system_windows').checked = true;
|
90
|
document.getElementById('file_perms_box').style.display = 'none';
|
91
|
}
|
92
|
}
|
93
|
|
94
|
</script>
|
95
|
</head>
|
96
|
<body>
|
97
|
|
98
|
<table cellpadding="0" cellspacing="0" border="0" width="850" align="center">
|
99
|
<tr>
|
100
|
<td width="60" valign="top">
|
101
|
<img src="../templates/wb_theme/images/logo.png" alt="Logo" />
|
102
|
</td>
|
103
|
<td width="5"> </td>
|
104
|
<td style="font-size: 20px;">
|
105
|
<font style="color: #FFF;">Installation Wizard</font>
|
106
|
</td>
|
107
|
</tr>
|
108
|
</table>
|
109
|
|
110
|
<form name="website_baker_installation_wizard" action="save.php" method="post">
|
111
|
<input type="hidden" name="url" value="" />
|
112
|
<input type="hidden" name="username_fieldname" value="admin_username" />
|
113
|
<input type="hidden" name="password_fieldname" value="admin_password" />
|
114
|
<input type="hidden" name="remember" id="remember" value="true" />
|
115
|
|
116
|
<table cellpadding="0" cellspacing="0" border="0" width="850" align="center" style="margin-top: 10px;">
|
117
|
<tr>
|
118
|
<td class="content">
|
119
|
|
120
|
<center style="padding: 5px;">
|
121
|
Welcome to the Website Baker Installation Wizard.
|
122
|
</center>
|
123
|
|
124
|
<?php
|
125
|
if(isset($_SESSION['message']) AND $_SESSION['message'] != '') {
|
126
|
?><div style="width: 700px; padding: 10px; margin-bottom: 5px; border: 1px solid #FF0000; background-color: #FFDBDB;"><b>Error:</b> <?php echo $_SESSION['message']; ?></div><?php
|
127
|
}
|
128
|
?>
|
129
|
<table cellpadding="3" cellspacing="0" width="100%" align="center">
|
130
|
<tr>
|
131
|
<td colspan="6"><h1>Step 1</h1>Please check the following requirements are met before continuing...</td>
|
132
|
</tr>
|
133
|
<?php if($session_support != '<font class="good">Enabled</font>') { ?>
|
134
|
<tr>
|
135
|
<td colspan="6" style="font-size: 10px;" class="bad">Please note: PHP Session Support may appear disabled if your browser does not support cookies.</td>
|
136
|
</tr>
|
137
|
<?php } ?>
|
138
|
<tr>
|
139
|
<td width="160" style="color: #666666;">PHP Version > 5.2.1</td>
|
140
|
<td width="60">
|
141
|
<?php
|
142
|
if (version_compare(PHP_VERSION, '5.2.1', '>='))
|
143
|
{
|
144
|
?><font class="good">Yes</font><?php
|
145
|
} else {
|
146
|
?><font class="bad">No</font><?php
|
147
|
}
|
148
|
?>
|
149
|
</td>
|
150
|
<td width="140" style="color: #666666;">PHP Session Support</td>
|
151
|
<td width="105"><?php echo $session_support; ?></td>
|
152
|
<td width="115" style="color: #666666;">PHP Safe Mode</td>
|
153
|
<td>
|
154
|
<?php
|
155
|
if(ini_get('safe_mode')=='' || strpos(strtolower(ini_get('safe_mode')), 'off')!==FALSE || ini_get('safe_mode')==0) {
|
156
|
?><font class="good">Disabled</font><?php
|
157
|
} else {
|
158
|
?><font class="bad">Enabled</font><?php
|
159
|
}
|
160
|
?>
|
161
|
</td>
|
162
|
</tr>
|
163
|
<tr>
|
164
|
<td width="160" style="color: #666666;">AddDefaultCharset unset</td>
|
165
|
<td width="60">
|
166
|
<?php
|
167
|
if($e_adc) {
|
168
|
?><font class="bad">No</font><?php
|
169
|
} else {
|
170
|
?><font class="good">Yes</font><?php
|
171
|
}
|
172
|
?>
|
173
|
</td>
|
174
|
<td colspan="4"> </td>
|
175
|
</tr>
|
176
|
<?php if($e_adc) { ?>
|
177
|
<tr>
|
178
|
<td colspan="6" style="font-size: 10px;" class="bad">Please note: AddDefaultCharset is set to <?php echo $e_adc;?> in apache.conf.<br />If you have to use umlauts (e.g. ä á) please change this to Off. - Or use <?php echo $e_adc;?> inside website baker, too.</td>
|
179
|
</tr>
|
180
|
<?php } ?>
|
181
|
</table>
|
182
|
<table cellpadding="3" cellspacing="0" width="100%" align="center">
|
183
|
<tr>
|
184
|
<td colspan="8"><h1>Step 2</h1>Please check the following files/folders are writeable before continuing...</td>
|
185
|
</tr>
|
186
|
<tr>
|
187
|
<td style="color: #666666;"><?php print $wb_root ?>/config.php</td>
|
188
|
<td><?php if(is_writable('../config.php')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../config.php')) { echo '<font class="bad">File Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
189
|
<td style="color: #666666;"><?php print $wb_root ?>/pages/</td>
|
190
|
<td><?php if(is_writable('../pages/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../pages/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
191
|
<td style="color: #666666;"><?php print $wb_root ?>/media/</td>
|
192
|
<td><?php if(is_writable('../media/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../media/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
193
|
<td style="color: #666666;"><?php print $wb_root ?>/templates/</td>
|
194
|
<td><?php if(is_writable('../templates/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../templates/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
195
|
</tr>
|
196
|
<tr>
|
197
|
<td style="color: #666666;"><?php print $wb_root ?>/modules/</td>
|
198
|
<td><?php if(is_writable('../modules/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../modules/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
199
|
<td style="color: #666666;"><?php print $wb_root ?>/languages/</td>
|
200
|
<td><?php if(is_writable('../languages/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../languages/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
201
|
<td style="color: #666666;"><?php print $wb_root ?>/temp/</td>
|
202
|
<td><?php if(is_writable('../temp/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../temp/')) { echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
|
203
|
<td> </td>
|
204
|
<td> </td>
|
205
|
</tr>
|
206
|
</table>
|
207
|
<table cellpadding="3" cellspacing="0" width="100%" align="center">
|
208
|
<tr>
|
209
|
<td colspan="2"><h1>Step 3</h1>Please check your path settings, and select a default timezone and a default backend language...</td>
|
210
|
</tr>
|
211
|
<tr>
|
212
|
<td width="125" style="color: #666666;">
|
213
|
Absolute URL:
|
214
|
</td>
|
215
|
<td>
|
216
|
<?php
|
217
|
// Try to guess installation URL
|
218
|
$guessed_url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"];
|
219
|
$guessed_url = rtrim(dirname($guessed_url), 'install');
|
220
|
?>
|
221
|
<input <?php echo field_error('wb_url');?> type="text" tabindex="1" name="wb_url" style="width: 99%;" value="<?php if(isset($_SESSION['wb_url'])) { echo $_SESSION['wb_url']; } else { echo $guessed_url; } ?>" />
|
222
|
</td>
|
223
|
</tr>
|
224
|
<tr>
|
225
|
<td style="color: #666666;">
|
226
|
Default Timezone:
|
227
|
</td>
|
228
|
<td>
|
229
|
<select <?php echo field_error('default_timezone');?> tabindex="3" name="default_timezone" style="width: 100%;">
|
230
|
<?php
|
231
|
$TIMEZONES['-12'] = 'GMT - 12 Hours';
|
232
|
$TIMEZONES['-11'] = 'GMT -11 Hours';
|
233
|
$TIMEZONES['-10'] = 'GMT -10 Hours';
|
234
|
$TIMEZONES['-9'] = 'GMT -9 Hours';
|
235
|
$TIMEZONES['-8'] = 'GMT -8 Hours';
|
236
|
$TIMEZONES['-7'] = 'GMT -7 Hours';
|
237
|
$TIMEZONES['-6'] = 'GMT -6 Hours';
|
238
|
$TIMEZONES['-5'] = 'GMT -5 Hours';
|
239
|
$TIMEZONES['-4'] = 'GMT -4 Hours';
|
240
|
$TIMEZONES['-3.5'] = 'GMT -3.5 Hours';
|
241
|
$TIMEZONES['-3'] = 'GMT -3 Hours';
|
242
|
$TIMEZONES['-2'] = 'GMT -2 Hours';
|
243
|
$TIMEZONES['-1'] = 'GMT -1 Hour';
|
244
|
$TIMEZONES['0'] = 'GMT';
|
245
|
$TIMEZONES['1'] = 'GMT +1 Hour';
|
246
|
$TIMEZONES['2'] = 'GMT +2 Hours';
|
247
|
$TIMEZONES['3'] = 'GMT +3 Hours';
|
248
|
$TIMEZONES['3.5'] = 'GMT +3.5 Hours';
|
249
|
$TIMEZONES['4'] = 'GMT +4 Hours';
|
250
|
$TIMEZONES['4.5'] = 'GMT +4.5 Hours';
|
251
|
$TIMEZONES['5'] = 'GMT +5 Hours';
|
252
|
$TIMEZONES['5.5'] = 'GMT +5.5 Hours';
|
253
|
$TIMEZONES['6'] = 'GMT +6 Hours';
|
254
|
$TIMEZONES['6.5'] = 'GMT +6.5 Hours';
|
255
|
$TIMEZONES['7'] = 'GMT +7 Hours';
|
256
|
$TIMEZONES['8'] = 'GMT +8 Hours';
|
257
|
$TIMEZONES['9'] = 'GMT +9 Hours';
|
258
|
$TIMEZONES['9.5'] = 'GMT +9.5 Hours';
|
259
|
$TIMEZONES['10'] = 'GMT +10 Hours';
|
260
|
$TIMEZONES['11'] = 'GMT +11 Hours';
|
261
|
$TIMEZONES['12'] = 'GMT +12 Hours';
|
262
|
$TIMEZONES['13'] = 'GMT +13 Hours';
|
263
|
foreach($TIMEZONES AS $hour_offset => $title) {
|
264
|
?>
|
265
|
<option value="<?php echo $hour_offset; ?>"<?php if(isset($_SESSION['default_timezone']) AND $_SESSION['default_timezone'] == $hour_offset) { echo ' selected="selected"'; } elseif(!isset($_SESSION['default_timezone']) AND $hour_offset == 0) { echo ' selected="selected"'; } ?>><?php echo $title; ?></option>
|
266
|
<?php
|
267
|
}
|
268
|
?>
|
269
|
</select>
|
270
|
</td>
|
271
|
</tr>
|
272
|
<tr>
|
273
|
<td style="color: #666666;">
|
274
|
Default Language:
|
275
|
</td>
|
276
|
<td>
|
277
|
<select <?php echo field_error('default_language');?> tabindex="3" name="default_language" style="width: 100%;">
|
278
|
<?php
|
279
|
$DEFAULT_LANGUAGE = array(
|
280
|
'BG'=>'Bulgarian', 'CA'=>'Catalan', 'CS'=>'Čeština', 'DA'=>'Danish', 'DE'=>'Deutsch', 'EN'=>'English',
|
281
|
'ES'=>'Spanish', 'ET'=>'Eesti', 'FI'=>'Suomi', 'FR'=>'Français',
|
282
|
'HR'=>'Hrvatski', 'HU'=>'Magyar','IT'=>'Italiano', 'LV'=>'Latviesu',
|
283
|
'NL'=>'Nederlands', 'NO'=>'Norsk', 'PL'=>'Polski', 'PT'=>'Portuguese (Brazil)', 'RU'=>'Russian', 'SE'=>'Svenska','SK'=>'Slovensky','TR'=>'Turkish'
|
284
|
);
|
285
|
foreach($DEFAULT_LANGUAGE as $lang_id => $lang_title) {
|
286
|
?>
|
287
|
<option value="<?php echo $lang_id; ?>"<?php if(isset($_SESSION['default_language']) AND $_SESSION['default_language'] == $lang_id) { echo ' selected="selected"'; } elseif(!isset($_SESSION['default_language']) AND $lang_id == 'EN') { echo ' selected="selected"'; } ?>><?php echo $lang_title; ?></option>
|
288
|
<?php
|
289
|
}
|
290
|
?>
|
291
|
</select>
|
292
|
</td>
|
293
|
</tr>
|
294
|
</table>
|
295
|
<table cellpadding="5" cellspacing="0" width="100%" align="center">
|
296
|
<tr>
|
297
|
<td colspan="3"><h1>Step 4</h1>Please specify your operating system information below...</td>
|
298
|
</tr>
|
299
|
<tr>
|
300
|
<td width="170">
|
301
|
Server Operating System:
|
302
|
</td>
|
303
|
<td width="180">
|
304
|
<input type="radio" tabindex="4" name="operating_system" id="operating_system_linux" onclick="document.getElementById('file_perms_box').style.display = 'block';" value="linux"<?php if(!isset($_SESSION['operating_system']) OR $_SESSION['operating_system'] == 'linux') { echo ' checked="checked"'; } ?> />
|
305
|
<span style="cursor: pointer;" onclick="javascript: change_os('linux');">Linux/Unix based</span>
|
306
|
<br />
|
307
|
<input type="radio" tabindex="5" name="operating_system" id="operating_system_windows" onclick="document.getElementById('file_perms_box').style.display = 'none';" value="windows"<?php if(isset($_SESSION['operating_system']) AND $_SESSION['operating_system'] == 'windows') { echo ' checked="checked"'; } ?> />
|
308
|
<span style="cursor: pointer;" onclick="javascript: change_os('windows');">Windows</span>
|
309
|
</td>
|
310
|
<td>
|
311
|
<div id="file_perms_box" style="margin: 0; padding: 0; display: <?php if(isset($_SESSION['operating_system']) AND $_SESSION['operating_system'] == 'windows') { echo 'none'; } else { echo 'block'; } ?>;">
|
312
|
<input type="checkbox" tabindex="6" name="world_writeable" id="world_writeable" value="true"<?php if(isset($_SESSION['world_writeable']) AND $_SESSION['world_writeable'] == true) { echo 'checked'; } ?> />
|
313
|
<label for="world_writeable">
|
314
|
World-writeable file permissions (777)
|
315
|
</label>
|
316
|
<br />
|
317
|
<font class="note">(Please note: only recommended for testing environments)</font>
|
318
|
</div>
|
319
|
</td>
|
320
|
</tr>
|
321
|
</table>
|
322
|
<table cellpadding="5" cellspacing="0" width="100%" align="center">
|
323
|
<tr>
|
324
|
<td colspan="5">Please enter your MySQL database server details below...</td>
|
325
|
</tr>
|
326
|
<tr>
|
327
|
<td width="120" style="color: #666666;">Host Name:</td>
|
328
|
<td width="230">
|
329
|
<input <?php echo field_error('database_host');?> type="text" tabindex="7" name="database_host" style="width: 98%;" value="<?php if(isset($_SESSION['database_host'])) { echo $_SESSION['database_host']; } else { echo 'localhost'; } ?>" />
|
330
|
</td>
|
331
|
<td width="7"> </td>
|
332
|
<td width="70" style="color: #666666;">Username:</td>
|
333
|
<td>
|
334
|
<input <?php echo field_error('database_username');?> type="text" tabindex="9" name="database_username" style="width: 98%;" value="<?php if(isset($_SESSION['database_username'])) { echo $_SESSION['database_username']; } else { echo 'root'; } ?>" />
|
335
|
</td>
|
336
|
</tr>
|
337
|
<tr>
|
338
|
<td style="color: #666666;">Database Name:<br />[a-zA-Z0-9_-]</td>
|
339
|
<td>
|
340
|
<input <?php echo field_error('database_name');?> type="text" tabindex="8" name="database_name" style="width: 98%;" value="<?php if(isset($_SESSION['database_name'])) { echo $_SESSION['database_name']; } else { echo 'wb'; } ?>" />
|
341
|
</td>
|
342
|
<td> </td>
|
343
|
<td style="color: #666666;">Password:</td>
|
344
|
<td>
|
345
|
<input type="password" tabindex="10" name="database_password" style="width: 98%;"<?php if(isset($_SESSION['database_password'])) { echo ' value = "'.$_SESSION['database_password'].'"'; } ?> />
|
346
|
</td>
|
347
|
</tr>
|
348
|
<tr>
|
349
|
<td style="color: #666666;">Table Prefix:<br />[a-zA-Z0-9_]</td>
|
350
|
<td>
|
351
|
<input <?php echo field_error('table_prefix');?> type="text" tabindex="11" name="table_prefix" style="width: 250px;"<?php if(isset($_SESSION['table_prefix'])) { echo ' value = "'.$_SESSION['table_prefix'].'"'; } ?> />
|
352
|
</td>
|
353
|
<td> </td>
|
354
|
<td colspan="2">
|
355
|
<input type="checkbox" tabindex="12" name="install_tables" id="install_tables" value="true"<?php if(!isset($_SESSION['install_tables'])) { echo ' checked="checked"'; } elseif($_SESSION['install_tables'] == 'true') { echo ' checked="checked"'; } ?> />
|
356
|
<label for="install_tables" style="color: #666666;">Install Tables</label>
|
357
|
<br />
|
358
|
<span style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</span>
|
359
|
</td>
|
360
|
</tr>
|
361
|
<tr>
|
362
|
<td colspan="5"><h1>Step 5</h1>Please enter your website title below...</td>
|
363
|
</tr>
|
364
|
<tr>
|
365
|
<td style="color: #666666;" colspan="1">Website Title:</td>
|
366
|
<td colspan="4">
|
367
|
<input <?php echo field_error('website_title');?> type="text" tabindex="13" name="website_title" style="width: 99%;" value="<?php if(isset($_SESSION['website_title'])) { echo $_SESSION['website_title']; } ?>" />
|
368
|
</td>
|
369
|
</tr>
|
370
|
<tr>
|
371
|
<td colspan="5"><h1>Step 6</h1>Please enter your Administrator account details below...</td>
|
372
|
</tr>
|
373
|
<tr>
|
374
|
<td style="color: #666666;">Username:</td>
|
375
|
<td>
|
376
|
<input <?php echo field_error('admin_username');?> type="text" tabindex="14" name="admin_username" style="width: 98%;" value="<?php if(isset($_SESSION['admin_username'])) { echo $_SESSION['admin_username']; } else { echo 'admin'; } ?>" />
|
377
|
</td>
|
378
|
<td> </td>
|
379
|
<td style="color: #666666;">Password:</td>
|
380
|
<td>
|
381
|
<input <?php echo field_error('admin_password');?> type="password" tabindex="16" name="admin_password" style="width: 98%;"<?php if(isset($_SESSION['admin_password'])) { echo ' value = "'.$_SESSION['admin_password'].'"'; } ?> />
|
382
|
</td>
|
383
|
</tr>
|
384
|
<tr>
|
385
|
<td style="color: #666666;">Email:</td>
|
386
|
<td>
|
387
|
<input <?php echo field_error('admin_email');?> type="text" tabindex="15" name="admin_email" style="width: 98%;"<?php if(isset($_SESSION['admin_email'])) { echo ' value = "'.$_SESSION['admin_email'].'"'; } ?> />
|
388
|
</td>
|
389
|
<td> </td>
|
390
|
<td style="color: #666666;">Re-Password:</td>
|
391
|
<td>
|
392
|
<input <?php echo field_error('admin_repassword');?> type="password" tabindex="17" name="admin_repassword" style="width: 98%;"<?php if(isset($_SESSION['admin_repassword'])) { echo ' value = "'.$_SESSION['admin_repassword'].'"'; } ?> />
|
393
|
</td>
|
394
|
</tr>
|
395
|
<tr>
|
396
|
<td colspan="5" style="padding: 10px; padding-bottom: 0;"><h1 style="font-size: 0px;"> </h1></td>
|
397
|
</tr>
|
398
|
<tr>
|
399
|
<td colspan="4">
|
400
|
<table cellpadding="0" cellspacing="0" width="100%" border="0">
|
401
|
<tr valign="top">
|
402
|
<td>Please note: </td>
|
403
|
<td>
|
404
|
Website Baker is released under the
|
405
|
<a href="http://www.gnu.org/licenses/gpl.html" target="_blank" tabindex="19">GNU General Public License</a>
|
406
|
<br />
|
407
|
By clicking install, you are accepting the license.
|
408
|
</td>
|
409
|
</tr>
|
410
|
</table>
|
411
|
</td>
|
412
|
<td colspan="1" align="right">
|
413
|
<input type="submit" tabindex="20" name="submit" value="Install Website Baker" class="submit" />
|
414
|
</td>
|
415
|
</tr>
|
416
|
</table>
|
417
|
</td>
|
418
|
</tr>
|
419
|
</table>
|
420
|
|
421
|
</form>
|
422
|
|
423
|
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding: 10px 0px 10px 0px;">
|
424
|
<tr>
|
425
|
<td align="center" style="font-size: 10px;">
|
426
|
<!-- Please note: the below reference to the GNU GPL should not be removed, as it provides a link for users to read about warranty, etc. -->
|
427
|
<a href="http://www.websitebaker.org/" style="color: #000000;" target="_blank">Website Baker</a>
|
428
|
is released under the
|
429
|
<a href="http://www.gnu.org/licenses/gpl.html" style="color: #000000;" target="_blank">GNU General Public License</a>
|
430
|
<!-- Please note: the above reference to the GNU GPL should not be removed, as it provides a link for users to read about warranty, etc. -->
|
431
|
</td>
|
432
|
</tr>
|
433
|
</table>
|
434
|
|
435
|
</body>
|
436
|
</html>
|