Project

General

Profile

1 1349 Luisehahne
<?php
2
/**
3
 *
4
 * @category        backend
5
 * @package         install
6
 * @author          WebsiteBaker Project
7
 * @copyright       2009-2011, Website Baker Org. e.V.
8
 * @link			http://www.websitebaker2.org/
9
 * @license         http://www.gnu.org/licenses/gpl.html
10
 * @platform        WebsiteBaker 2.8.x
11 1374 Luisehahne
 * @requirements    PHP 5.2.2 and higher
12 1349 Luisehahne
 * @version      	$Id$
13
 * @filesource		$HeadURL$
14
 * @lastmodified    $Date$
15
 *
16
 */
17
18
// Start a session
19
if(!defined('SESSION_STARTED')) {
20
	session_name('wb_session_id');
21
	session_start();
22
	define('SESSION_STARTED', true);
23
}
24
25 1530 Luisehahne
$mod_path = dirname(str_replace('\\', '/', __FILE__));
26 1533 Luisehahne
$doc_root = rtrim(realpath($_SERVER['DOCUMENT_ROOT']),'/');
27 1530 Luisehahne
$mod_name = basename($mod_path);
28 1533 Luisehahne
$wb_path = dirname(dirname(realpath( __FILE__)));
29 1530 Luisehahne
$wb_root = str_replace(realpath($doc_root),'',$wb_path);
30
31 1349 Luisehahne
// 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 1529 Luisehahne
$installFlag = true;
40 1349 Luisehahne
// Check if the page has been reloaded
41
if(!isset($_GET['sessions_checked']) OR $_GET['sessions_checked'] != 'true') {
42
	// Set session variable
43
	$_SESSION['session_support'] = '<font class="good">Enabled</font>';
44
	// Reload page
45
	header('Location: index.php?sessions_checked=true');
46
	exit(0);
47
} else {
48
	// Check if session variable has been saved after reload
49
	if(isset($_SESSION['session_support'])) {
50
		$session_support = $_SESSION['session_support'];
51 1529 Luisehahne
	} else {
52
		$installFlag = false;
53 1349 Luisehahne
		$session_support = '<font class="bad">Disabled</font>';
54
	}
55
}
56
// Check if AddDefaultCharset is set
57
$e_adc=false;
58
$sapi=php_sapi_name();
59
if(strpos($sapi, 'apache')!==FALSE || strpos($sapi, 'nsapi')!==FALSE) {
60
	flush();
61
	$apache_rheaders=apache_response_headers();
62
	foreach($apache_rheaders AS $h) {
63
		if(strpos($h, 'html; charset')!==FALSE) {
64
			preg_match('/charset\s*=\s*([a-zA-Z0-9- _]+)/', $h, $match);
65
			$apache_charset=$match[1];
66
			$e_adc=$apache_charset;
67
		}
68
	}
69
}
70
71 1529 Luisehahne
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
72 1349 Luisehahne
<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
</script>
94
</head>
95
<body>
96
97 1529 Luisehahne
<table cellpadding="0" cellspacing="0" border="0" width="998px" align="center">
98 1349 Luisehahne
<tr>
99
	<td width="60" valign="top">
100
		<img src="../templates/wb_theme/images/logo.png" alt="Logo" />
101
	</td>
102
	<td width="5">&nbsp;</td>
103 1529 Luisehahne
	<td>
104
		<h1 style="border:none; margin-top:1em;font-size:150%;">Installation Wizard</h1>
105 1349 Luisehahne
	</td>
106
</tr>
107
</table>
108
109
<form name="website_baker_installation_wizard" action="save.php" method="post">
110
<input type="hidden" name="url" value="" />
111
<input type="hidden" name="username_fieldname" value="admin_username" />
112
<input type="hidden" name="password_fieldname" value="admin_password" />
113
<input type="hidden" name="remember" id="remember" value="true" />
114
115 1529 Luisehahne
<table cellpadding="0" cellspacing="0" border="0" width="998px" align="center" style="margin-top: 10px;">
116 1349 Luisehahne
<tr>
117
	<td class="content">
118
119
		<center style="padding: 5px;">
120
			Welcome to the Website Baker Installation Wizard.
121
		</center>
122
123
		<?php
124
		if(isset($_SESSION['message']) AND $_SESSION['message'] != '') {
125
			?><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
126
		}
127
		?>
128
		<table cellpadding="3" cellspacing="0" width="100%" align="center">
129
		<tr>
130
			<td colspan="6"><h1>Step 1</h1>Please check the following requirements are met before continuing...</td>
131
		</tr>
132
		<?php if($session_support != '<font class="good">Enabled</font>') { ?>
133
		<tr>
134
			<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>
135
		</tr>
136
		<?php } ?>
137
		<tr>
138
			<td width="160" style="color: #666666;">PHP Version > 5.2.1</td>
139
			<td width="60">
140
				<?php
141
			   if (version_compare(PHP_VERSION, '5.2.1', '>='))
142
			   {
143
					?><font class="good">Yes</font><?php
144
				} else {
145 1529 Luisehahne
					$installFlag = false;
146 1349 Luisehahne
					?><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 1529 Luisehahne
					$installFlag = false;
159 1349 Luisehahne
					?><font class="bad">Enabled</font><?php
160
				}
161
				?>
162
			</td>
163
		</tr>
164
		<tr>
165
			<td width="160" style="color: #666666;">AddDefaultCharset unset</td>
166
			<td width="60">
167
				<?php
168
					if($e_adc) {
169 1529 Luisehahne
						$installFlag = false;
170 1349 Luisehahne
						?><font class="bad">No</font><?php
171
					} else {
172
						?><font class="good">Yes</font><?php
173
					}
174
				?>
175
			</td>
176
			<td colspan="4">&nbsp;</td>
177
		</tr>
178 1529 Luisehahne
		<?php if($e_adc) {
179
			$installFlag = false;
180
		?>
181 1349 Luisehahne
		<tr>
182
			<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. &auml; &aacute;) please change this to Off. - Or use <?php echo $e_adc;?> inside website baker, too.</td>
183
		</tr>
184
		<?php } ?>
185
		</table>
186
		<table cellpadding="3" cellspacing="0" width="100%" align="center">
187
		<tr>
188
			<td colspan="8"><h1>Step 2</h1>Please check the following files/folders are writeable before continuing...</td>
189
		</tr>
190
		<tr>
191 1529 Luisehahne
<?php
192 1530 Luisehahne
	$config = '<font class="good">Writeable</font>';
193 1540 Luisehahne
	$config_content = "<?php\n";
194 1530 Luisehahne
	$configFile = '/config.php';
195 1540 Luisehahne
	if(!isset($_SESSION['config_rename']) )
196
	{
197 1530 Luisehahne
198 1540 Luisehahne
		if( (file_exists($wb_path.$configFile)==true))
199
		{
200
201
			if ( filesize($wb_path.$configFile) > 128)
202
			{
203 1530 Luisehahne
				$installFlag = false;
204
				$config = '<font class="bad">Not empty!!?</font>';
205 1540 Luisehahne
			} elseif(!$handle = fopen($wb_path.$configFile, 'w') )
206
			{
207
				$installFlag = false;
208
                $config = '<font class="bad">Not Writeable</font>';
209
			} else {
210
				if (fwrite($handle, $config_content) === FALSE) {
211
					$installFlag = false;
212
	                $config = '<font class="bad">Not Writeable</font>';
213
				} else {
214
					$config = '<font class="good">Writeable</font>';
215
					$_SESSION['config_rename'] = true;
216
				}
217
				// Close file
218
				fclose($handle);
219
				}
220
221
		} elseif((file_exists($wb_path.'/config.php.new')==true))
222
		{
223 1529 Luisehahne
			$configFile = '/config.php.new';
224
			$installFlag = false;
225 1530 Luisehahne
			$config = '<font class="bad">Please rename</font>';
226 1540 Luisehahne
		} else
227
		{
228
			$installFlag = false;
229
			$config = '<font class="bad">Missing!!?</font>';
230 1529 Luisehahne
		}
231
	}
232
?>
233
			<td width="150px" style="color: #666666;"><?php print $wb_root.$configFile ?></td>
234
			<td width="150px"><?php echo $config ?></td>
235
			<td width="140px" style="color: #666666;"><?php print $wb_root ?>/pages/</td>
236
			<td width="120px"><?php if(is_writable('../pages/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../pages/')) {$installFlag = false; echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
237
			<td width="140px" style="color: #666666;"><?php print $wb_root ?>/media/</td>
238
			<td width="120px"><?php if(is_writable('../media/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../media/')) {$installFlag = false; echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
239
			<td width="140px" style="color: #666666;"><?php print $wb_root ?>/templates/</td>
240
			<td width="120px"><?php if(is_writable('../templates/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../templates/')) {$installFlag = false; echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
241 1349 Luisehahne
		</tr>
242
		<tr>
243 1370 Luisehahne
			<td style="color: #666666;"><?php print $wb_root ?>/modules/</td>
244 1529 Luisehahne
			<td><?php if(is_writable('../modules/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../modules/')) {$installFlag = false; echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
245 1370 Luisehahne
			<td style="color: #666666;"><?php print $wb_root ?>/languages/</td>
246 1529 Luisehahne
			<td><?php if(is_writable('../languages/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../languages/')) {$installFlag = false; echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
247 1370 Luisehahne
			<td style="color: #666666;"><?php print $wb_root ?>/temp/</td>
248 1529 Luisehahne
			<td><?php if(is_writable('../temp/')) { echo '<font class="good">Writeable</font>'; } elseif(!file_exists('../temp/')) {$installFlag = false; echo '<font class="bad">Directory Not Found</font>'; } else { echo '<font class="bad">Unwriteable</font>'; } ?></td>
249 1349 Luisehahne
			<td>&nbsp;</td>
250
			<td>&nbsp;</td>
251
		</tr>
252
		</table>
253
		<table cellpadding="3" cellspacing="0" width="100%" align="center">
254
		<tr>
255
			<td colspan="2"><h1>Step 3</h1>Please check your path settings, and select a default timezone and a default backend language...</td>
256
		</tr>
257
		<tr>
258
			<td width="125" style="color: #666666;">
259
				Absolute URL:
260
			</td>
261
			<td>
262
				<?php
263
				// Try to guess installation URL
264
				$guessed_url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"];
265
				$guessed_url = rtrim(dirname($guessed_url), 'install');
266
				?>
267
				<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; } ?>" />
268
			</td>
269
		</tr>
270
		<tr>
271
			<td style="color: #666666;">
272
				Default Timezone:
273
			</td>
274
			<td>
275
				<select <?php echo field_error('default_timezone');?> tabindex="3" name="default_timezone" style="width: 100%;">
276
					<?php
277
					$TIMEZONES['-12'] = 'GMT - 12 Hours';
278
					$TIMEZONES['-11'] = 'GMT -11 Hours';
279
					$TIMEZONES['-10'] = 'GMT -10 Hours';
280
					$TIMEZONES['-9'] = 'GMT -9 Hours';
281
					$TIMEZONES['-8'] = 'GMT -8 Hours';
282
					$TIMEZONES['-7'] = 'GMT -7 Hours';
283
					$TIMEZONES['-6'] = 'GMT -6 Hours';
284
					$TIMEZONES['-5'] = 'GMT -5 Hours';
285
					$TIMEZONES['-4'] = 'GMT -4 Hours';
286
					$TIMEZONES['-3.5'] = 'GMT -3.5 Hours';
287
					$TIMEZONES['-3'] = 'GMT -3 Hours';
288
					$TIMEZONES['-2'] = 'GMT -2 Hours';
289
					$TIMEZONES['-1'] = 'GMT -1 Hour';
290
					$TIMEZONES['0'] = 'GMT';
291
					$TIMEZONES['1'] = 'GMT +1 Hour';
292
					$TIMEZONES['2'] = 'GMT +2 Hours';
293
					$TIMEZONES['3'] = 'GMT +3 Hours';
294
					$TIMEZONES['3.5'] = 'GMT +3.5 Hours';
295
					$TIMEZONES['4'] = 'GMT +4 Hours';
296
					$TIMEZONES['4.5'] = 'GMT +4.5 Hours';
297
					$TIMEZONES['5'] = 'GMT +5 Hours';
298
					$TIMEZONES['5.5'] = 'GMT +5.5 Hours';
299
					$TIMEZONES['6'] = 'GMT +6 Hours';
300
					$TIMEZONES['6.5'] = 'GMT +6.5 Hours';
301
					$TIMEZONES['7'] = 'GMT +7 Hours';
302
					$TIMEZONES['8'] = 'GMT +8 Hours';
303
					$TIMEZONES['9'] = 'GMT +9 Hours';
304
					$TIMEZONES['9.5'] = 'GMT +9.5 Hours';
305
					$TIMEZONES['10'] = 'GMT +10 Hours';
306
					$TIMEZONES['11'] = 'GMT +11 Hours';
307
					$TIMEZONES['12'] = 'GMT +12 Hours';
308
					$TIMEZONES['13'] = 'GMT +13 Hours';
309
					foreach($TIMEZONES AS $hour_offset => $title) {
310
						?>
311
							<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>
312
						<?php
313
					}
314
					?>
315
				</select>
316
			</td>
317
		</tr>
318
		<tr>
319
			<td style="color: #666666;">
320
				Default Language:
321
			</td>
322
			<td>
323
				<select <?php echo field_error('default_language');?> tabindex="3" name="default_language" style="width: 100%;">
324
					<?php
325
					$DEFAULT_LANGUAGE = array(
326
						'BG'=>'Bulgarian', 'CA'=>'Catalan', 'CS'=>'&#268;e&scaron;tina', 'DA'=>'Danish', 'DE'=>'Deutsch', 'EN'=>'English',
327
						'ES'=>'Spanish', 'ET'=>'Eesti', 'FI'=>'Suomi', 'FR'=>'Fran&ccedil;ais',
328
						'HR'=>'Hrvatski', 'HU'=>'Magyar','IT'=>'Italiano', 'LV'=>'Latviesu',
329
						'NL'=>'Nederlands', 'NO'=>'Norsk', 'PL'=>'Polski', 'PT'=>'Portuguese (Brazil)', 'RU'=>'Russian', 'SE'=>'Svenska','SK'=>'Slovensky','TR'=>'Turkish'
330
					);
331
					foreach($DEFAULT_LANGUAGE as $lang_id => $lang_title) {
332
						?>
333
							<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>
334
						<?php
335
					}
336
					?>
337
				</select>
338
			</td>
339
		</tr>
340
		</table>
341
		<table cellpadding="5" cellspacing="0" width="100%" align="center">
342
		<tr>
343
			<td colspan="3"><h1>Step 4</h1>Please specify your operating system information below...</td>
344
		</tr>
345
		<tr>
346
			<td width="170">
347
				Server Operating System:
348
			</td>
349
			<td width="180">
350
				<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"'; } ?> />
351
				<span style="cursor: pointer;" onclick="javascript: change_os('linux');">Linux/Unix based</span>
352
				<br />
353
				<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"'; } ?> />
354
				<span style="cursor: pointer;" onclick="javascript: change_os('windows');">Windows</span>
355
			</td>
356
			<td>
357
				<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'; } ?>;">
358
					<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'; } ?> />
359
					<label for="world_writeable">
360
						World-writeable file permissions (777)
361
					</label>
362
					<br />
363
					<font class="note">(Please note: only recommended for testing environments)</font>
364
				</div>
365
			</td>
366
		</tr>
367
		</table>
368
		<table cellpadding="5" cellspacing="0" width="100%" align="center">
369
    		<tr>
370
    			<td colspan="5">Please enter your MySQL database server details below...</td>
371
    		</tr>
372
    		<tr>
373
    			<td width="120" style="color: #666666;">Host Name:</td>
374
    			<td width="230">
375
    				<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'; } ?>" />
376
    			</td>
377
    			<td width="7">&nbsp;</td>
378
    			<td width="70" style="color: #666666;">Username:</td>
379
    			<td>
380
    				<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'; } ?>" />
381
    			</td>
382
    		</tr>
383
    		<tr>
384
    			<td style="color: #666666;">Database Name:<br />[a-zA-Z0-9_-]</td>
385
    			<td>
386 1529 Luisehahne
    				<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 'DatabaseName'; } ?>" />
387 1349 Luisehahne
    			</td>
388
    			<td>&nbsp;</td>
389
    			<td style="color: #666666;">Password:</td>
390
    			<td>
391 1529 Luisehahne
    				<input type="password" tabindex="10" name="database_password" style="width: 98%;" value="<?php if(isset($_SESSION['database_password'])) { echo $_SESSION['database_password']; } ?>" />
392 1349 Luisehahne
    			</td>
393
    		</tr>
394
		<tr>
395
			<td style="color: #666666;">Table Prefix:<br />[a-zA-Z0-9_]</td>
396
			<td>
397 1529 Luisehahne
				<input <?php echo field_error('table_prefix');?> type="text" tabindex="11" name="table_prefix" style="width: 250px;" value="<?php if(isset($_SESSION['table_prefix'])) { echo $_SESSION['table_prefix']; } else { echo 'wb_'; } ?>" />
398 1349 Luisehahne
			</td>
399
			<td>&nbsp;</td>
400
			<td colspan="2">
401
				<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"'; } ?> />
402
				<label for="install_tables" style="color: #666666;">Install Tables</label>
403
				<br />
404
				<span style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</span>
405
			</td>
406
		</tr>
407
		<tr>
408
			<td colspan="5"><h1>Step 5</h1>Please enter your website title below...</td>
409
		</tr>
410
		<tr>
411
			<td style="color: #666666;" colspan="1">Website Title:</td>
412
			<td colspan="4">
413 1529 Luisehahne
				<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']; } else { echo 'Enter your website title'; } ?>" />
414 1349 Luisehahne
			</td>
415
		</tr>
416
		<tr>
417
			<td colspan="5"><h1>Step 6</h1>Please enter your Administrator account details below...</td>
418
		</tr>
419
		<tr>
420
			<td style="color: #666666;">Username:</td>
421
			<td>
422
				<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'; } ?>" />
423
			</td>
424
			<td>&nbsp;</td>
425
			<td style="color: #666666;">Password:</td>
426
			<td>
427 1529 Luisehahne
				<input <?php echo field_error('admin_password');?> type="password" tabindex="16" name="admin_password" style="width: 98%;" value="" />
428 1349 Luisehahne
			</td>
429
		</tr>
430
		<tr>
431
			<td style="color: #666666;">Email:</td>
432
			<td>
433 1529 Luisehahne
				<input <?php echo field_error('admin_email');?> type="text" tabindex="15" name="admin_email" style="width: 98%;" value="<?php if(isset($_SESSION['admin_email'])) { echo $_SESSION['admin_email']; } ?>" />
434 1349 Luisehahne
			</td>
435
			<td>&nbsp;</td>
436
			<td style="color: #666666;">Re-Password:</td>
437
			<td>
438 1529 Luisehahne
				<input <?php echo field_error('admin_repassword');?> type="password" tabindex="17" name="admin_repassword" style="width: 98%;" value=""  />
439 1349 Luisehahne
			</td>
440
		</tr>
441
		<tr>
442
			<td colspan="5" style="padding: 10px; padding-bottom: 0;"><h1 style="font-size: 0px;">&nbsp;</h1></td>
443
		</tr>
444
		<tr>
445
			<td colspan="4">
446
				<table cellpadding="0" cellspacing="0" width="100%" border="0">
447
				<tr valign="top">
448
					<td>Please note: &nbsp;</td>
449
					<td>
450 1529 Luisehahne
						Website Baker is released under the
451 1349 Luisehahne
						<a href="http://www.gnu.org/licenses/gpl.html" target="_blank" tabindex="19">GNU General Public License</a>
452
						<br />
453
						By clicking install, you are accepting the license.
454
					</td>
455
				</tr>
456
				</table>
457
			</td>
458
			<td colspan="1" align="right">
459 1529 Luisehahne
				<?php if($installFlag == true) { ?>
460
				<input type="submit" tabindex="20" name="submit" value="Install WebsiteBaker" />
461
				<?php } else { ?>
462
				<input type="button" tabindex="20" name="submit" value="Check your Settings in Step1 or Step2" class="submit" />
463
				<?php } ?>
464 1349 Luisehahne
			</td>
465
		</tr>
466
		</table>
467
	</td>
468
</tr>
469
</table>
470
471
</form>
472
473
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding: 10px 0px 10px 0px;">
474
<tr>
475
	<td align="center" style="font-size: 10px;">
476
		<!-- 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. -->
477
		<a href="http://www.websitebaker.org/" style="color: #000000;" target="_blank">Website Baker</a>
478
		is	released under the
479
		<a href="http://www.gnu.org/licenses/gpl.html" style="color: #000000;" target="_blank">GNU General Public License</a>
480
		<!-- 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. -->
481
	</td>
482
</tr>
483
</table>
484
485
</body>
486
</html>