| 25 |
$DBpassword = mosGetParam( $_POST, 'DBpassword', '' ); |
$DBpassword = mosGetParam( $_POST, 'DBpassword', '' ); |
| 26 |
$DBname = mosGetParam( $_POST, 'DBname', '' ); |
$DBname = mosGetParam( $_POST, 'DBname', '' ); |
| 27 |
$DBPrefix = mosGetParam( $_POST, 'DBPrefix', '' ); |
$DBPrefix = mosGetParam( $_POST, 'DBPrefix', '' ); |
| 28 |
$sitename = mosGetParam( $_POST, 'sitename', '' ); |
$DBcreated = intval( mosGetParam( $_POST, 'DBcreated', 0 ) ); |
| 29 |
|
$sitename = stripslashes( mosGetParam( $_POST, 'sitename', '' ) ); |
| 30 |
$adminEmail = mosGetParam( $_POST, 'adminEmail', ''); |
$adminEmail = mosGetParam( $_POST, 'adminEmail', ''); |
| 31 |
$siteUrl = mosGetParam( $_POST, 'siteUrl', '' ); |
$siteUrl = mosGetParam( $_POST, 'siteUrl', '' ); |
| 32 |
$absolutePath = mosGetParam( $_POST, 'absolutePath', '' ); |
$absolutePath = stripslashes( mosGetParam( $_POST, 'absolutePath', '' ) ); |
| 33 |
$adminPassword = mosGetParam( $_POST, 'adminPassword', ''); |
$adminPassword = mosGetParam( $_POST, 'adminPassword', ''); |
| 34 |
|
|
| 35 |
$filePerms = ''; |
$filePerms = ''; |
| 57 |
(mosGetParam($_POST,'dirPermsWorldRead',0) * 4 + |
(mosGetParam($_POST,'dirPermsWorldRead',0) * 4 + |
| 58 |
mosGetParam($_POST,'dirPermsWorldWrite',0) * 2 + |
mosGetParam($_POST,'dirPermsWorldWrite',0) * 2 + |
| 59 |
mosGetParam($_POST,'dirPermsWorldSearch',0)); |
mosGetParam($_POST,'dirPermsWorldSearch',0)); |
| 60 |
|
?> |
| 61 |
|
<?php echo "<?xml version=\"1.0\" encoding=\"".$charset."\"?".">"; |
| 62 |
|
?> |
| 63 |
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 64 |
|
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $text_direction;?>"> |
| 65 |
|
<head> |
| 66 |
|
<title><?php echo T_('Mambo - Web Installer') ?></title> |
| 67 |
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" /> |
| 68 |
|
<link rel="shortcut icon" href="../images/favicon.ico" /> |
| 69 |
|
<link rel="stylesheet" href="install<?php if($text_direction=='rtl') echo '_'.$text_direction ?>.css" type="text/css" /> |
| 70 |
|
</head> |
| 71 |
|
<body> |
| 72 |
|
<?php |
| 73 |
if ((trim($adminEmail== "")) || (preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $adminEmail )==false)) { |
if ((trim($adminEmail== "")) || (preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $adminEmail )==false)) { |
| 74 |
echo "<form name=\"stepBack\" method=\"post\" action=\"install3.php\"> |
echo "<form name=\"stepBack\" method=\"post\" action=\"install3.php\"> |
| 75 |
<input type=\"hidden\" name=\"DBhostname\" value=\"$DBhostname\" /> |
<input type=\"hidden\" name=\"DBhostname\" value=\"$DBhostname\" /> |
| 77 |
<input type=\"hidden\" name=\"DBpassword\" value=\"$DBpassword\" /> |
<input type=\"hidden\" name=\"DBpassword\" value=\"$DBpassword\" /> |
| 78 |
<input type=\"hidden\" name=\"DBname\" value=\"$DBname\" /> |
<input type=\"hidden\" name=\"DBname\" value=\"$DBname\" /> |
| 79 |
<input type=\"hidden\" name=\"DBPrefix\" value=\"$DBPrefix\" /> |
<input type=\"hidden\" name=\"DBPrefix\" value=\"$DBPrefix\" /> |
| 80 |
<input type=\"hidden\" name=\"DBcreated\" value=\"1\" /> |
<input type=\"hidden\" name=\"DBcreated\" value=\"$DBcreated\"> |
| 81 |
<input type=\"hidden\" name=\"sitename\" value=\"$sitename\" /> |
<input type=\"hidden\" name=\"sitename\" value=\"$sitename\" /> |
| 82 |
<input type=\"hidden\" name=\"adminEmail\" value=\"$adminEmail\" /> |
<input type=\"hidden\" name=\"adminEmail\" value=\"$adminEmail\" /> |
| 83 |
<input type=\"hidden\" name=\"siteUrl\" value=\"$siteUrl\" /> |
<input type=\"hidden\" name=\"siteUrl\" value=\"$siteUrl\" /> |
| 85 |
<input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> |
<input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> |
| 86 |
<input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> |
<input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> |
| 87 |
</form>"; |
</form>"; |
| 88 |
echo "<script>alert('".T_('You must provide a valid admin email address.')."'); document.stepBack.submit(); </script>"; |
$error_msg = T_('You must provide a valid admin email address'); |
| 89 |
|
echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; |
| 90 |
return; |
return; |
| 91 |
} |
} |
| 92 |
|
|
| 111 |
<input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> |
<input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> |
| 112 |
<input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> |
<input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> |
| 113 |
</form>"; |
</form>"; |
| 114 |
|
$error_msg = T_('The database details provided are incorrect and/or empty'); |
| 115 |
echo "<script>alert('".T_('The database details provided are incorrect and/or empty')."'); document.stepBack.submit(); </script>"; |
echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; |
| 116 |
return; |
return; |
| 117 |
} |
} |
| 118 |
|
|
| 119 |
if ($sitename) { |
if ($sitename) { |
|
if (!get_magic_quotes_gpc()) { |
|
|
$configArray['sitename'] = addslashes($sitename); |
|
|
} else { |
|
| 120 |
$configArray['sitename'] = $sitename; |
$configArray['sitename'] = $sitename; |
|
} |
|
| 121 |
} else { |
} else { |
| 122 |
?> |
?> |
| 123 |
<form name=\"stepBack\" method=\"post\" action=\"install3.php\"> |
<form name=\"stepBack\" method=\"post\" action=\"install3.php\"> |
| 134 |
<input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> |
<input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> |
| 135 |
<input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> |
<input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> |
| 136 |
</form> |
</form> |
|
|
|
|
|
|
|
<script type="text/javascript">alert('".T_('The sitename has not been provided'); document.stepBack2.submit();</script> |
|
| 137 |
<?php |
<?php |
| 138 |
|
$error_msg = T_('The sitename has not been provided'); |
| 139 |
|
echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; |
| 140 |
return; |
return; |
| 141 |
|
|
| 142 |
} |
} |
| 143 |
|
|
| 144 |
if (file_exists( '../configuration.php' )) { |
if (file_exists( '../configuration.php' )) { |
| 155 |
$configArray['absolutePath']=$absolutePath; |
$configArray['absolutePath']=$absolutePath; |
| 156 |
$configArray['filePerms']=$filePerms; |
$configArray['filePerms']=$filePerms; |
| 157 |
$configArray['dirPerms']=$dirPerms; |
$configArray['dirPerms']=$dirPerms; |
| 158 |
|
$configArray['sitename'] = addslashes($configArray['sitename']); |
| 159 |
|
|
| 160 |
$config = "<?php\n"; |
$config = "<?php\n"; |
| 161 |
$config .= "\$mosConfig_offline = '0';\n"; |
$config .= "\$mosConfig_offline = '0';\n"; |
| 224 |
$config .= "\$mosConfig_dirperms = '".$configArray['dirPerms']."';\n"; |
$config .= "\$mosConfig_dirperms = '".$configArray['dirPerms']."';\n"; |
| 225 |
$config .= "\$mosConfig_helpurl = 'http://docs.mambo-foundation.org';\n"; |
$config .= "\$mosConfig_helpurl = 'http://docs.mambo-foundation.org';\n"; |
| 226 |
$config .= "\$mosConfig_mbf_content = '0';\n"; |
$config .= "\$mosConfig_mbf_content = '0';\n"; |
| 227 |
|
$config .= "\$mosConfig_doctype = 'xhtml-trans';\n"; |
| 228 |
$config .= "setlocale (LC_TIME, \$mosConfig_locale);\n"; |
$config .= "setlocale (LC_TIME, \$mosConfig_locale);\n"; |
| 229 |
$config .= "?>"; |
$config .= "?>"; |
| 230 |
|
|
| 315 |
<input type="hidden" name="filePerms" value="$filePerms" /> |
<input type="hidden" name="filePerms" value="$filePerms" /> |
| 316 |
<input type="hidden" name="dirPerms" value="$dirPerms" /> |
<input type="hidden" name="dirPerms" value="$dirPerms" /> |
| 317 |
</form> |
</form> |
|
<script>alert('<?php echo T_('The site url has not been provided') ?>'); document.stepBack3.submit();</script> |
|
| 318 |
<?php |
<?php |
| 319 |
} |
$error_msg = T_('The site url has not been provided'); |
| 320 |
echo "<?xml version=\"1.0\" encoding=\"".$charset."\"?".">"; |
echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; |
| 321 |
?> |
return; |
| 322 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
} ?> |
|
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $text_direction;?>"> |
|
|
<head> |
|
|
<title><?php echo T_('Mambo - Web Installer') ?></title> |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" /> |
|
|
<link rel="shortcut icon" href="../images/favicon.ico" /> |
|
|
<link rel="stylesheet" href="install<?php if($text_direction=='rtl') echo '_'.$text_direction ?>.css" type="text/css" /> |
|
|
</head> |
|
|
<body> |
|
| 323 |
<div id="wrapper"> |
<div id="wrapper"> |
| 324 |
<div id="header"> |
<div id="header"> |
| 325 |
<div id="mambo"><img src="header_install.png" alt="<?php echo T_('Mambo Installation') ?>" /></div> |
<div id="mambo"><img src="header_install.png" alt="<?php echo T_('Mambo Installation') ?>" /></div> |
| 395 |
<tbody> |
<tbody> |
| 396 |
<tr> |
<tr> |
| 397 |
<td> |
<td> |
| 398 |
<div style="text-align: left;">The form below is optional. The information is intended to provide you with more information and to help us make Mambo better. We treat all data as confidential; it will not be shared with any third parties.<br /><br /> |
<div style="text-align: left;"><?php echo T_('The form below is optional. The information is intended to provide you with more information and to help us make Mambo better. We treat all data as confidential; it will not be shared with any third parties.') ?><br /><br /> |
| 399 |
</div> |
</div> |
| 400 |
<table class="bodytext" border="0" cellpadding="3" cellspacing="0" width="100%"> |
<table class="bodytext" border="0" cellpadding="3" cellspacing="0" width="100%"> |
| 401 |
<tbody> |
<tbody> |
| 402 |
<tr> |
<tr> |
| 403 |
<td colspan="4" bgcolor="#e0e0ff"><b>Your details:</b></td> |
<td colspan="4" bgcolor="#e0e0ff"><b><?php echo T_('Your details:') ?></b></td> |
| 404 |
</tr> |
</tr> |
| 405 |
<tr> |
<tr> |
| 406 |
<td> </td> |
<td> </td> |
| 407 |
<td><b>Your name:</b></td> |
<td><b><?php echo T_('Your name:') ?></b></td> |
| 408 |
<td align="right"> </td> |
<td align="right"> </td> |
| 409 |
<td><input maxlength="100" name="name" size="28" /></td> |
<td><input maxlength="100" name="name" size="28" /></td> |
| 410 |
</tr> |
</tr> |
| 411 |
<tr> |
<tr> |
| 412 |
<td> </td> |
<td> </td> |
| 413 |
<td><b>Your email address:</b></td> |
<td><b><?php echo T_('Your email address:') ?></b></td> |
| 414 |
<td align="right"> </td> |
<td align="right"> </td> |
| 415 |
<td><input maxlength="100" name="email" size="28" /></td> |
<td><input maxlength="100" name="email" size="28" /></td> |
| 416 |
</tr> |
</tr> |
| 417 |
<tr> |
<tr> |
| 418 |
<td> </td> |
<td> </td> |
| 419 |
<td><b>Your organization:</b></td> |
<td><b><?php echo T_('Your organization:') ?></b></td> |
| 420 |
<td align="right"> </td> |
<td align="right"> </td> |
| 421 |
<td><input maxlength="100" name="company" size="28" /></td> |
<td><input maxlength="100" name="company" size="28" /></td> |
| 422 |
</tr> |
</tr> |
| 423 |
<tr> |
<tr> |
| 424 |
<td> </td> |
<td> </td> |
| 425 |
<td><b>Intended use:</b></td> |
<td><b><?php echo T_('Intended use:') ?></b></td> |
| 426 |
<td align="right"> </td> |
<td align="right"> </td> |
| 427 |
<td> |
<td> |
| 428 |
<select name="category"> |
<select name="category"> |
| 429 |
<option value="" selected="on">Select a category</option> |
<option value="" selected="on"><?php echo T_('Select a category') ?></option> |
| 430 |
<option value="personal">Personal</option> |
<option value="personal"><?php echo T_('Personal') ?></option> |
| 431 |
<option value="company">Company</option> |
<option value="company"><?php echo T_('Company') ?></option> |
| 432 |
<option value="government">Government</option> |
<option value="government"><?php echo T_('Government') ?></option> |
| 433 |
<option value="nonprofit">Non-profit</option> |
<option value="nonprofit"><?php echo T_('Non-profit') ?></option> |
| 434 |
<option value="university">University</option> |
<option value="university"><?php echo T_('University') ?></option> |
| 435 |
<option value="school">School</option> |
<option value="school"><?php echo T_('School') ?></option> |
| 436 |
</select> |
</select> |
| 437 |
</td> |
</td> |
| 438 |
</tr> |
</tr> |
| 439 |
<tr> |
<tr> |
| 440 |
<td></td> |
<td></td> |
| 441 |
<td><b>Subscribe to Mambo Security Announcement Mailing List?</b></td> |
<td><b><?php echo T_('Subscribe to Mambo Security Announcement Mailing List?') ?></b></td> |
| 442 |
<td></td> |
<td></td> |
| 443 |
<td><a href="http://mambo-foundation.org/mailman/listinfo/security-notification_mambo-foundation.org" target="_blank">Click Here</a><br /> |
<td><a href="http://mambo-foundation.org/mailman/listinfo/security-notification_mambo-foundation.org" target="_blank"><?php echo T_('Click Here') ?></a><br /> |
| 444 |
</td> |
</td> |
| 445 |
</tr> |
</tr> |
| 446 |
<tr> |
<tr> |
| 447 |
<td></td> |
<td></td> |
| 448 |
<td><span style="font-weight: bold;">Are you interested in joining Team Mambo?</span></td> |
<td><span style="font-weight: bold;"><?php echo T_('Are you interested in joining Team Mambo?') ?></span></td> |
| 449 |
<td></td> |
<td></td> |
| 450 |
<td><input name="teammambo" value="teammambo" type="checkbox" /></td> |
<td><a href="http://members.mambo-foundation.org/" target="_blank"><?php echo T_('Click Here') ?></a></td> |
| 451 |
</tr> |
</tr> |
| 452 |
<tr> |
<tr> |
| 453 |
<td> </td> |
<td> </td> |
| 454 |
<td valign="top"><b>Additional comments / feedback:</b></td> |
<td valign="top"><b><?php echo T_('Additional comments / feedback:') ?></b></td> |
| 455 |
<td valign="top"> </td> |
<td valign="top"> </td> |
| 456 |
<td valign="top"><textarea name="comments" cols="35" rows="3"></textarea> |
<td valign="top"><textarea name="comments" cols="35" rows="3"></textarea> |
| 457 |
</td> |
</td> |
| 458 |
</tr> |
</tr> |
| 459 |
<tr> |
<tr> |
| 460 |
<td></td> |
<td></td> |
| 461 |
<td style="text-align: center;">Help support Mambo:</td> |
<td style="text-align: center;"><?php echo T_('Help support Mambo:') ?></td> |
| 462 |
<td></td> |
<td></td> |
| 463 |
<td>We appreciate your feedback!</td> |
<td><?php echo T_('We appreciate your feedback!') ?></td> |
| 464 |
</tr> |
</tr> |
| 465 |
<tr> |
<tr> |
| 466 |
<td></td> |
<td></td> |
| 488 |
</div> |
</div> |
| 489 |
</body> |
</body> |
| 490 |
</html> |
</html> |
| 491 |
|
|