Revision 582
Added by thorn almost 18 years ago
| index.php | ||
|---|---|---|
| 1 |
<?php |
|
| 2 |
|
|
| 3 |
// $Id$ |
|
| 4 |
|
|
| 5 |
/* |
|
| 6 |
|
|
| 7 |
Website Baker Project <http://www.websitebaker.org/> |
|
| 8 |
Copyright (C) 2004-2008, 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 |
*/ |
|
| 1 |
<?php |
|
| 25 | 2 |
|
| 26 |
// Start a session |
|
| 3 |
// $Id$ |
|
| 4 |
|
|
| 5 |
/* |
|
| 6 |
|
|
| 7 |
Website Baker Project <http://www.websitebaker.org/> |
|
| 8 |
Copyright (C) 2004-2008, 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 |
*/ |
|
| 25 |
|
|
| 26 |
// Start a session |
|
| 27 | 27 |
if(!defined('SESSION_STARTED')) {
|
| 28 |
// get random-part for session_name() |
|
| 29 |
list($usec,$sec) = explode(' ',microtime());
|
|
| 30 |
srand((float)$sec+((float)$usec*100000)); |
|
| 31 |
$session_rand = rand(1000,9999); |
|
| 32 |
session_name("wb_session_id");
|
|
| 28 |
session_name('wb_session_id');
|
|
| 33 | 29 |
session_start(); |
| 34 |
$_SESSION['SESSION_RAND'] = $session_rand; |
|
| 35 |
define('SESSION_STARTED', true);
|
|
| 30 |
define('SESSION_STARTED', true);
|
|
| 36 | 31 |
} |
| 37 |
|
|
| 38 |
// Check if the page has been reloaded |
|
| 39 |
if(!isset($_GET['sessions_checked']) OR $_GET['sessions_checked'] != 'true') {
|
|
| 40 |
// Set session variable |
|
| 41 |
$_SESSION['session_support'] = '<font class="good">Enabled</font>'; |
|
| 42 |
// Reload page |
|
| 43 |
header('Location: index.php?sessions_checked=true');
|
|
| 44 |
exit(0); |
|
| 45 |
} else {
|
|
| 46 |
// Check if session variable has been saved after reload |
|
| 47 |
if(isset($_SESSION['session_support'])) {
|
|
| 48 |
$session_support = $_SESSION['session_support']; |
|
| 49 |
} else {
|
|
| 50 |
$session_support = '<font class="bad">Disabled</font>'; |
|
| 51 |
} |
|
| 52 |
} |
|
| 53 |
|
|
| 54 |
?> |
|
| 55 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
| 56 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
| 57 |
<head> |
|
| 58 |
<title>Website Baker Installation Wizard</title> |
|
| 59 |
<link href="stylesheet.css" rel="stylesheet" type="text/css"> |
|
| 60 |
<script language="javascript" type="text/javascript"> |
|
| 61 |
|
|
| 62 |
function confirm_link(message, url) {
|
|
| 63 |
if(confirm(message)) location.href = url; |
|
| 64 |
} |
|
| 65 |
function change_os(type) {
|
|
| 66 |
if(type == 'linux') {
|
|
| 67 |
document.getElementById('operating_system_linux').checked = true;
|
|
| 68 |
document.getElementById('operating_system_windows').checked = false;
|
|
| 69 |
document.getElementById('file_perms_box').style.display = 'block';
|
|
| 70 |
} else if(type == 'windows') {
|
|
| 71 |
document.getElementById('operating_system_linux').checked = false;
|
|
| 72 |
document.getElementById('operating_system_windows').checked = true;
|
|
| 73 |
document.getElementById('file_perms_box').style.display = 'none';
|
|
| 74 |
} |
|
| 75 |
} |
|
| 76 |
|
|
| 77 |
</script> |
|
| 78 |
</head> |
|
| 79 |
<body> |
|
| 80 |
|
|
| 81 |
<table cellpadding="0" cellspacing="0" border="0" width="750" align="center"> |
|
| 82 |
<tr> |
|
| 83 |
<td width="60" valign="top"> |
|
| 84 |
<img src="../admin/interface/logo.png" width="60" height="60" alt="Logo" /> |
|
| 85 |
</td> |
|
| 86 |
<td width="5"> </td> |
|
| 87 |
<td style="font-size: 20px;"> |
|
| 88 |
<font style="color: #FFFFFF;">Website Baker</font> |
|
| 89 |
<font style="color: #DDDDDD;">Installation Wizard</font> |
|
| 90 |
</td> |
|
| 91 |
</tr> |
|
| 92 |
</table> |
|
| 93 |
|
|
| 94 |
<form name="website_baker_installation_wizard" action="save.php" method="post"> |
|
| 95 |
<input type="hidden" name="url" value="" /> |
|
| 96 |
<input type="hidden" name="username_fieldname" value="admin_username" /> |
|
| 97 |
<input type="hidden" name="password_fieldname" value="admin_password" /> |
|
| 98 |
<input type="hidden" name="remember" id="remember" value="true" /> |
|
| 99 |
|
|
| 100 |
<table cellpadding="0" cellspacing="0" border="0" width="750" align="center" style="margin-top: 10px;"> |
|
| 101 |
<tr> |
|
| 102 |
<td class="content"> |
|
| 103 |
|
|
| 104 |
<center style="padding: 5px;"> |
|
| 105 |
Welcome to the Website Baker Installation Wizard. |
|
| 106 |
</center> |
|
| 107 |
|
|
| 108 |
<?php |
|
| 109 |
if(isset($_SESSION['message']) AND $_SESSION['message'] != '') {
|
|
| 110 |
?><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 |
|
| 111 |
} |
|
| 112 |
?> |
|
| 113 |
<table cellpadding="3" cellspacing="0" width="100%" align="center"> |
|
| 114 |
<tr> |
|
| 115 |
<td colspan="8"><h1>Step 1</h1>Please check the following requirements are met before continuing...</td> |
|
| 116 |
</tr> |
|
| 117 |
<?php if($session_support != '<font class="good">Enabled</font>') { ?>
|
|
| 118 |
<tr> |
|
| 119 |
<td colspan="8" style="font-size: 10px;" class="bad">Please note: PHP Session Support may appear disabled if your browser does not support cookies.</td> |
|
| 120 |
</tr> |
|
| 121 |
<?php } ?> |
|
| 122 |
<tr> |
|
| 123 |
<td width="140" style="color: #666666;">PHP Version > 4.1.0</td> |
|
| 124 |
<td width="35"> |
|
| 125 |
<?php |
|
| 126 |
$phpversion = substr(PHP_VERSION, 0, 6); |
|
| 127 |
if($phpversion > 4.1) {
|
|
| 128 |
?><font class="good">Yes</font><?php |
|
| 129 |
} else {
|
|
| 130 |
?><font class="bad">No</font><?php |
|
| 131 |
} |
|
| 132 |
?> |
|
| 133 |
</td> |
|
| 134 |
<td width="140" style="color: #666666;">PHP Session Support</td> |
|
| 135 |
<td width="115"><?php echo $session_support; ?></td> |
|
| 136 |
<td width="105" style="color: #666666;">PHP Safe Mode</td> |
|
| 137 |
<td> |
|
| 138 |
<?php |
|
| 139 |
if(ini_get('safe_mode')) {
|
|
| 140 |
?><font class="bad">Enabled</font><?php |
|
| 141 |
} else {
|
|
| 142 |
?><font class="good">Disabled</font><?php |
|
| 143 |
} |
|
| 144 |
?> |
|
| 145 |
</td> |
|
| 146 |
</tr> |
|
| 147 |
</table> |
|
| 148 |
<table cellpadding="3" cellspacing="0" width="100%" align="center"> |
|
| 149 |
<tr> |
|
| 150 |
<td colspan="8"><h1>Step 2</h1>Please check the following files/folders are writeable before continuing...</td> |
|
| 151 |
</tr> |
|
| 152 |
<tr> |
|
| 153 |
<td style="color: #666666;">wb/config.php</td> |
|
| 154 |
<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>
|
|
| 155 |
<td style="color: #666666;">wb/pages/</td> |
|
| 156 |
<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>
|
|
| 157 |
<td style="color: #666666;">wb/media/</td> |
|
| 158 |
<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>
|
|
| 159 |
<td style="color: #666666;">wb/templates/</td> |
|
| 160 |
<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>
|
|
| 161 |
</tr> |
|
| 162 |
<tr> |
|
| 163 |
<td style="color: #666666;">wb/modules/</td> |
|
| 164 |
<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>
|
|
| 165 |
<td style="color: #666666;">wb/languages/</td> |
|
| 166 |
<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>
|
|
| 167 |
<td style="color: #666666;">wb/temp/</td> |
|
| 168 |
<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>
|
|
| 169 |
<td> </td> |
|
| 170 |
<td> </td> |
|
| 171 |
</tr> |
|
| 172 |
</table> |
|
| 173 |
<table cellpadding="3" cellspacing="0" width="100%" align="center"> |
|
| 174 |
<tr> |
|
| 175 |
<td colspan="2"><h1>Step 3</h1>Please check your path settings, and select your default timezone...</td> |
|
| 176 |
</tr> |
|
| 177 |
<tr> |
|
| 178 |
<td width="125" style="color: #666666;"> |
|
| 179 |
Absolute URL: |
|
| 180 |
</td> |
|
| 181 |
<td> |
|
| 182 |
<?php |
|
| 183 |
// Try to guess installation URL |
|
| 184 |
$guessed_url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"]; |
|
| 185 |
$guessed_url = rtrim(dirname($guessed_url), 'install'); |
|
| 186 |
?> |
|
| 187 |
<input 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; } ?>" />
|
|
| 188 |
</td> |
|
| 189 |
</tr> |
|
| 190 |
<tr> |
|
| 191 |
<td style="color: #666666;"> |
|
| 192 |
Default Timezone: |
|
| 193 |
</td> |
|
| 194 |
<td> |
|
| 195 |
<select tabindex="3" name="default_timezone" style="width: 100%;"> |
|
| 196 |
<?php |
|
| 197 |
$TIMEZONES['-12'] = 'GMT - 12 Hours'; |
|
| 198 |
$TIMEZONES['-11'] = 'GMT -11 Hours'; |
|
| 199 |
$TIMEZONES['-10'] = 'GMT -10 Hours'; |
|
| 200 |
$TIMEZONES['-9'] = 'GMT -9 Hours'; |
|
| 201 |
$TIMEZONES['-8'] = 'GMT -8 Hours'; |
|
| 202 |
$TIMEZONES['-7'] = 'GMT -7 Hours'; |
|
| 203 |
$TIMEZONES['-6'] = 'GMT -6 Hours'; |
|
| 204 |
$TIMEZONES['-5'] = 'GMT -5 Hours'; |
|
| 205 |
$TIMEZONES['-4'] = 'GMT -4 Hours'; |
|
| 206 |
$TIMEZONES['-3.5'] = 'GMT -3.5 Hours'; |
|
| 207 |
$TIMEZONES['-3'] = 'GMT -3 Hours'; |
|
| 208 |
$TIMEZONES['-2'] = 'GMT -2 Hours'; |
|
| 209 |
$TIMEZONES['-1'] = 'GMT -1 Hour'; |
|
| 210 |
$TIMEZONES['0'] = 'GMT'; |
|
| 211 |
$TIMEZONES['1'] = 'GMT +1 Hour'; |
|
| 212 |
$TIMEZONES['2'] = 'GMT +2 Hours'; |
|
| 213 |
$TIMEZONES['3'] = 'GMT +3 Hours'; |
|
| 214 |
$TIMEZONES['3.5'] = 'GMT +3.5 Hours'; |
|
| 215 |
$TIMEZONES['4'] = 'GMT +4 Hours'; |
|
| 216 |
$TIMEZONES['4.5'] = 'GMT +4.5 Hours'; |
|
| 217 |
$TIMEZONES['5'] = 'GMT +5 Hours'; |
|
| 218 |
$TIMEZONES['5.5'] = 'GMT +5.5 Hours'; |
|
| 219 |
$TIMEZONES['6'] = 'GMT +6 Hours'; |
|
| 220 |
$TIMEZONES['6.5'] = 'GMT +6.5 Hours'; |
|
| 221 |
$TIMEZONES['7'] = 'GMT +7 Hours'; |
|
| 222 |
$TIMEZONES['8'] = 'GMT +8 Hours'; |
|
| 223 |
$TIMEZONES['9'] = 'GMT +9 Hours'; |
|
| 224 |
$TIMEZONES['9.5'] = 'GMT +9.5 Hours'; |
|
| 225 |
$TIMEZONES['10'] = 'GMT +10 Hours'; |
|
| 226 |
$TIMEZONES['11'] = 'GMT +11 Hours'; |
|
| 227 |
$TIMEZONES['12'] = 'GMT +12 Hours'; |
|
| 228 |
$TIMEZONES['13'] = 'GMT +13 Hours'; |
|
| 229 |
foreach($TIMEZONES AS $hour_offset => $title) {
|
|
| 230 |
?> |
|
| 231 |
<option value="<?php echo $hour_offset; ?>"<?php if(isset($_SESSION['default_timezone']) AND $_SESSION['default_timezone'] == $hour_offset) { echo ' selected'; } elseif(!isset($_SESSION['default_timezone']) AND $hour_offset == 0) { echo 'selected'; } ?>><?php echo $title; ?></option>
|
|
| 232 |
<?php |
|
| 233 |
} |
|
| 234 |
?> |
|
| 235 |
</select> |
|
| 236 |
</td> |
|
| 237 |
</tr> |
|
| 238 |
</table> |
|
| 239 |
<table cellpadding="5" cellspacing="0" width="100%" align="center"> |
|
| 240 |
<tr> |
|
| 241 |
<td colspan="3"><h1>Step 4</h1>Please specify your operating system information below...</td> |
|
| 242 |
</tr> |
|
| 243 |
<tr height="50"> |
|
| 244 |
<td width="170"> |
|
| 245 |
Server Operating System: |
|
| 246 |
</td> |
|
| 247 |
<td width="180"> |
|
| 248 |
<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'; } ?> />
|
|
| 249 |
<font style="cursor: pointer;" onclick="javascript: change_os('linux');">Linux/Unix based</font>
|
|
| 250 |
<br /> |
|
| 251 |
<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'; } ?> />
|
|
| 252 |
<font style="cursor: pointer;" onclick="javascript: change_os('windows');">Windows</font>
|
|
| 253 |
</td> |
|
| 254 |
<td> |
|
| 255 |
<div name="file_perms_box" 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'; } ?>;">
|
|
| 256 |
<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'; } ?> />
|
|
| 257 |
<label for="world_writeable"> |
|
| 258 |
World-writeable file permissions (777) |
|
| 259 |
</label> |
|
| 260 |
<br /> |
|
| 261 |
<font class="note">(Please note: this is only recommended for testing environments)</font> |
|
| 262 |
</div> |
|
| 263 |
</td> |
|
| 264 |
</tr> |
|
| 265 |
</table> |
|
| 266 |
<table cellpadding="5" cellspacing="0" width="100%" align="center"> |
|
| 267 |
<tr> |
|
| 268 |
<td colspan="5">Please enter your MySQL database server details below...</td> |
|
| 269 |
</tr> |
|
| 270 |
<tr> |
|
| 271 |
<td width="120" style="color: #666666;">Host Name:</td> |
|
| 272 |
<td width="230"> |
|
| 273 |
<input type="text" tabindex="7" name="database_host" style="width: 98%;" value="<?php if(isset($_SESSION['database_host'])) { echo $_SESSION['database_host']; } else { echo 'localhost'; } ?>" />
|
|
| 274 |
</td> |
|
| 275 |
<td width="7"> </td> |
|
| 276 |
<td width="70" style="color: #666666;">Username:</td> |
|
| 277 |
<td> |
|
| 278 |
<input type="text" tabindex="9" name="database_username" style="width: 98%;" value="<?php if(isset($_SESSION['database_username'])) { echo $_SESSION['database_username']; } else { echo 'root'; } ?>" />
|
|
| 279 |
</td> |
|
| 280 |
</tr> |
|
| 281 |
<tr> |
|
| 282 |
<td style="color: #666666;">Database Name:</td> |
|
| 283 |
<td> |
|
| 284 |
<input type="text" tabindex="8" name="database_name" style="width: 98%;" value="<?php if(isset($_SESSION['database_name'])) { echo $_SESSION['database_name']; } else { echo 'wb'; } ?>" />
|
|
| 285 |
</td> |
|
| 286 |
<td> </td> |
|
| 287 |
<td style="color: #666666;">Password:</td> |
|
| 288 |
<td> |
|
| 289 |
<input type="password" tabindex="10" name="database_password" style="width: 98%;"<?php if(isset($_SESSION['database_password'])) { echo ' value = "'.$_SESSION['database_password'].'"'; } ?> />
|
|
| 290 |
</td> |
|
| 291 |
</tr> |
|
| 292 |
<tr> |
|
| 293 |
<td style="color: #666666;">Table Prefix:</td> |
|
| 294 |
<td> |
|
| 295 |
<input type="text" tabindex="11" name="table_prefix" style="width: 250px;"<?php if(isset($_SESSION['table_prefix'])) { echo ' value = "'.$_SESSION['table_prefix'].'"'; } ?> />
|
|
| 296 |
</td> |
|
| 297 |
<td> </td> |
|
| 298 |
<td colspan="2"> |
|
| 299 |
<input type="checkbox" tabindex="12" name="install_tables" id="install_tables" value="true"<?php if(!isset($_SESSION['install_tables'])) { echo ' checked'; } elseif($_SESSION['install_tables'] == 'true') { echo ' checked'; } ?> />
|
|
| 300 |
<label for="install_tables" style="color: #666666;">Install Tables</label> |
|
| 301 |
<br /> |
|
| 302 |
<span style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</span></td> |
|
| 303 |
</td> |
|
| 304 |
</tr> |
|
| 305 |
<tr> |
|
| 306 |
<td colspan="5"><h1>Step 5</h1>Please enter your website title below...</td> |
|
| 307 |
</tr> |
|
| 308 |
<tr> |
|
| 309 |
<td style="color: #666666;" colspan="1">Website Title:</td> |
|
| 310 |
<td colspan="4"> |
|
| 311 |
<input type="text" tabindex="13" name="website_title" style="width: 99%;" value="<?php if(isset($_SESSION['website_title'])) { echo $_SESSION['website_title']; } ?>" />
|
|
| 312 |
</td> |
|
| 313 |
</tr> |
|
| 314 |
<tr> |
|
| 315 |
<td colspan="5"><h1>Step 6</h1>Please enter your Administrator account details below...</td> |
|
| 316 |
</tr> |
|
| 317 |
<tr> |
|
| 318 |
<td style="color: #666666;">Username:</td> |
|
| 319 |
<td> |
|
| 320 |
<input type="text" tabindex="14" name="admin_username" style="width: 98%;" value="<?php if(isset($_SESSION['admin_username'])) { echo $_SESSION['admin_username']; } else { echo 'admin'; } ?>" />
|
|
| 321 |
</td> |
|
| 322 |
<td> </td> |
|
| 323 |
<td style="color: #666666;">Password:</td> |
|
| 324 |
<td> |
|
| 325 |
<input type="password" tabindex="16" name="admin_password" style="width: 98%;"<?php if(isset($_SESSION['admin_password'])) { echo ' value = "'.$_SESSION['admin_password'].'"'; } ?> />
|
|
| 326 |
</td> |
|
| 327 |
</tr> |
|
| 328 |
<tr> |
|
| 329 |
<td style="color: #666666;">Email:</td> |
|
| 330 |
<td> |
|
| 331 |
<input type="text" tabindex="15" name="admin_email" style="width: 98%;"<?php if(isset($_SESSION['admin_email'])) { echo ' value = "'.$_SESSION['admin_email'].'"'; } ?> />
|
|
| 332 |
</td> |
|
| 333 |
<td> </td> |
|
| 334 |
<td style="color: #666666;">Re-Password:</td> |
|
| 335 |
<td> |
|
| 336 |
<input type="password" tabindex="17" name="admin_repassword" style="width: 98%;"<?php if(isset($_SESSION['admin_password'])) { echo ' value = "'.$_SESSION['admin_password'].'"'; } ?> />
|
|
| 337 |
</td> |
|
| 338 |
</tr> |
|
| 339 |
<tr> |
|
| 340 |
<td colspan="5" style="padding: 10px; padding-bottom: 0;"><h1 style="font-size: 0px;"> </h1></td> |
|
| 341 |
</tr> |
|
| 342 |
<tr> |
|
| 343 |
<td colspan="4"> |
|
| 344 |
<table cellpadding="0" cellspacing="0" width="100%" border="0"> |
|
| 345 |
<tr valign="top"> |
|
| 346 |
<td>Please note: </td> |
|
| 347 |
<td> |
|
| 348 |
Website Baker is released under the |
|
| 349 |
<a href="http://www.gnu.org/licenses/gpl.html" target="_blank" tabindex="19">GNU General Public License</a> |
|
| 350 |
<br /> |
|
| 351 |
By clicking install, you are accepting the license. |
|
| 352 |
</td> |
|
| 353 |
</tr> |
|
| 354 |
</table> |
|
| 355 |
</td> |
|
| 356 |
<td colspan="1" align="right"> |
|
| 357 |
<input type="submit" tabindex="20" name="submit" value="Install Website Baker" class="submit" /> |
|
| 358 |
</td> |
|
| 359 |
</tr> |
|
| 360 |
</table> |
|
| 361 |
</td> |
|
| 362 |
</tr> |
|
| 363 |
</table> |
|
| 364 |
|
|
| 365 |
</form> |
|
| 366 |
|
|
| 367 |
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding: 10px 0px 10px 0px;"> |
|
| 368 |
<tr> |
|
| 369 |
<td align="center" style="font-size: 10px;"> |
|
| 370 |
<!-- 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. --> |
|
| 371 |
<a href="http://www.websitebaker.org/" style="color: #000000;" target="_blank">Website Baker</a> |
|
| 372 |
is released under the |
|
| 373 |
<a href="http://www.gnu.org/licenses/gpl.html" style="color: #000000;" target="_blank">GNU General Public License</a> |
|
| 374 |
<!-- 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. --> |
|
| 375 |
</td> |
|
| 376 |
</tr> |
|
| 377 |
</table> |
|
| 378 |
|
|
| 379 |
</body> |
|
| 380 |
</html> |
|
| 32 |
|
|
| 33 |
// Check if the page has been reloaded |
|
| 34 |
if(!isset($_GET['sessions_checked']) OR $_GET['sessions_checked'] != 'true') {
|
|
| 35 |
// Set session variable |
|
| 36 |
$_SESSION['session_support'] = '<font class="good">Enabled</font>'; |
|
| 37 |
// Reload page |
|
| 38 |
header('Location: index.php?sessions_checked=true');
|
|
| 39 |
exit(0); |
|
| 40 |
} else {
|
|
| 41 |
// Check if session variable has been saved after reload |
|
| 42 |
if(isset($_SESSION['session_support'])) {
|
|
| 43 |
$session_support = $_SESSION['session_support']; |
|
| 44 |
} else {
|
|
| 45 |
$session_support = '<font class="bad">Disabled</font>'; |
|
| 46 |
} |
|
| 47 |
} |
|
| 48 |
|
|
| 49 |
?> |
|
| 50 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
| 51 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
|
| 52 |
<head> |
|
| 53 |
<title>Website Baker Installation Wizard</title> |
|
| 54 |
<link href="stylesheet.css" rel="stylesheet" type="text/css"> |
|
| 55 |
<script language="javascript" type="text/javascript"> |
|
| 56 |
|
|
| 57 |
function confirm_link(message, url) {
|
|
| 58 |
if(confirm(message)) location.href = url; |
|
| 59 |
} |
|
| 60 |
function change_os(type) {
|
|
| 61 |
if(type == 'linux') {
|
|
| 62 |
document.getElementById('operating_system_linux').checked = true;
|
|
| 63 |
document.getElementById('operating_system_windows').checked = false;
|
|
| 64 |
document.getElementById('file_perms_box').style.display = 'block';
|
|
| 65 |
} else if(type == 'windows') {
|
|
| 66 |
document.getElementById('operating_system_linux').checked = false;
|
|
| 67 |
document.getElementById('operating_system_windows').checked = true;
|
|
| 68 |
document.getElementById('file_perms_box').style.display = 'none';
|
|
| 69 |
} |
|
| 70 |
} |
|
| 71 |
|
|
| 72 |
</script> |
|
| 73 |
</head> |
|
| 74 |
<body> |
|
| 75 |
|
|
| 76 |
<table cellpadding="0" cellspacing="0" border="0" width="750" align="center"> |
|
| 77 |
<tr> |
|
| 78 |
<td width="60" valign="top"> |
|
| 79 |
<img src="../admin/interface/logo.png" width="60" height="60" alt="Logo" /> |
|
| 80 |
</td> |
|
| 81 |
<td width="5"> </td> |
|
| 82 |
<td style="font-size: 20px;"> |
|
| 83 |
<font style="color: #FFFFFF;">Website Baker</font> |
|
| 84 |
<font style="color: #DDDDDD;">Installation Wizard</font> |
|
| 85 |
</td> |
|
| 86 |
</tr> |
|
| 87 |
</table> |
|
| 88 |
|
|
| 89 |
<form name="website_baker_installation_wizard" action="save.php" method="post"> |
|
| 90 |
<input type="hidden" name="url" value="" /> |
|
| 91 |
<input type="hidden" name="username_fieldname" value="admin_username" /> |
|
| 92 |
<input type="hidden" name="password_fieldname" value="admin_password" /> |
|
| 93 |
<input type="hidden" name="remember" id="remember" value="true" /> |
|
| 94 |
|
|
| 95 |
<table cellpadding="0" cellspacing="0" border="0" width="750" align="center" style="margin-top: 10px;"> |
|
| 96 |
<tr> |
|
| 97 |
<td class="content"> |
|
| 98 |
|
|
| 99 |
<center style="padding: 5px;"> |
|
| 100 |
Welcome to the Website Baker Installation Wizard. |
|
| 101 |
</center> |
|
| 102 |
|
|
| 103 |
<?php |
|
| 104 |
if(isset($_SESSION['message']) AND $_SESSION['message'] != '') {
|
|
| 105 |
?><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 |
|
| 106 |
} |
|
| 107 |
?> |
|
| 108 |
<table cellpadding="3" cellspacing="0" width="100%" align="center"> |
|
| 109 |
<tr> |
|
| 110 |
<td colspan="8"><h1>Step 1</h1>Please check the following requirements are met before continuing...</td> |
|
| 111 |
</tr> |
|
| 112 |
<?php if($session_support != '<font class="good">Enabled</font>') { ?>
|
|
| 113 |
<tr> |
|
| 114 |
<td colspan="8" style="font-size: 10px;" class="bad">Please note: PHP Session Support may appear disabled if your browser does not support cookies.</td> |
|
| 115 |
</tr> |
|
| 116 |
<?php } ?> |
|
| 117 |
<tr> |
|
| 118 |
<td width="140" style="color: #666666;">PHP Version > 4.1.0</td> |
|
| 119 |
<td width="35"> |
|
| 120 |
<?php |
|
| 121 |
$phpversion = substr(PHP_VERSION, 0, 6); |
|
| 122 |
if($phpversion > 4.1) {
|
|
| 123 |
?><font class="good">Yes</font><?php |
|
| 124 |
} else {
|
|
| 125 |
?><font class="bad">No</font><?php |
|
| 126 |
} |
|
| 127 |
?> |
|
| 128 |
</td> |
|
| 129 |
<td width="140" style="color: #666666;">PHP Session Support</td> |
|
| 130 |
<td width="115"><?php echo $session_support; ?></td> |
|
| 131 |
<td width="105" style="color: #666666;">PHP Safe Mode</td> |
|
| 132 |
<td> |
|
| 133 |
<?php |
|
| 134 |
if(ini_get('safe_mode')) {
|
|
| 135 |
?><font class="bad">Enabled</font><?php |
|
| 136 |
} else {
|
|
| 137 |
?><font class="good">Disabled</font><?php |
|
| 138 |
} |
|
| 139 |
?> |
|
| 140 |
</td> |
|
| 141 |
</tr> |
|
| 142 |
</table> |
|
| 143 |
<table cellpadding="3" cellspacing="0" width="100%" align="center"> |
|
| 144 |
<tr> |
|
| 145 |
<td colspan="8"><h1>Step 2</h1>Please check the following files/folders are writeable before continuing...</td> |
|
| 146 |
</tr> |
|
| 147 |
<tr> |
|
| 148 |
<td style="color: #666666;">wb/config.php</td> |
|
| 149 |
<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>
|
|
| 150 |
<td style="color: #666666;">wb/pages/</td> |
|
| 151 |
<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>
|
|
| 152 |
<td style="color: #666666;">wb/media/</td> |
|
| 153 |
<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>
|
|
| 154 |
<td style="color: #666666;">wb/templates/</td> |
|
| 155 |
<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>
|
|
| 156 |
</tr> |
|
| 157 |
<tr> |
|
| 158 |
<td style="color: #666666;">wb/modules/</td> |
|
| 159 |
<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>
|
|
| 160 |
<td style="color: #666666;">wb/languages/</td> |
|
| 161 |
<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>
|
|
| 162 |
<td style="color: #666666;">wb/temp/</td> |
|
| 163 |
<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>
|
|
| 164 |
<td> </td> |
|
| 165 |
<td> </td> |
|
| 166 |
</tr> |
|
| 167 |
</table> |
|
| 168 |
<table cellpadding="3" cellspacing="0" width="100%" align="center"> |
|
| 169 |
<tr> |
|
| 170 |
<td colspan="2"><h1>Step 3</h1>Please check your path settings, and select your default timezone...</td> |
|
| 171 |
</tr> |
|
| 172 |
<tr> |
|
| 173 |
<td width="125" style="color: #666666;"> |
|
| 174 |
Absolute URL: |
|
| 175 |
</td> |
|
| 176 |
<td> |
|
| 177 |
<?php |
|
| 178 |
// Try to guess installation URL |
|
| 179 |
$guessed_url = 'http://'.$_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"]; |
|
| 180 |
$guessed_url = rtrim(dirname($guessed_url), 'install'); |
|
| 181 |
?> |
|
| 182 |
<input 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; } ?>" />
|
|
| 183 |
</td> |
|
| 184 |
</tr> |
|
| 185 |
<tr> |
|
| 186 |
<td style="color: #666666;"> |
|
| 187 |
Default Timezone: |
|
| 188 |
</td> |
|
| 189 |
<td> |
|
| 190 |
<select tabindex="3" name="default_timezone" style="width: 100%;"> |
|
| 191 |
<?php |
|
| 192 |
$TIMEZONES['-12'] = 'GMT - 12 Hours'; |
|
| 193 |
$TIMEZONES['-11'] = 'GMT -11 Hours'; |
|
| 194 |
$TIMEZONES['-10'] = 'GMT -10 Hours'; |
|
| 195 |
$TIMEZONES['-9'] = 'GMT -9 Hours'; |
|
| 196 |
$TIMEZONES['-8'] = 'GMT -8 Hours'; |
|
| 197 |
$TIMEZONES['-7'] = 'GMT -7 Hours'; |
|
| 198 |
$TIMEZONES['-6'] = 'GMT -6 Hours'; |
|
| 199 |
$TIMEZONES['-5'] = 'GMT -5 Hours'; |
|
| 200 |
$TIMEZONES['-4'] = 'GMT -4 Hours'; |
|
| 201 |
$TIMEZONES['-3.5'] = 'GMT -3.5 Hours'; |
|
| 202 |
$TIMEZONES['-3'] = 'GMT -3 Hours'; |
|
| 203 |
$TIMEZONES['-2'] = 'GMT -2 Hours'; |
|
| 204 |
$TIMEZONES['-1'] = 'GMT -1 Hour'; |
|
| 205 |
$TIMEZONES['0'] = 'GMT'; |
|
| 206 |
$TIMEZONES['1'] = 'GMT +1 Hour'; |
|
| 207 |
$TIMEZONES['2'] = 'GMT +2 Hours'; |
|
| 208 |
$TIMEZONES['3'] = 'GMT +3 Hours'; |
|
| 209 |
$TIMEZONES['3.5'] = 'GMT +3.5 Hours'; |
|
| 210 |
$TIMEZONES['4'] = 'GMT +4 Hours'; |
|
| 211 |
$TIMEZONES['4.5'] = 'GMT +4.5 Hours'; |
|
| 212 |
$TIMEZONES['5'] = 'GMT +5 Hours'; |
|
| 213 |
$TIMEZONES['5.5'] = 'GMT +5.5 Hours'; |
|
| 214 |
$TIMEZONES['6'] = 'GMT +6 Hours'; |
|
| 215 |
$TIMEZONES['6.5'] = 'GMT +6.5 Hours'; |
|
| 216 |
$TIMEZONES['7'] = 'GMT +7 Hours'; |
|
| 217 |
$TIMEZONES['8'] = 'GMT +8 Hours'; |
|
| 218 |
$TIMEZONES['9'] = 'GMT +9 Hours'; |
|
| 219 |
$TIMEZONES['9.5'] = 'GMT +9.5 Hours'; |
|
| 220 |
$TIMEZONES['10'] = 'GMT +10 Hours'; |
|
| 221 |
$TIMEZONES['11'] = 'GMT +11 Hours'; |
|
| 222 |
$TIMEZONES['12'] = 'GMT +12 Hours'; |
|
| 223 |
$TIMEZONES['13'] = 'GMT +13 Hours'; |
|
| 224 |
foreach($TIMEZONES AS $hour_offset => $title) {
|
|
| 225 |
?> |
|
| 226 |
<option value="<?php echo $hour_offset; ?>"<?php if(isset($_SESSION['default_timezone']) AND $_SESSION['default_timezone'] == $hour_offset) { echo ' selected'; } elseif(!isset($_SESSION['default_timezone']) AND $hour_offset == 0) { echo 'selected'; } ?>><?php echo $title; ?></option>
|
|
| 227 |
<?php |
|
| 228 |
} |
|
| 229 |
?> |
|
| 230 |
</select> |
|
| 231 |
</td> |
|
| 232 |
</tr> |
|
| 233 |
</table> |
|
| 234 |
<table cellpadding="5" cellspacing="0" width="100%" align="center"> |
|
| 235 |
<tr> |
|
| 236 |
<td colspan="3"><h1>Step 4</h1>Please specify your operating system information below...</td> |
|
| 237 |
</tr> |
|
| 238 |
<tr height="50"> |
|
| 239 |
<td width="170"> |
|
| 240 |
Server Operating System: |
|
| 241 |
</td> |
|
| 242 |
<td width="180"> |
|
| 243 |
<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'; } ?> />
|
|
| 244 |
<font style="cursor: pointer;" onclick="javascript: change_os('linux');">Linux/Unix based</font>
|
|
| 245 |
<br /> |
|
| 246 |
<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'; } ?> />
|
|
| 247 |
<font style="cursor: pointer;" onclick="javascript: change_os('windows');">Windows</font>
|
|
| 248 |
</td> |
|
| 249 |
<td> |
|
| 250 |
<div name="file_perms_box" 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'; } ?>;">
|
|
| 251 |
<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'; } ?> />
|
|
| 252 |
<label for="world_writeable"> |
|
| 253 |
World-writeable file permissions (777) |
|
| 254 |
</label> |
|
| 255 |
<br /> |
|
| 256 |
<font class="note">(Please note: this is only recommended for testing environments)</font> |
|
| 257 |
</div> |
|
| 258 |
</td> |
|
| 259 |
</tr> |
|
| 260 |
</table> |
|
| 261 |
<table cellpadding="5" cellspacing="0" width="100%" align="center"> |
|
| 262 |
<tr> |
|
| 263 |
<td colspan="5">Please enter your MySQL database server details below...</td> |
|
| 264 |
</tr> |
|
| 265 |
<tr> |
|
| 266 |
<td width="120" style="color: #666666;">Host Name:</td> |
|
| 267 |
<td width="230"> |
|
| 268 |
<input type="text" tabindex="7" name="database_host" style="width: 98%;" value="<?php if(isset($_SESSION['database_host'])) { echo $_SESSION['database_host']; } else { echo 'localhost'; } ?>" />
|
|
| 269 |
</td> |
|
| 270 |
<td width="7"> </td> |
|
| 271 |
<td width="70" style="color: #666666;">Username:</td> |
|
| 272 |
<td> |
|
| 273 |
<input type="text" tabindex="9" name="database_username" style="width: 98%;" value="<?php if(isset($_SESSION['database_username'])) { echo $_SESSION['database_username']; } else { echo 'root'; } ?>" />
|
|
| 274 |
</td> |
|
| 275 |
</tr> |
|
| 276 |
<tr> |
|
| 277 |
<td style="color: #666666;">Database Name:</td> |
|
| 278 |
<td> |
|
| 279 |
<input type="text" tabindex="8" name="database_name" style="width: 98%;" value="<?php if(isset($_SESSION['database_name'])) { echo $_SESSION['database_name']; } else { echo 'wb'; } ?>" />
|
|
| 280 |
</td> |
|
| 281 |
<td> </td> |
|
| 282 |
<td style="color: #666666;">Password:</td> |
|
| 283 |
<td> |
|
| 284 |
<input type="password" tabindex="10" name="database_password" style="width: 98%;"<?php if(isset($_SESSION['database_password'])) { echo ' value = "'.$_SESSION['database_password'].'"'; } ?> />
|
|
| 285 |
</td> |
|
| 286 |
</tr> |
|
| 287 |
<tr> |
|
| 288 |
<td style="color: #666666;">Table Prefix:</td> |
|
| 289 |
<td> |
|
| 290 |
<input type="text" tabindex="11" name="table_prefix" style="width: 250px;"<?php if(isset($_SESSION['table_prefix'])) { echo ' value = "'.$_SESSION['table_prefix'].'"'; } ?> />
|
|
| 291 |
</td> |
|
| 292 |
<td> </td> |
|
| 293 |
<td colspan="2"> |
|
| 294 |
<input type="checkbox" tabindex="12" name="install_tables" id="install_tables" value="true"<?php if(!isset($_SESSION['install_tables'])) { echo ' checked'; } elseif($_SESSION['install_tables'] == 'true') { echo ' checked'; } ?> />
|
|
| 295 |
<label for="install_tables" style="color: #666666;">Install Tables</label> |
|
| 296 |
<br /> |
|
| 297 |
<span style="font-size: 10px; color: #666666;">(Please note: May remove existing tables and data)</span></td> |
|
| 298 |
</td> |
|
| 299 |
</tr> |
|
| 300 |
<tr> |
|
| 301 |
<td colspan="5"><h1>Step 5</h1>Please enter your website title below...</td> |
|
| 302 |
</tr> |
|
| 303 |
<tr> |
|
| 304 |
<td style="color: #666666;" colspan="1">Website Title:</td> |
|
| 305 |
<td colspan="4"> |
|
| 306 |
<input type="text" tabindex="13" name="website_title" style="width: 99%;" value="<?php if(isset($_SESSION['website_title'])) { echo $_SESSION['website_title']; } ?>" />
|
|
| 307 |
</td> |
|
| 308 |
</tr> |
|
| 309 |
<tr> |
|
| 310 |
<td colspan="5"><h1>Step 6</h1>Please enter your Administrator account details below...</td> |
|
| 311 |
</tr> |
|
| 312 |
<tr> |
|
| 313 |
<td style="color: #666666;">Username:</td> |
|
| 314 |
<td> |
|
| 315 |
<input type="text" tabindex="14" name="admin_username" style="width: 98%;" value="<?php if(isset($_SESSION['admin_username'])) { echo $_SESSION['admin_username']; } else { echo 'admin'; } ?>" />
|
|
| 316 |
</td> |
|
| 317 |
<td> </td> |
|
| 318 |
<td style="color: #666666;">Password:</td> |
|
| 319 |
<td> |
|
| 320 |
<input type="password" tabindex="16" name="admin_password" style="width: 98%;"<?php if(isset($_SESSION['admin_password'])) { echo ' value = "'.$_SESSION['admin_password'].'"'; } ?> />
|
|
| 321 |
</td> |
|
| 322 |
</tr> |
|
| 323 |
<tr> |
|
| 324 |
<td style="color: #666666;">Email:</td> |
|
| 325 |
<td> |
|
| 326 |
<input type="text" tabindex="15" name="admin_email" style="width: 98%;"<?php if(isset($_SESSION['admin_email'])) { echo ' value = "'.$_SESSION['admin_email'].'"'; } ?> />
|
|
| 327 |
</td> |
|
| 328 |
<td> </td> |
|
| 329 |
<td style="color: #666666;">Re-Password:</td> |
|
| 330 |
<td> |
|
| 331 |
<input type="password" tabindex="17" name="admin_repassword" style="width: 98%;"<?php if(isset($_SESSION['admin_password'])) { echo ' value = "'.$_SESSION['admin_password'].'"'; } ?> />
|
|
| 332 |
</td> |
|
| 333 |
</tr> |
|
| 334 |
<tr> |
|
| 335 |
<td colspan="5" style="padding: 10px; padding-bottom: 0;"><h1 style="font-size: 0px;"> </h1></td> |
|
| 336 |
</tr> |
|
| 337 |
<tr> |
|
| 338 |
<td colspan="4"> |
|
| 339 |
<table cellpadding="0" cellspacing="0" width="100%" border="0"> |
|
| 340 |
<tr valign="top"> |
|
| 341 |
<td>Please note: </td> |
|
| 342 |
<td> |
|
| 343 |
Website Baker is released under the |
|
| 344 |
<a href="http://www.gnu.org/licenses/gpl.html" target="_blank" tabindex="19">GNU General Public License</a> |
|
| 345 |
<br /> |
|
| 346 |
By clicking install, you are accepting the license. |
|
| 347 |
</td> |
|
| 348 |
</tr> |
|
| 349 |
</table> |
|
| 350 |
</td> |
|
| 351 |
<td colspan="1" align="right"> |
|
| 352 |
<input type="submit" tabindex="20" name="submit" value="Install Website Baker" class="submit" /> |
|
| 353 |
</td> |
|
| 354 |
</tr> |
|
| 355 |
</table> |
|
| 356 |
</td> |
|
| 357 |
</tr> |
|
| 358 |
</table> |
|
| 359 |
|
|
| 360 |
</form> |
|
| 361 |
|
|
| 362 |
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding: 10px 0px 10px 0px;"> |
|
| 363 |
<tr> |
|
| 364 |
<td align="center" style="font-size: 10px;"> |
|
| 365 |
<!-- 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. --> |
|
| 366 |
<a href="http://www.websitebaker.org/" style="color: #000000;" target="_blank">Website Baker</a> |
|
| 367 |
is released under the |
|
| 368 |
<a href="http://www.gnu.org/licenses/gpl.html" style="color: #000000;" target="_blank">GNU General Public License</a> |
|
| 369 |
<!-- 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. --> |
|
| 370 |
</td> |
|
| 371 |
</tr> |
|
| 372 |
</table> |
|
| 373 |
|
|
| 374 |
</body> |
|
| 375 |
</html> |
|
Also available in: Unified diff
fixed bug in changeset 581 (reverts most of it)