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