| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Install instructions 4 * @package Mambo 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 // Set flag that this is a parent file 18 if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 ); 19 20 // Include common.php 21 require_once ( 'common.php' ); 22 include_once ( 'langconfig.php' ); 23 24 $DBhostname = mosGetParam( $_POST, 'DBhostname', '' ); 25 $DBuserName = mosGetParam( $_POST, 'DBuserName', '' ); 26 $DBpassword = mosGetParam( $_POST, 'DBpassword', '' ); 27 $DBname = mosGetParam( $_POST, 'DBname', '' ); 28 $DBPrefix = mosGetParam( $_POST, 'DBPrefix', '' ); 29 $DBcreated = intval( mosGetParam( $_POST, 'DBcreated', 0 ) ); 30 $sitename = stripslashes( mosGetParam( $_POST, 'sitename', '' ) ); 31 $adminEmail = mosGetParam( $_POST, 'adminEmail', ''); 32 $siteUrl = mosGetParam( $_POST, 'siteUrl', '' ); 33 $absolutePath = stripslashes( mosGetParam( $_POST, 'absolutePath', '' ) ); 34 $adminPassword = mosGetParam( $_POST, 'adminPassword', ''); 35 36 $filePerms = ''; 37 if (mosGetParam($_POST,'filePermsMode',0)) 38 $filePerms = '0'. 39 (mosGetParam($_POST,'filePermsUserRead',0) * 4 + 40 mosGetParam($_POST,'filePermsUserWrite',0) * 2 + 41 mosGetParam($_POST,'filePermsUserExecute',0)). 42 (mosGetParam($_POST,'filePermsGroupRead',0) * 4 + 43 mosGetParam($_POST,'filePermsGroupWrite',0) * 2 + 44 mosGetParam($_POST,'filePermsGroupExecute',0)). 45 (mosGetParam($_POST,'filePermsWorldRead',0) * 4 + 46 mosGetParam($_POST,'filePermsWorldWrite',0) * 2 + 47 mosGetParam($_POST,'filePermsWorldExecute',0)); 48 49 $dirPerms = ''; 50 if (mosGetParam($_POST,'dirPermsMode',0)) 51 $dirPerms = '0'. 52 (mosGetParam($_POST,'dirPermsUserRead',0) * 4 + 53 mosGetParam($_POST,'dirPermsUserWrite',0) * 2 + 54 mosGetParam($_POST,'dirPermsUserSearch',0)). 55 (mosGetParam($_POST,'dirPermsGroupRead',0) * 4 + 56 mosGetParam($_POST,'dirPermsGroupWrite',0) * 2 + 57 mosGetParam($_POST,'dirPermsGroupSearch',0)). 58 (mosGetParam($_POST,'dirPermsWorldRead',0) * 4 + 59 mosGetParam($_POST,'dirPermsWorldWrite',0) * 2 + 60 mosGetParam($_POST,'dirPermsWorldSearch',0)); 61 ?> 62 <?php echo "<?xml version=\"1.0\" encoding=\"".$charset."\"?".">"; 63 ?> 64 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 65 <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $text_direction;?>"> 66 <head> 67 <title><?php echo T_('Mambo - Web Installer') ?></title> 68 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" /> 69 <link rel="shortcut icon" href="../images/favicon.ico" /> 70 <link rel="stylesheet" href="install<?php if($text_direction=='rtl') echo '_'.$text_direction ?>.css" type="text/css" /> 71 </head> 72 <body> 73 <?php 74 if ((trim($adminEmail== "")) || (preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $adminEmail )==false)) { 75 echo "<form name=\"stepBack\" method=\"post\" action=\"install3.php\"> 76 <input type=\"hidden\" name=\"DBhostname\" value=\"$DBhostname\" /> 77 <input type=\"hidden\" name=\"DBuserName\" value=\"$DBuserName\" /> 78 <input type=\"hidden\" name=\"DBpassword\" value=\"$DBpassword\" /> 79 <input type=\"hidden\" name=\"DBname\" value=\"$DBname\" /> 80 <input type=\"hidden\" name=\"DBPrefix\" value=\"$DBPrefix\" /> 81 <input type=\"hidden\" name=\"DBcreated\" value=\"$DBcreated\"> 82 <input type=\"hidden\" name=\"sitename\" value=\"$sitename\" /> 83 <input type=\"hidden\" name=\"adminEmail\" value=\"$adminEmail\" /> 84 <input type=\"hidden\" name=\"siteUrl\" value=\"$siteUrl\" /> 85 <input type=\"hidden\" name=\"absolutePath\" value=\"$absolutePath\" /> 86 <input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> 87 <input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> 88 </form>"; 89 $error_msg = T_('You must provide a valid admin email address'); 90 echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; 91 return; 92 } 93 94 if($DBhostname && $DBuserName && $DBname) { 95 $configArray['DBhostname'] = $DBhostname; 96 $configArray['DBuserName'] = $DBuserName; 97 $configArray['DBpassword'] = $DBpassword; 98 $configArray['DBname'] = $DBname; 99 $configArray['DBPrefix'] = $DBPrefix; 100 } else { 101 echo "<form name=\"stepBack\" method=\"post\" action=\"install3.php\"> 102 <input type=\"hidden\" name=\"DBhostname\" value=\"$DBhostname\" /> 103 <input type=\"hidden\" name=\"DBuserName\" value=\"$DBuserName\" /> 104 <input type=\"hidden\" name=\"DBpassword\" value=\"$DBpassword\" /> 105 <input type=\"hidden\" name=\"DBname\" value=\"$DBname\" /> 106 <input type=\"hidden\" name=\"DBPrefix\" value=\"$DBPrefix\" /> 107 <input type=\"hidden\" name=\"DBcreated\" value=\"$DBcreated\"> 108 <input type=\"hidden\" name=\"sitename\" value=\"$sitename\" /> 109 <input type=\"hidden\" name=\"adminEmail\" value=\"$adminEmail\" /> 110 <input type=\"hidden\" name=\"siteUrl\" value=\"$siteUrl\" /> 111 <input type=\"hidden\" name=\"absolutePath\" value=\"$absolutePath\" /> 112 <input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> 113 <input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> 114 </form>"; 115 $error_msg = T_('The database details provided are incorrect and/or empty'); 116 echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; 117 return; 118 } 119 120 if ($sitename) { 121 $configArray['sitename'] = $sitename; 122 } else { 123 ?> 124 <form name=\"stepBack\" method=\"post\" action=\"install3.php\"> 125 <input type=\"hidden\" name=\"DBhostname\" value=\"$DBhostname\" /> 126 <input type=\"hidden\" name=\"DBuserName\" value=\"$DBuserName\" /> 127 <input type=\"hidden\" name=\"DBpassword\" value=\"$DBpassword\" /> 128 <input type=\"hidden\" name=\"DBname\" value=\"$DBname\" /> 129 <input type=\"hidden\" name=\"DBPrefix\" value=\"$DBPrefix\" /> 130 <input type=\"hidden\" name=\"DBcreated\" value=\"$DBcreated\"> 131 <input type=\"hidden\" name=\"sitename\" value=\"$sitename\" /> 132 <input type=\"hidden\" name=\"adminEmail\" value=\"$adminEmail\" /> 133 <input type=\"hidden\" name=\"siteUrl\" value=\"$siteUrl\" /> 134 <input type=\"hidden\" name=\"absolutePath\" value=\"$absolutePath\" /> 135 <input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> 136 <input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> 137 </form> 138 <?php 139 $error_msg = T_('The sitename has not been provided'); 140 echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; 141 return; 142 143 } 144 145 if (file_exists( '../configuration.php' )) { 146 $canWrite = is_writable( '../configuration.php' ); 147 } else { 148 $canWrite = is_writable( '..' ); 149 } 150 151 if ($siteUrl) { 152 $configArray['siteUrl']=$siteUrl; 153 // Fix for Windows 154 $absolutePath= str_replace("\\","/", $absolutePath); 155 $absolutePath= str_replace("//","/", $absolutePath); 156 $configArray['absolutePath']=$absolutePath; 157 $configArray['filePerms']=$filePerms; 158 $configArray['dirPerms']=$dirPerms; 159 $configArray['sitename'] = addslashes($configArray['sitename']); 160 161 $config = "<?php\n"; 162 $config .= "\$mosConfig_offline = '0';\n"; 163 $config .= "\$mosConfig_host = '{$configArray['DBhostname']}';\n"; 164 $config .= "\$mosConfig_user = '{$configArray['DBuserName']}';\n"; 165 $config .= "\$mosConfig_password = '{$configArray['DBpassword']}';\n"; 166 $config .= "\$mosConfig_db = '{$configArray['DBname']}';\n"; 167 $config .= "\$mosConfig_dbprefix = '{$configArray['DBPrefix']}';\n"; 168 $config .= "\$mosConfig_lang = 'english';\n"; 169 $config .= "\$mosConfig_absolute_path = '{$configArray['absolutePath']}';\n"; 170 $config .= "\$mosConfig_live_site = '{$configArray['siteUrl']}';\n"; 171 $config .= "\$mosConfig_sitename = '{$configArray['sitename']}';\n"; 172 $config .= "\$mosConfig_shownoauth = '0';\n"; 173 $config .= "\$mosConfig_useractivation = '1';\n"; 174 $config .= "\$mosConfig_uniquemail = '1';\n"; 175 $config .= "\$mosConfig_usecaptcha = '0';\n"; 176 $config .= "\$mosConfig_offline_message = '".T_('This site is down for maintenance.<br /> Please check back again soon.')."';\n"; 177 $config .= "\$mosConfig_error_message = '".T_('This site is temporarily unavailable.<br /> Please notify the System Administrator')."';\n"; 178 $config .= "\$mosConfig_debug = '0';\n"; 179 $config .= "\$mosConfig_lifetime = '900';\n"; 180 $config .= "\$mosConfig_MetaDesc = '".T_('This site uses Mambo - the free, open source content management system')."';\n"; 181 $config .= "\$mosConfig_MetaKeys = 'mambo user, Mambo';\n"; 182 $config .= "\$mosConfig_MetaTitle = '1';\n"; 183 $config .= "\$mosConfig_MetaAuthor = '1';\n"; 184 $config .= "\$mosConfig_locale_debug = '0';\n"; 185 $config .= "\$mosConfig_locale_use_gettext = '0';\n"; 186 $config .= "\$mosConfig_locale = 'en';\n"; 187 $config .= "\$mosConfig_charset = 'utf-8';\n"; 188 $config .= "\$mosConfig_offset = '0';\n"; 189 $config .= "\$mosConfig_hideAuthor = '0';\n"; 190 $config .= "\$mosConfig_hideCreateDate = '0';\n"; 191 $config .= "\$mosConfig_hideModifyDate = '0';\n"; 192 $config .= "\$mosConfig_hidePdf = '".intval( !is_writable( "{$configArray['absolutePath']}/media/" ) )."';\n"; 193 $config .= "\$mosConfig_hidePrint = '0';\n"; 194 $config .= "\$mosConfig_hideEmail = '0';\n"; 195 $config .= "\$mosConfig_enable_log_items = '0';\n"; 196 $config .= "\$mosConfig_enable_log_searches = '0';\n"; 197 $config .= "\$mosConfig_enable_stats = '0';\n"; 198 $config .= "\$mosConfig_sef = '0';\n"; 199 $config .= "\$mosConfig_vote = '0';\n"; 200 $config .= "\$mosConfig_gzip = '0';\n"; 201 $config .= "\$mosConfig_multipage_toc = '1';\n"; 202 $config .= "\$mosConfig_allowUserRegistration = '1';\n"; 203 $config .= "\$mosConfig_link_titles = '0';\n"; 204 $config .= "\$mosConfig_error_reporting = '-1';\n"; 205 $config .= "\$mosConfig_register_globals = '1';\n"; 206 $config .= "\$mosConfig_list_limit = '50';\n"; 207 $config .= "\$mosConfig_caching = '0';\n"; 208 $config .= "\$mosConfig_cachepath = '{$configArray['absolutePath']}/cache';\n"; 209 $config .= "\$mosConfig_cachetime = '900';\n"; 210 $config .= "\$mosConfig_mailer = 'mail';\n"; 211 $config .= "\$mosConfig_mailfrom = '$adminEmail';\n"; 212 $config .= "\$mosConfig_fromname = '{$configArray['sitename']}';\n"; 213 $config .= "\$mosConfig_sendmail = '/usr/sbin/sendmail';\n"; 214 $config .= "\$mosConfig_smtpauth = '0';\n"; 215 $config .= "\$mosConfig_smtpuser = '';\n"; 216 $config .= "\$mosConfig_smtppass = '';\n"; 217 $config .= "\$mosConfig_smtphost = 'localhost';\n"; 218 $config .= "\$mosConfig_back_button = '0';\n"; 219 $config .= "\$mosConfig_item_navigation = '0';\n"; 220 $config .= "\$mosConfig_secret = '" . mosMakePassword(16) . "';\n"; 221 $config .= "\$mosConfig_pagetitles = '1';\n"; 222 $config .= "\$mosConfig_readmore = '1';\n"; 223 $config .= "\$mosConfig_hits = '1';\n"; 224 $config .= "\$mosConfig_icons = '1';\n"; 225 $config .= "\$mosConfig_favicon = 'favicon.ico';\n"; 226 $config .= "\$mosConfig_fileperms = '".$configArray['filePerms']."';\n"; 227 $config .= "\$mosConfig_dirperms = '".$configArray['dirPerms']."';\n"; 228 $config .= "\$mosConfig_helpurl = 'http://docs.mambo-foundation.org';\n"; 229 $config .= "\$mosConfig_mbf_content = '0';\n"; 230 $config .= "setlocale (LC_TIME, \$mosConfig_locale);\n"; 231 $config .= "?>"; 232 233 if ($canWrite && ($fp = fopen("../configuration.php", "w"))) { 234 fputs( $fp, $config, strlen( $config ) ); 235 fclose( $fp ); 236 } else { 237 $canWrite = false; 238 } // if 239 240 $cryptpass=md5($adminPassword); 241 242 mysql_connect($DBhostname, $DBuserName, $DBpassword); 243 mysql_select_db($DBname); 244 245 // create the admin user 246 $installdate = date("Y-m-d H:i:s"); 247 $query = "INSERT INTO `{$DBPrefix}users` VALUES (62, 'Administrator', 'admin', '$adminEmail', '$cryptpass', 'Super Administrator', 0, 1, 25, '$installdate', '0000-00-00 00:00:00', '', '')"; 248 mysql_query( $query ); 249 // add the ARO (Access Request Object) 250 $query = "INSERT INTO `{$DBPrefix}core_acl_aro` VALUES (10,'users','62',0,'Administrator',0)"; 251 mysql_query( $query ); 252 // add the map between the ARO and the Group 253 $query = "INSERT INTO `{$DBPrefix}core_acl_groups_aro_map` VALUES (25,'',10)"; 254 mysql_query( $query ); 255 256 // chmod files and directories if desired 257 $chmod_report = T_('Directory and file permissions left unchanged.'); 258 if ($filePerms != '' || $dirPerms != '') { 259 $mosrootfiles = array( 260 'administrator', 261 'cache', 262 'components', 263 'editor', 264 'files', 265 'help', 266 'images', 267 'includes', 268 'parameters', 269 'installation', 270 'language', 271 'mambots', 272 'media', 273 'modules', 274 'templates', 275 'CHANGELOG', 276 'configuration.php', 277 'htaccess.txt', 278 'index.php', 279 'index2.php', 280 'index3.php', 281 'INSTALL', 282 'LICENSE', 283 'mainbody.php', 284 'offline.php', 285 'page404.php', 286 'pathway.php', 287 'README', 288 'robots.txt' 289 ); 290 $filemode = NULL; 291 if ($filePerms != '') $filemode = octdec($filePerms); 292 $dirmode = NULL; 293 if ($dirPerms != '') $dirmode = octdec($dirPerms); 294 $chmodOk = TRUE; 295 foreach ($mosrootfiles as $file) 296 if (!mosChmodRecursive($absolutePath.'/'.$file, $filemode, $dirmode)) 297 $chmodOk = FALSE; 298 if ($chmodOk) 299 $chmod_report = T_('File and directory permissions successfully changed.'); 300 else 301 $chmod_report = T_('File and directory permissions could not be changed.<br />'. 302 'Please CHMOD mambo files and directories manually.'); 303 } // if chmod wanted 304 } else { 305 ?> 306 <form action="install3.php" method="post" name="stepBack3" id="stepBack3"> 307 <input type="hidden" name="DBhostname" value="<?php echo $DBhostname;?>" /> 308 <input type="hidden" name="DBusername" value="<?php echo $DBuserName;?>" /> 309 <input type="hidden" name="DBpassword" value="<?php echo $DBpassword;?>" /> 310 <input type="hidden" name="DBname" value="<?php echo $DBname;?>" /> 311 <input type="hidden" name="DBPrefix" value="<?php echo $DBPrefix;?>" /> 312 <input type="hidden" name="DBcreated" value="1" /> 313 <input type="hidden" name="sitename" value="<?php echo $sitename;?>" /> 314 <input type="hidden" name="adminEmail" value="$adminEmail" /> 315 <input type="hidden" name="siteUrl" value="$siteUrl" /> 316 <input type="hidden" name="absolutePath" value="$absolutePath" /> 317 <input type="hidden" name="filePerms" value="$filePerms" /> 318 <input type="hidden" name="dirPerms" value="$dirPerms" /> 319 </form> 320 <?php 321 $error_msg = T_('The site url has not been provided'); 322 echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; 323 return; 324 } ?> 325 <div id="wrapper"> 326 <div id="header"> 327 <div id="mambo"><img src="header_install.png" alt="<?php echo T_('Mambo Installation') ?>" /></div> 328 </div> 329 </div> 330 <div id="ctr" align="center"> 331 <div class="install"> 332 <form action="dummy" name="form" id="form"> 333 <div id="stepbar"> 334 <div class="step-off"><?php echo T_('pre-installation check') ?></div> 335 <div class="step-off"><?php echo T_('license') ?></div> 336 <div class="step-off"><?php echo T_('step 1') ?></div> 337 <div class="step-off"><?php echo T_('step 2') ?></div> 338 <div class="step-off"><?php echo T_('step 3') ?></div> 339 <div class="step-on"><?php echo T_('step 4') ?></div> 340 <div class="far-right"> 341 <input class="button" type="button" name="runSite" value="<?php echo T_('View Site') ?>" 342 <?php 343 if ($siteUrl) { 344 echo "onClick='window.location.href=\"$siteUrl"."/index.php\" '"; 345 } else { 346 echo "onClick='window.location.href=\"{$configArray['siteURL']}"."/index.php\" '"; 347 } 348 ?>/> 349 <input class="button" type="button" name="Admin" value="<?php echo T_('Administration') ?>" 350 <?php 351 if ($siteUrl) { 352 echo "onClick='window.location.href=\"$siteUrl"."/administrator/index.php\" '"; 353 } else { 354 echo "onClick='window.location.href=\"{$configArray['siteURL']}"."/administrator/index.php\" '"; 355 } 356 ?>/> 357 </div> 358 </div> 359 <div id="right2"> 360 <div id="step"><?php echo T_('step 4') ?></div> 361 <div id="steposi"></div> 362 <div class="clr"></div> 363 <h1><?php echo T_('Congratulations! Mambo is installed') ?></h1> 364 <div class="install-text"><?php echo T_('<p>Click the "View Site" button to view your Mambo site or "Administration" to go to administrator login. <br /><br />If you would like to provide us with some feedback please take a moment to fill out the form below.</p><p>If you wish to receive security alerts regarding Mambo please subscribe to our security announcements mailing list.</p>') ?> 365 </div> 366 <div class="install-form"> 367 <div class="form-block"> 368 <table width="100%"> 369 <tr><td class="error" align="center"><?php echo T_('PLEASE REMEMBER TO COMPLETELY<br />REMOVE THE INSTALLATION DIRECTORY') ?></td></tr> 370 <tr><td align="center"><h5><?php echo T_('Administration Login Details') ?></h5></td></tr> 371 <tr><td align="center" class="notice"><b><?php echo T_('Username :') ?> admin</b></td></tr> 372 <tr><td align="center" class="notice"><b><?php echo T_('Password :') ?> <?php echo $adminPassword; ?></b></td></tr> 373 <tr><td> </td></tr> 374 <tr><td align="right"> </td></tr> 375 <?php if (!$canWrite) { ?> 376 <tr> 377 <td class="small"><?php echo T_('Your configuration file or directory is not writeable, or there was a problem creating the configuration file. You\'ll have to upload the following code by hand. Click in the textarea to highlight all of the code.') ?> 378 </td> 379 </tr> 380 <tr> 381 <td align="center"> 382 <textarea rows="5" cols="60" name="configcode" onClick="javascript:this.form.configcode.focus();this.form.configcode.select();" ><?php echo htmlspecialchars( $config );?></textarea> 383 </td> 384 </tr> 385 <?php } ?> 386 <tr><td class="small"><?php /*echo $chmod_report*/; ?></td></tr> 387 </table> 388 </div> 389 </div> 390 <div id="break"></div> 391 </div> 392 <div class="clr"></div> 393 </form> 394 <div id="survey"> 395 <form method="post" action="survey.php" name="email"><br /> 396 <table class="bodytext" border="0" cellpadding="3" cellspacing="0" width="100%"> 397 <tbody> 398 <tr> 399 <td> 400 <div style="text-align: left;"><?php echo T_('The feedback form below is optional. Your feedback assists us in improving Mambo. We treat all data as confidential; it will not be shared with any third parties.') ?><br /><br /> 401 </div> 402 <table class="bodytext" border="0" cellpadding="3" cellspacing="0" width="100%"> 403 <tbody> 404 <tr> 405 <td colspan="4" bgcolor="#e0e0ff"><b><?php echo T_('Your details:') ?></b></td> 406 </tr> 407 <tr> 408 <td> </td> 409 <td><b><?php echo T_('Your name:') ?></b></td> 410 <td align="right"> </td> 411 <td><input maxlength="100" name="name" size="28" /></td> 412 </tr> 413 <tr> 414 <td> </td> 415 <td><b><?php echo T_('Your email address:') ?></b></td> 416 <td align="right"> </td> 417 <td><input maxlength="100" name="email" size="28" /></td> 418 </tr> 419 <tr> 420 <td> </td> 421 <td><b><?php echo T_('Your organization:') ?></b></td> 422 <td align="right"> </td> 423 <td><input maxlength="100" name="company" size="28" /></td> 424 </tr> 425 <tr> 426 <td> </td> 427 <td><b><?php echo T_('Intended use:') ?></b></td> 428 <td align="right"> </td> 429 <td> 430 <select name="category"> 431 <option value="" selected="on"><?php echo T_('Select a category') ?></option> 432 <option value="personal"><?php echo T_('Personal') ?></option> 433 <option value="company"><?php echo T_('Company') ?></option> 434 <option value="government"><?php echo T_('Government') ?></option> 435 <option value="nonprofit"><?php echo T_('Non-profit') ?></option> 436 <option value="university"><?php echo T_('University') ?></option> 437 <option value="school"><?php echo T_('School') ?></option> 438 </select> 439 </td> 440 </tr> 441 <tr> 442 <td> </td> 443 <td valign="top"><b><?php echo T_('Additional comments / feedback:') ?></b></td> 444 <td valign="top"> </td> 445 <td valign="top"><textarea name="comments" cols="35" rows="3"></textarea> 446 </td> 447 </tr> 448 <tr> 449 <td> </td> 450 <td> </td> 451 <td> </td> 452 <td><?php echo T_('We appreciate your feedback!') ?></td> 453 </tr> 454 <tr> 455 <td> </td> 456 <td> </td> 457 <td> </td> 458 <td><input value="Proceed" type="submit" /> 459 <input value="Decline" type="submit" /></td> 460 </tr> 461 </tbody> 462 </table> 463 </td> 464 </tr> 465 </tbody> 466 </table> 467 </form> 468 </div> 469 <div id="subscribe"> 470 <form method="post" action="http://send01.oiems.com/form.php?form=15" id="frmSS15" onSubmit="return CheckForm15(this);"> 471 <table class="bodytext" border="0" cellpadding="3" cellspacing="0" width="100%"> 472 <tr> 473 <td colspan="4" bgcolor="#e0e0ff"><b><?php echo T_('Subscribe to Security Announcements:') ?></b></td> 474 </tr> 475 <tr> 476 <td><span class="required" style="color: red;">*</span> 477 Your email address:</td> 478 <td><input type="text" name="email" value="" /></td> 479 </tr><tr> 480 <td><span class="required" style="color: red;">*</span> 481 Preferred Format:</td> 482 <td><select name="format"><option value="h">HTML</option><option value="t">Text</option></select></td> 483 </tr><tr> 484 <td><span class="required" style="color: red;">*</span> 485 Enter the security code shown:</td> 486 <td> 487 <script type="text/javascript"> 488 var SIDString = ''; 489 490 function getRandomLetter() { 491 return String.fromCharCode(getRandom(65, 90)); 492 } 493 494 function getRandom(lowerBound, upperBound) { 495 return Math.floor((upperBound - lowerBound + 1) * Math.random() + lowerBound); 496 } 497 498 function SetSID() 499 { 500 if (SIDString.length > 0) 501 { 502 return SIDString; 503 } 504 505 sidc = 0; 506 507 while (sidc < 32) 508 { 509 SIDString = SIDString + getRandomLetter(); 510 sidc++; 511 } 512 return SIDString; 513 } 514 </script> 515 <script type="text/javascript"> 516 var url = "http://send01.oiems.com/admin/resources/form_designs/captcha/index.php?c=" + getRandom(1,1000)+ "&ss=" + SetSID(); 517 document.write("<img src='" + url + "' alt='img'/>"); 518 </script><br /><input type="text" name="captcha" value="" /></td> 519 </tr> 520 <tr> 521 <td></td> 522 <td> 523 <input type="submit" value="Subscribe" /> 524 </td> 525 </tr> 526 </table> 527 </form> 528 529 <script type="text/javascript"> 530 531 function CheckMultiple15(frm, name) { 532 for (var i=0; i < frm.length; i++) 533 { 534 fldObj = frm.elements[i]; 535 fldId = fldObj.id; 536 if (fldId) { 537 var fieldnamecheck=fldObj.id.indexOf(name); 538 if (fieldnamecheck != -1) { 539 if (fldObj.checked) { 540 return true; 541 } 542 } 543 } 544 } 545 return false; 546 } 547 function CheckForm15(f) { 548 if (f.email.value == "") { 549 alert("Please enter your email address."); 550 f.email.focus(); 551 return false; 552 } 553 554 if (f.format.selectedIndex == -1) { 555 alert("Please choose a format to receive your email campaigns in"); 556 f.format.focus(); 557 return false; 558 } 559 560 if (f.captcha.value == "") { 561 alert("Please enter the security code shown"); 562 f.captcha.focus(); 563 return false; 564 } 565 566 return true; 567 }; 568 569 </script> 570 </div> 571 <div id="donate" align="center"> 572 <h3><?php echo T_('Support Mambo with a donation through PayPal') ?></h3><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 573 574 <input type="hidden" name="cmd" value="_s-xclick" /> 575 <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" /> 576 <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQ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+KzEZwErqKK1mwhU1zuUpWunSAwDQYJKoZIhvcNAQEBBQAEgYCvwok4/rCvtZQHRIby7XHKCz1XuiEspRc/v86RZZ4tl/BNIwPb/YOY0vZYaa4SFJ84l4ydKIjVWqxLXlIENOw/i+hCCBTeKijLAC/vTIklmeBVl51S7BPUvT1J+kEjoycPVDeV1/8zJ6y3LJq8gpPA3bTUTpIKxl+H1K1W8bnxVg==-----END PKCS7-----" /></form> 577 </div> 578 </div> 579 </div> 580 <div class="clr"></div> 581 <div class="ctr"> 582 <?php echo T_('<a href="http://www.mambo-foundation.org" target="_blank">Mambo </a> is Free Software released under the <a href="http://www.opensource.org/licenses/gpl-2.0.php" target="_blank">GNU/GPL License</a>.') ?> 583 </div> 584 </body> 585 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |