Annotation of /mambo/branches/4.6/installation/install4.php
Parent Directory
|
Revision Log
Revision 1659 - (view) (download)
| 1 : | alwarren | 1486 | <?php |
| 2 : | /** | ||
| 3 : | * Install instructions | ||
| 4 : | * @package Mambo | ||
| 5 : | * @author Mambo Foundation Inc see README.php | ||
| 6 : | * @copyright Mambo Foundation Inc. | ||
| 7 : | * See COPYRIGHT.php for copyright notices and details. | ||
| 8 : | * @license GNU/GPL Version 2, see LICENSE.php | ||
| 9 : | * Mambo is free software; you can redistribute it and/or | ||
| 10 : | * modify it under the terms of the GNU General Public License | ||
| 11 : | * as published by the Free Software Foundation; version 2 of the License. | ||
| 12 : | */ | ||
| 13 : | |||
| 14 : | // Set flag that this is a parent file | ||
| 15 : | if (!defined('_VALID_MOS')) define( '_VALID_MOS', 1 ); | ||
| 16 : | |||
| 17 : | // Include common.php | ||
| 18 : | require_once( 'common.php' ); | ||
| 19 : | include_once( 'langconfig.php' ); | ||
| 20 : | |||
| 21 : | $DBhostname = mosGetParam( $_POST, 'DBhostname', '' ); | ||
| 22 : | $DBuserName = mosGetParam( $_POST, 'DBuserName', '' ); | ||
| 23 : | $DBpassword = mosGetParam( $_POST, 'DBpassword', '' ); | ||
| 24 : | $DBname = mosGetParam( $_POST, 'DBname', '' ); | ||
| 25 : | $DBPrefix = mosGetParam( $_POST, 'DBPrefix', '' ); | ||
| 26 : | $DBcreated = intval( mosGetParam( $_POST, 'DBcreated', 0 ) ); | ||
| 27 : | $sitename = stripslashes( mosGetParam( $_POST, 'sitename', '' ) ); | ||
| 28 : | $adminEmail = mosGetParam( $_POST, 'adminEmail', ''); | ||
| 29 : | $siteUrl = mosGetParam( $_POST, 'siteUrl', '' ); | ||
| 30 : | $absolutePath = stripslashes( mosGetParam( $_POST, 'absolutePath', '' ) ); | ||
| 31 : | $adminPassword = mosGetParam( $_POST, 'adminPassword', ''); | ||
| 32 : | |||
| 33 : | $filePerms = ''; | ||
| 34 : | if (mosGetParam($_POST,'filePermsMode',0)) | ||
| 35 : | $filePerms = '0'. | ||
| 36 : | (mosGetParam($_POST,'filePermsUserRead',0) * 4 + | ||
| 37 : | mosGetParam($_POST,'filePermsUserWrite',0) * 2 + | ||
| 38 : | mosGetParam($_POST,'filePermsUserExecute',0)). | ||
| 39 : | (mosGetParam($_POST,'filePermsGroupRead',0) * 4 + | ||
| 40 : | mosGetParam($_POST,'filePermsGroupWrite',0) * 2 + | ||
| 41 : | mosGetParam($_POST,'filePermsGroupExecute',0)). | ||
| 42 : | (mosGetParam($_POST,'filePermsWorldRead',0) * 4 + | ||
| 43 : | mosGetParam($_POST,'filePermsWorldWrite',0) * 2 + | ||
| 44 : | mosGetParam($_POST,'filePermsWorldExecute',0)); | ||
| 45 : | |||
| 46 : | $dirPerms = ''; | ||
| 47 : | if (mosGetParam($_POST,'dirPermsMode',0)) | ||
| 48 : | $dirPerms = '0'. | ||
| 49 : | (mosGetParam($_POST,'dirPermsUserRead',0) * 4 + | ||
| 50 : | mosGetParam($_POST,'dirPermsUserWrite',0) * 2 + | ||
| 51 : | mosGetParam($_POST,'dirPermsUserSearch',0)). | ||
| 52 : | (mosGetParam($_POST,'dirPermsGroupRead',0) * 4 + | ||
| 53 : | mosGetParam($_POST,'dirPermsGroupWrite',0) * 2 + | ||
| 54 : | mosGetParam($_POST,'dirPermsGroupSearch',0)). | ||
| 55 : | (mosGetParam($_POST,'dirPermsWorldRead',0) * 4 + | ||
| 56 : | mosGetParam($_POST,'dirPermsWorldWrite',0) * 2 + | ||
| 57 : | mosGetParam($_POST,'dirPermsWorldSearch',0)); | ||
| 58 : | ?> | ||
| 59 : | <?php echo "<?xml version=\"1.0\" encoding=\"".$charset."\"?".">"; | ||
| 60 : | ?> | ||
| 61 : | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
| 62 : | <html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $text_direction;?>"> | ||
| 63 : | <head> | ||
| 64 : | <title><?php echo T_('Mambo - Web Installer') ?></title> | ||
| 65 : | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" /> | ||
| 66 : | <link rel="shortcut icon" href="../images/favicon.ico" /> | ||
| 67 : | <link rel="stylesheet" href="install<?php if($text_direction=='rtl') echo '_'.$text_direction ?>.css" type="text/css" /> | ||
| 68 : | </head> | ||
| 69 : | <body> | ||
| 70 : | <?php | ||
| 71 : | if ((trim($adminEmail== "")) || (preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $adminEmail )==false)) { | ||
| 72 : | echo "<form name=\"stepBack\" method=\"post\" action=\"install3.php\"> | ||
| 73 : | <input type=\"hidden\" name=\"DBhostname\" value=\"$DBhostname\" /> | ||
| 74 : | <input type=\"hidden\" name=\"DBuserName\" value=\"$DBuserName\" /> | ||
| 75 : | <input type=\"hidden\" name=\"DBpassword\" value=\"$DBpassword\" /> | ||
| 76 : | <input type=\"hidden\" name=\"DBname\" value=\"$DBname\" /> | ||
| 77 : | <input type=\"hidden\" name=\"DBPrefix\" value=\"$DBPrefix\" /> | ||
| 78 : | <input type=\"hidden\" name=\"DBcreated\" value=\"$DBcreated\"> | ||
| 79 : | <input type=\"hidden\" name=\"sitename\" value=\"$sitename\" /> | ||
| 80 : | <input type=\"hidden\" name=\"adminEmail\" value=\"$adminEmail\" /> | ||
| 81 : | <input type=\"hidden\" name=\"siteUrl\" value=\"$siteUrl\" /> | ||
| 82 : | <input type=\"hidden\" name=\"absolutePath\" value=\"$absolutePath\" /> | ||
| 83 : | <input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> | ||
| 84 : | <input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> | ||
| 85 : | </form>"; | ||
| 86 : | $error_msg = T_('You must provide a valid admin email address'); | ||
| 87 : | echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; | ||
| 88 : | return; | ||
| 89 : | } | ||
| 90 : | |||
| 91 : | if($DBhostname && $DBuserName && $DBname) { | ||
| 92 : | $configArray['DBhostname'] = $DBhostname; | ||
| 93 : | $configArray['DBuserName'] = $DBuserName; | ||
| 94 : | $configArray['DBpassword'] = $DBpassword; | ||
| 95 : | $configArray['DBname'] = $DBname; | ||
| 96 : | $configArray['DBPrefix'] = $DBPrefix; | ||
| 97 : | } else { | ||
| 98 : | echo "<form name=\"stepBack\" method=\"post\" action=\"install3.php\"> | ||
| 99 : | <input type=\"hidden\" name=\"DBhostname\" value=\"$DBhostname\" /> | ||
| 100 : | <input type=\"hidden\" name=\"DBuserName\" value=\"$DBuserName\" /> | ||
| 101 : | <input type=\"hidden\" name=\"DBpassword\" value=\"$DBpassword\" /> | ||
| 102 : | <input type=\"hidden\" name=\"DBname\" value=\"$DBname\" /> | ||
| 103 : | <input type=\"hidden\" name=\"DBPrefix\" value=\"$DBPrefix\" /> | ||
| 104 : | <input type=\"hidden\" name=\"DBcreated\" value=\"$DBcreated\"> | ||
| 105 : | <input type=\"hidden\" name=\"sitename\" value=\"$sitename\" /> | ||
| 106 : | <input type=\"hidden\" name=\"adminEmail\" value=\"$adminEmail\" /> | ||
| 107 : | <input type=\"hidden\" name=\"siteUrl\" value=\"$siteUrl\" /> | ||
| 108 : | <input type=\"hidden\" name=\"absolutePath\" value=\"$absolutePath\" /> | ||
| 109 : | <input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> | ||
| 110 : | <input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> | ||
| 111 : | </form>"; | ||
| 112 : | $error_msg = T_('The database details provided are incorrect and/or empty'); | ||
| 113 : | echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; | ||
| 114 : | return; | ||
| 115 : | } | ||
| 116 : | |||
| 117 : | if ($sitename) { | ||
| 118 : | $configArray['sitename'] = $sitename; | ||
| 119 : | } else { | ||
| 120 : | ?> | ||
| 121 : | <form name=\"stepBack\" method=\"post\" action=\"install3.php\"> | ||
| 122 : | <input type=\"hidden\" name=\"DBhostname\" value=\"$DBhostname\" /> | ||
| 123 : | <input type=\"hidden\" name=\"DBuserName\" value=\"$DBuserName\" /> | ||
| 124 : | <input type=\"hidden\" name=\"DBpassword\" value=\"$DBpassword\" /> | ||
| 125 : | <input type=\"hidden\" name=\"DBname\" value=\"$DBname\" /> | ||
| 126 : | <input type=\"hidden\" name=\"DBPrefix\" value=\"$DBPrefix\" /> | ||
| 127 : | <input type=\"hidden\" name=\"DBcreated\" value=\"$DBcreated\"> | ||
| 128 : | <input type=\"hidden\" name=\"sitename\" value=\"$sitename\" /> | ||
| 129 : | <input type=\"hidden\" name=\"adminEmail\" value=\"$adminEmail\" /> | ||
| 130 : | <input type=\"hidden\" name=\"siteUrl\" value=\"$siteUrl\" /> | ||
| 131 : | <input type=\"hidden\" name=\"absolutePath\" value=\"$absolutePath\" /> | ||
| 132 : | <input type=\"hidden\" name=\"filePerms\" value=\"$filePerms\" /> | ||
| 133 : | <input type=\"hidden\" name=\"dirPerms\" value=\"$dirPerms\" /> | ||
| 134 : | </form> | ||
| 135 : | <?php | ||
| 136 : | $error_msg = T_('The sitename has not been provided'); | ||
| 137 : | echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; | ||
| 138 : | return; | ||
| 139 : | |||
| 140 : | } | ||
| 141 : | |||
| 142 : | if (file_exists( '../configuration.php' )) { | ||
| 143 : | $canWrite = is_writable( '../configuration.php' ); | ||
| 144 : | } else { | ||
| 145 : | $canWrite = is_writable( '..' ); | ||
| 146 : | } | ||
| 147 : | |||
| 148 : | if ($siteUrl) { | ||
| 149 : | $configArray['siteUrl']=$siteUrl; | ||
| 150 : | // Fix for Windows | ||
| 151 : | $absolutePath= str_replace("\\","/", $absolutePath); | ||
| 152 : | $absolutePath= str_replace("//","/", $absolutePath); | ||
| 153 : | $configArray['absolutePath']=$absolutePath; | ||
| 154 : | $configArray['filePerms']=$filePerms; | ||
| 155 : | $configArray['dirPerms']=$dirPerms; | ||
| 156 : | $configArray['sitename'] = addslashes($configArray['sitename']); | ||
| 157 : | |||
| 158 : | $config = "<?php\n"; | ||
| 159 : | $config .= "\$mosConfig_offline = '0';\n"; | ||
| 160 : | $config .= "\$mosConfig_host = '{$configArray['DBhostname']}';\n"; | ||
| 161 : | $config .= "\$mosConfig_user = '{$configArray['DBuserName']}';\n"; | ||
| 162 : | $config .= "\$mosConfig_password = '{$configArray['DBpassword']}';\n"; | ||
| 163 : | $config .= "\$mosConfig_db = '{$configArray['DBname']}';\n"; | ||
| 164 : | $config .= "\$mosConfig_dbprefix = '{$configArray['DBPrefix']}';\n"; | ||
| 165 : | $config .= "\$mosConfig_lang = 'english';\n"; | ||
| 166 : | $config .= "\$mosConfig_absolute_path = '{$configArray['absolutePath']}';\n"; | ||
| 167 : | $config .= "\$mosConfig_live_site = '{$configArray['siteUrl']}';\n"; | ||
| 168 : | $config .= "\$mosConfig_sitename = '{$configArray['sitename']}';\n"; | ||
| 169 : | $config .= "\$mosConfig_shownoauth = '0';\n"; | ||
| 170 : | $config .= "\$mosConfig_useractivation = '1';\n"; | ||
| 171 : | $config .= "\$mosConfig_uniquemail = '1';\n"; | ||
| 172 : | andphe | 1605 | $config .= "\$mosConfig_usecaptcha = '0';\n"; |
| 173 : | alwarren | 1486 | $config .= "\$mosConfig_offline_message = '".T_('This site is down for maintenance.<br /> Please check back again soon.')."';\n"; |
| 174 : | $config .= "\$mosConfig_error_message = '".T_('This site is temporarily unavailable.<br /> Please notify the System Administrator')."';\n"; | ||
| 175 : | $config .= "\$mosConfig_debug = '0';\n"; | ||
| 176 : | $config .= "\$mosConfig_lifetime = '900';\n"; | ||
| 177 : | $config .= "\$mosConfig_MetaDesc = '".T_('This site uses Mambo - the free, open source content management system')."';\n"; | ||
| 178 : | $config .= "\$mosConfig_MetaKeys = 'mambo user, Mambo';\n"; | ||
| 179 : | $config .= "\$mosConfig_MetaTitle = '1';\n"; | ||
| 180 : | $config .= "\$mosConfig_MetaAuthor = '1';\n"; | ||
| 181 : | $config .= "\$mosConfig_locale_debug = '0';\n"; | ||
| 182 : | $config .= "\$mosConfig_locale_use_gettext = '0';\n"; | ||
| 183 : | $config .= "\$mosConfig_locale = 'en';\n"; | ||
| 184 : | $config .= "\$mosConfig_offset = '0';\n"; | ||
| 185 : | $config .= "\$mosConfig_hideAuthor = '0';\n"; | ||
| 186 : | $config .= "\$mosConfig_hideCreateDate = '0';\n"; | ||
| 187 : | $config .= "\$mosConfig_hideModifyDate = '0';\n"; | ||
| 188 : | $config .= "\$mosConfig_hidePdf = '".intval( !is_writable( "{$configArray['absolutePath']}/media/" ) )."';\n"; | ||
| 189 : | $config .= "\$mosConfig_hidePrint = '0';\n"; | ||
| 190 : | $config .= "\$mosConfig_hideEmail = '0';\n"; | ||
| 191 : | $config .= "\$mosConfig_enable_log_items = '0';\n"; | ||
| 192 : | $config .= "\$mosConfig_enable_log_searches = '0';\n"; | ||
| 193 : | $config .= "\$mosConfig_enable_stats = '0';\n"; | ||
| 194 : | $config .= "\$mosConfig_sef = '0';\n"; | ||
| 195 : | $config .= "\$mosConfig_vote = '0';\n"; | ||
| 196 : | $config .= "\$mosConfig_gzip = '0';\n"; | ||
| 197 : | $config .= "\$mosConfig_multipage_toc = '1';\n"; | ||
| 198 : | $config .= "\$mosConfig_allowUserRegistration = '1';\n"; | ||
| 199 : | $config .= "\$mosConfig_link_titles = '0';\n"; | ||
| 200 : | $config .= "\$mosConfig_error_reporting = '-1';\n"; | ||
| 201 : | $config .= "\$mosConfig_register_globals = '1';\n"; | ||
| 202 : | $config .= "\$mosConfig_list_limit = '50';\n"; | ||
| 203 : | $config .= "\$mosConfig_caching = '0';\n"; | ||
| 204 : | $config .= "\$mosConfig_cachepath = '{$configArray['absolutePath']}/cache';\n"; | ||
| 205 : | $config .= "\$mosConfig_cachetime = '900';\n"; | ||
| 206 : | $config .= "\$mosConfig_mailer = 'mail';\n"; | ||
| 207 : | $config .= "\$mosConfig_mailfrom = '$adminEmail';\n"; | ||
| 208 : | $config .= "\$mosConfig_fromname = '{$configArray['sitename']}';\n"; | ||
| 209 : | $config .= "\$mosConfig_sendmail = '/usr/sbin/sendmail';\n"; | ||
| 210 : | $config .= "\$mosConfig_smtpauth = '0';\n"; | ||
| 211 : | $config .= "\$mosConfig_smtpuser = '';\n"; | ||
| 212 : | $config .= "\$mosConfig_smtppass = '';\n"; | ||
| 213 : | $config .= "\$mosConfig_smtphost = 'localhost';\n"; | ||
| 214 : | $config .= "\$mosConfig_back_button = '0';\n"; | ||
| 215 : | $config .= "\$mosConfig_item_navigation = '0';\n"; | ||
| 216 : | $config .= "\$mosConfig_secret = '" . mosMakePassword(16) . "';\n"; | ||
| 217 : | $config .= "\$mosConfig_pagetitles = '1';\n"; | ||
| 218 : | $config .= "\$mosConfig_readmore = '1';\n"; | ||
| 219 : | $config .= "\$mosConfig_hits = '1';\n"; | ||
| 220 : | $config .= "\$mosConfig_icons = '1';\n"; | ||
| 221 : | $config .= "\$mosConfig_favicon = 'favicon.ico';\n"; | ||
| 222 : | $config .= "\$mosConfig_fileperms = '".$configArray['filePerms']."';\n"; | ||
| 223 : | $config .= "\$mosConfig_dirperms = '".$configArray['dirPerms']."';\n"; | ||
| 224 : | $config .= "\$mosConfig_helpurl = 'http://docs.mambo-foundation.org';\n"; | ||
| 225 : | $config .= "\$mosConfig_mbf_content = '0';\n"; | ||
| 226 : | $config .= "setlocale (LC_TIME, \$mosConfig_locale);\n"; | ||
| 227 : | $config .= "?>"; | ||
| 228 : | |||
| 229 : | if ($canWrite && ($fp = fopen("../configuration.php", "w"))) { | ||
| 230 : | fputs( $fp, $config, strlen( $config ) ); | ||
| 231 : | fclose( $fp ); | ||
| 232 : | } else { | ||
| 233 : | $canWrite = false; | ||
| 234 : | } // if | ||
| 235 : | |||
| 236 : | $cryptpass=md5($adminPassword); | ||
| 237 : | |||
| 238 : | mysql_connect($DBhostname, $DBuserName, $DBpassword); | ||
| 239 : | mysql_select_db($DBname); | ||
| 240 : | |||
| 241 : | // create the admin user | ||
| 242 : | $installdate = date("Y-m-d H:i:s"); | ||
| 243 : | $query = "INSERT INTO `{$DBPrefix}users` VALUES (62, 'Administrator', 'admin', '$adminEmail', '$cryptpass', 'Super Administrator', 0, 1, 25, '$installdate', '0000-00-00 00:00:00', '', '')"; | ||
| 244 : | mysql_query( $query ); | ||
| 245 : | // add the ARO (Access Request Object) | ||
| 246 : | $query = "INSERT INTO `{$DBPrefix}core_acl_aro` VALUES (10,'users','62',0,'Administrator',0)"; | ||
| 247 : | mysql_query( $query ); | ||
| 248 : | // add the map between the ARO and the Group | ||
| 249 : | $query = "INSERT INTO `{$DBPrefix}core_acl_groups_aro_map` VALUES (25,'',10)"; | ||
| 250 : | mysql_query( $query ); | ||
| 251 : | |||
| 252 : | // chmod files and directories if desired | ||
| 253 : | $chmod_report = T_('Directory and file permissions left unchanged.'); | ||
| 254 : | if ($filePerms != '' || $dirPerms != '') { | ||
| 255 : | $mosrootfiles = array( | ||
| 256 : | 'administrator', | ||
| 257 : | 'cache', | ||
| 258 : | 'components', | ||
| 259 : | 'editor', | ||
| 260 : | 'files', | ||
| 261 : | 'help', | ||
| 262 : | 'images', | ||
| 263 : | 'includes', | ||
| 264 : | 'parameters', | ||
| 265 : | 'installation', | ||
| 266 : | 'language', | ||
| 267 : | 'mambots', | ||
| 268 : | 'media', | ||
| 269 : | 'modules', | ||
| 270 : | 'templates', | ||
| 271 : | 'CHANGELOG', | ||
| 272 : | 'configuration.php', | ||
| 273 : | 'htaccess.txt', | ||
| 274 : | 'index.php', | ||
| 275 : | 'index2.php', | ||
| 276 : | 'index3.php', | ||
| 277 : | 'INSTALL', | ||
| 278 : | 'LICENSE', | ||
| 279 : | 'mainbody.php', | ||
| 280 : | 'offline.php', | ||
| 281 : | 'page404.php', | ||
| 282 : | 'pathway.php', | ||
| 283 : | 'README', | ||
| 284 : | 'robots.txt' | ||
| 285 : | ); | ||
| 286 : | $filemode = NULL; | ||
| 287 : | if ($filePerms != '') $filemode = octdec($filePerms); | ||
| 288 : | $dirmode = NULL; | ||
| 289 : | if ($dirPerms != '') $dirmode = octdec($dirPerms); | ||
| 290 : | $chmodOk = TRUE; | ||
| 291 : | foreach ($mosrootfiles as $file) | ||
| 292 : | if (!mosChmodRecursive($absolutePath.'/'.$file, $filemode, $dirmode)) | ||
| 293 : | $chmodOk = FALSE; | ||
| 294 : | if ($chmodOk) | ||
| 295 : | $chmod_report = T_('File and directory permissions successfully changed.'); | ||
| 296 : | else | ||
| 297 : | $chmod_report = T_('File and directory permissions could not be changed.<br/>'. | ||
| 298 : | 'Please CHMOD mambo files and directories manually.'); | ||
| 299 : | } // if chmod wanted | ||
| 300 : | } else { | ||
| 301 : | ?> | ||
| 302 : | <form action="install3.php" method="post" name="stepBack3" id="stepBack3"> | ||
| 303 : | <input type="hidden" name="DBhostname" value="<?php echo $DBhostname;?>" /> | ||
| 304 : | <input type="hidden" name="DBusername" value="<?php echo $DBuserName;?>" /> | ||
| 305 : | <input type="hidden" name="DBpassword" value="<?php echo $DBpassword;?>" /> | ||
| 306 : | <input type="hidden" name="DBname" value="<?php echo $DBname;?>" /> | ||
| 307 : | <input type="hidden" name="DBPrefix" value="<?php echo $DBPrefix;?>" /> | ||
| 308 : | <input type="hidden" name="DBcreated" value="1" /> | ||
| 309 : | <input type="hidden" name="sitename" value="<?php echo $sitename;?>" /> | ||
| 310 : | <input type="hidden" name="adminEmail" value="$adminEmail" /> | ||
| 311 : | <input type="hidden" name="siteUrl" value="$siteUrl" /> | ||
| 312 : | <input type="hidden" name="absolutePath" value="$absolutePath" /> | ||
| 313 : | <input type="hidden" name="filePerms" value="$filePerms" /> | ||
| 314 : | <input type="hidden" name="dirPerms" value="$dirPerms" /> | ||
| 315 : | </form> | ||
| 316 : | <?php | ||
| 317 : | $error_msg = T_('The site url has not been provided'); | ||
| 318 : | echo "<script>alert('".$error_msg."'); document.stepBack.submit(); </script></body></html>"; | ||
| 319 : | return; | ||
| 320 : | } ?> | ||
| 321 : | <div id="wrapper"> | ||
| 322 : | <div id="header"> | ||
| 323 : | <div id="mambo"><img src="header_install.png" alt="<?php echo T_('Mambo Installation') ?>" /></div> | ||
| 324 : | </div> | ||
| 325 : | </div> | ||
| 326 : | <div id="ctr" align="center"> | ||
| 327 : | <div class="install"> | ||
| 328 : | <form action="dummy" name="form" id="form"> | ||
| 329 : | <div id="stepbar"> | ||
| 330 : | <div class="step-off"><?php echo T_('pre-installation check') ?></div> | ||
| 331 : | <div class="step-off"><?php echo T_('license') ?></div> | ||
| 332 : | <div class="step-off"><?php echo T_('step 1') ?></div> | ||
| 333 : | <div class="step-off"><?php echo T_('step 2') ?></div> | ||
| 334 : | <div class="step-off"><?php echo T_('step 3') ?></div> | ||
| 335 : | <div class="step-on"><?php echo T_('step 4') ?></div> | ||
| 336 : | <div class="far-right"> | ||
| 337 : | <input class="button" type="button" name="runSite" value="<?php echo T_('View Site') ?>" | ||
| 338 : | <?php | ||
| 339 : | if ($siteUrl) { | ||
| 340 : | echo "onClick='window.location.href=\"$siteUrl"."/index.php\" '"; | ||
| 341 : | } else { | ||
| 342 : | echo "onClick='window.location.href=\"{$configArray['siteURL']}"."/index.php\" '"; | ||
| 343 : | } | ||
| 344 : | ?>/> | ||
| 345 : | <input class="button" type="button" name="Admin" value="<?php echo T_('Administration') ?>" | ||
| 346 : | <?php | ||
| 347 : | if ($siteUrl) { | ||
| 348 : | echo "onClick='window.location.href=\"$siteUrl"."/administrator/index.php\" '"; | ||
| 349 : | } else { | ||
| 350 : | echo "onClick='window.location.href=\"{$configArray['siteURL']}"."/administrator/index.php\" '"; | ||
| 351 : | } | ||
| 352 : | ?>/> | ||
| 353 : | </div> | ||
| 354 : | </div> | ||
| 355 : | <div id="right2"> | ||
| 356 : | <div id="step"><?php echo T_('step 4') ?></div> | ||
| 357 : | <div id="steposi"></div> | ||
| 358 : | <div class="clr"></div> | ||
| 359 : | <h1><?php echo T_('Congratulations! Mambo is installed') ?></h1> | ||
| 360 : | <div class="install-text"><?php echo T_('<p>Click the "View Site" button to start Mambo site or "Administration" to take you to administrator login. <br /><br />Please take a moment to fill out the form below.</p>') ?> | ||
| 361 : | </div> | ||
| 362 : | <div class="install-form"> | ||
| 363 : | <div class="form-block"> | ||
| 364 : | <table width="100%"> | ||
| 365 : | <tr><td class="error" align="center"><?php echo T_('PLEASE REMEMBER TO COMPLETELY<br/>REMOVE THE INSTALLATION DIRECTORY') ?></td></tr> | ||
| 366 : | <tr><td align="center"><h5><?php echo T_('Administration Login Details') ?></h5></td></tr> | ||
| 367 : | <tr><td align="center" class="notice"><b><?php echo T_('Username :') ?> admin</b></td></tr> | ||
| 368 : | <tr><td align="center" class="notice"><b><?php echo T_('Password :') ?> <?php echo $adminPassword; ?></b></td></tr> | ||
| 369 : | <tr><td> </td></tr> | ||
| 370 : | <tr><td align="right"> </td></tr> | ||
| 371 : | <?php if (!$canWrite) { ?> | ||
| 372 : | <tr> | ||
| 373 : | <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.') ?> | ||
| 374 : | </td> | ||
| 375 : | </tr> | ||
| 376 : | <tr> | ||
| 377 : | <td align="center"> | ||
| 378 : | <textarea rows="5" cols="60" name="configcode" onClick="javascript:this.form.configcode.focus();this.form.configcode.select();" ><?php echo htmlspecialchars( $config );?></textarea> | ||
| 379 : | </td> | ||
| 380 : | </tr> | ||
| 381 : | <?php } ?> | ||
| 382 : | <tr><td class="small"><?php /*echo $chmod_report*/; ?></td></tr> | ||
| 383 : | </table> | ||
| 384 : | </div> | ||
| 385 : | </div> | ||
| 386 : | <div id="break"></div> | ||
| 387 : | </div> | ||
| 388 : | <div class="clr"></div> | ||
| 389 : | </form> | ||
| 390 : | <div id="survey"> | ||
| 391 : | <form method="post" action="survey.php" name="email"><br /> | ||
| 392 : | <table class="bodytext" border="0" cellpadding="3" cellspacing="0" width="100%"> | ||
| 393 : | <tbody> | ||
| 394 : | <tr> | ||
| 395 : | <td> | ||
| 396 : | <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 /> | ||
| 397 : | </div> | ||
| 398 : | <table class="bodytext" border="0" cellpadding="3" cellspacing="0" width="100%"> | ||
| 399 : | <tbody> | ||
| 400 : | <tr> | ||
| 401 : | <td colspan="4" bgcolor="#e0e0ff"><b><?php echo T_('Your details:') ?></b></td> | ||
| 402 : | </tr> | ||
| 403 : | <tr> | ||
| 404 : | <td> </td> | ||
| 405 : | <td><b><?php echo T_('Your name:') ?></b></td> | ||
| 406 : | <td align="right"> </td> | ||
| 407 : | <td><input maxlength="100" name="name" size="28" /></td> | ||
| 408 : | </tr> | ||
| 409 : | <tr> | ||
| 410 : | <td> </td> | ||
| 411 : | <td><b><?php echo T_('Your email address:') ?></b></td> | ||
| 412 : | <td align="right"> </td> | ||
| 413 : | <td><input maxlength="100" name="email" size="28" /></td> | ||
| 414 : | </tr> | ||
| 415 : | <tr> | ||
| 416 : | <td> </td> | ||
| 417 : | <td><b><?php echo T_('Your organization:') ?></b></td> | ||
| 418 : | <td align="right"> </td> | ||
| 419 : | <td><input maxlength="100" name="company" size="28" /></td> | ||
| 420 : | </tr> | ||
| 421 : | <tr> | ||
| 422 : | <td> </td> | ||
| 423 : | <td><b><?php echo T_('Intended use:') ?></b></td> | ||
| 424 : | <td align="right"> </td> | ||
| 425 : | <td> | ||
| 426 : | <select name="category"> | ||
| 427 : | <option value="" selected="on"><?php echo T_('Select a category') ?></option> | ||
| 428 : | <option value="personal"><?php echo T_('Personal') ?></option> | ||
| 429 : | <option value="company"><?php echo T_('Company') ?></option> | ||
| 430 : | <option value="government"><?php echo T_('Government') ?></option> | ||
| 431 : | <option value="nonprofit"><?php echo T_('Non-profit') ?></option> | ||
| 432 : | <option value="university"><?php echo T_('University') ?></option> | ||
| 433 : | <option value="school"><?php echo T_('School') ?></option> | ||
| 434 : | </select> | ||
| 435 : | </td> | ||
| 436 : | </tr> | ||
| 437 : | <tr> | ||
| 438 : | <td></td> | ||
| 439 : | <td><b><?php echo T_('Subscribe to Mambo Security Announcement Mailing List?') ?></b></td> | ||
| 440 : | <td></td> | ||
| 441 : | <td><a href="http://oiems.com/s/84/20" target="_blank"><?php echo T_('Click Here') ?></a><br /> | ||
| 442 : | </td> | ||
| 443 : | </tr> | ||
| 444 : | <tr> | ||
| 445 : | <td> </td> | ||
| 446 : | <td valign="top"><b><?php echo T_('Additional comments / feedback:') ?></b></td> | ||
| 447 : | <td valign="top"> </td> | ||
| 448 : | <td valign="top"><textarea name="comments" cols="35" rows="3"></textarea> | ||
| 449 : | </td> | ||
| 450 : | </tr> | ||
| 451 : | <tr> | ||
| 452 : | <td></td> | ||
| 453 : | <td style="text-align: center;"><?php echo T_('Help support Mambo:') ?></td> | ||
| 454 : | <td></td> | ||
| 455 : | <td><?php echo T_('We appreciate your feedback!') ?></td> | ||
| 456 : | </tr> | ||
| 457 : | <tr> | ||
| 458 : | <td></td> | ||
| 459 : | <td style="text-align: center;"><a | ||
| 460 : | href="http://www.mambo-foundation.org/view/Help_Support_the_Mambo_Foundation/" target="_blank"><img | ||
| 461 : | style="border: 0px solid ; width: 73px; height: 44px;" alt="" | ||
| 462 : | src="../images/M_images/donate.gif" /></a></td> | ||
| 463 : | <td></td> | ||
| 464 : | <td><input value="Proceed" type="submit" /> | ||
| 465 : | <input value="Decline" type="submit" /></td> | ||
| 466 : | </tr> | ||
| 467 : | </tbody> | ||
| 468 : | </table> | ||
| 469 : | </td> | ||
| 470 : | </tr> | ||
| 471 : | </tbody> | ||
| 472 : | </table> | ||
| 473 : | </form> | ||
| 474 : | </div> | ||
| 475 : | </div> | ||
| 476 : | </div> | ||
| 477 : | <div class="clr"></div> | ||
| 478 : | <div class="ctr"> | ||
| 479 : | <?php echo T_('<a href="http://www.mambo-foundation.org" target="_blank">Mambo </a> is Free Software released under the <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU/GPL License</a>.') ?> | ||
| 480 : | </div> | ||
| 481 : | </body> | ||
| 482 : | </html> | ||
| 483 : |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

