29 } |
29 } |
30 |
30 |
31 define('IN_ENANO_INSTALL', 'true'); |
31 define('IN_ENANO_INSTALL', 'true'); |
32 |
32 |
33 define('ENANO_VERSION', '1.0.5'); |
33 define('ENANO_VERSION', '1.0.5'); |
|
34 define('ENANO_RELEASE_NAME', 'Ferrishyn'); |
34 // In beta versions, define ENANO_BETA_VERSION here |
35 // In beta versions, define ENANO_BETA_VERSION here |
35 |
36 |
36 if(!defined('scriptPath')) { |
37 if(!defined('scriptPath')) { |
37 $sp = dirname($_SERVER['REQUEST_URI']); |
38 $sp = dirname($_SERVER['REQUEST_URI']); |
38 if($sp == '/' || $sp == '\\') $sp = ''; |
39 if($sp == '/' || $sp == '\\') $sp = ''; |
1148 case 'welcome': |
1149 case 'welcome': |
1149 ?> |
1150 ?> |
1150 <div style="text-align: center; margin-top: 10px;"> |
1151 <div style="text-align: center; margin-top: 10px;"> |
1151 <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" /> |
1152 <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" /> |
1152 <h2>Welcome to Enano</h2> |
1153 <h2>Welcome to Enano</h2> |
1153 <h3>Version 1.0.4 – stable<br /> |
1154 <h3>Version <?php echo ENANO_VERSION; ?> – stable<br /> |
1154 <span style="font-weight: normal;">also affectionately known as "ellyyllon" <tt>:)</tt></span></h3> |
1155 <span style="font-weight: normal;">also affectionately known as "<?php echo ENANO_RELEASE_NAME; ?>" <tt>:)</tt></span></h3> |
1155 <?php |
1156 <?php |
1156 if ( file_exists('./_nightly.php') ) |
1157 if ( file_exists('./_nightly.php') ) |
1157 { |
1158 { |
1158 echo '<div class="warning-box" style="text-align: left; margin: 10px 0;"><b>You are about to install a NIGHTLY BUILD of Enano.</b><br />Nightly builds are NOT upgradeable and may contain serious flaws, security problems, or extraneous debugging information. Installing this version of Enano on a production site is NOT recommended.</div>'; |
1159 echo '<div class="warning-box" style="text-align: left; margin: 10px 0;"><b>You are about to install a NIGHTLY BUILD of Enano.</b><br />Nightly builds are NOT upgradeable and may contain serious flaws, security problems, or extraneous debugging information. Installing this version of Enano on a production site is NOT recommended.</div>'; |
1159 } |
1160 } |
1525 for($i=0;$i<sizeof($_POST);$i++) { |
1526 for($i=0;$i<sizeof($_POST);$i++) { |
1526 echo '<input type="hidden" name="'.htmlspecialchars($k[$i]).'" value="'.htmlspecialchars($_POST[$k[$i]]).'" />'."\n"; |
1527 echo '<input type="hidden" name="'.htmlspecialchars($k[$i]).'" value="'.htmlspecialchars($_POST[$k[$i]]).'" />'."\n"; |
1527 } |
1528 } |
1528 ?> |
1529 ?> |
1529 <p>The next step is to enter some information about your website. You can always change this information later, using the administration panel.</p> |
1530 <p>The next step is to enter some information about your website. You can always change this information later, using the administration panel.</p> |
|
1531 <?php |
|
1532 if ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') ) |
|
1533 { |
|
1534 $patch_necessary = ( strtolower(PHP_OS) == 'win32' && substr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') ); |
|
1535 ?> |
|
1536 <div class="usermessage"> |
|
1537 <b>Your copy of Enano has the Windows mod_rewrite workaround patch enabled.</b><br /> |
|
1538 <?php if ( $patch_necessary ): ?> |
|
1539 If you don't plan to use the Tiny URLs option below, you should go back and re-download Enano without this workaround enabled. |
|
1540 The mod_rewrite issues Enano faces under Windows are caused by a security change in Apache 2.2 that is not present in Apache 2.0. |
|
1541 <a href="http://enanocms.org/windows-patch">Learn more</a> |
|
1542 <?php else: ?> |
|
1543 The Enano installer has detected that you're probably not running Apache 2.2 under Windows. You don't need this workaround |
|
1544 unless you're using this specific software stack. Unless you're sure that you are running Apache 2.2 under Windows on your server, |
|
1545 it is recommended that you disable the <tt>WINDOWS_MOD_REWRITE_WORKAROUNDS</tt> constant in includes/constants.php. |
|
1546 <a href="http://enanocms.org/windows-patch" onclick="window.open(this.href); return false;">Learn more</a> |
|
1547 <?php endif; ?> |
|
1548 </div> |
|
1549 <?php |
|
1550 } |
|
1551 ?> |
1530 <table border="0"> |
1552 <table border="0"> |
1531 <tr><td><b>Website name</b><br />The display name of your website. Allowed characters are uppercase and lowercase letters, numerals, and spaces. This must not be blank or "Enano".</td><td><input onkeyup="verify();" name="sitename" type="text" size="30" /></td><td><img id="s_name" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1553 <tr><td><b>Website name</b><br />The display name of your website. Allowed characters are uppercase and lowercase letters, numerals, and spaces. This must not be blank or "Enano".</td><td><input onkeyup="verify();" name="sitename" type="text" size="30" /></td><td><img id="s_name" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1532 <tr><td><b>Website description</b><br />This text will be shown below the name of your website.</td><td><input onkeyup="verify();" name="sitedesc" type="text" size="30" /></td><td><img id="s_desc" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1554 <tr><td><b>Website description</b><br />This text will be shown below the name of your website.</td><td><input onkeyup="verify();" name="sitedesc" type="text" size="30" /></td><td><img id="s_desc" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1533 <tr><td><b>Copyright info</b><br />This should be a one-line legal notice that will appear at the bottom of all your pages.</td><td><input onkeyup="verify();" name="copyright" type="text" size="30" /></td><td><img id="s_copyright" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1555 <tr><td><b>Copyright info</b><br />This should be a one-line legal notice that will appear at the bottom of all your pages.</td><td><input onkeyup="verify();" name="copyright" type="text" size="30" /></td><td><img id="s_copyright" alt="Good/bad icon" src="images/bad.gif" /></td></tr> |
1534 <tr><td><b>Wiki mode</b><br />This feature allows people to create and edit pages on your site. Enano keeps a history of all page modifications, and you can protect pages to prevent editing.</td><td><input name="wiki_mode" type="checkbox" id="wmcheck" /> <label for="wmcheck">Yes, make my website a wiki.</label></td><td></td></tr> |
1556 <tr><td><b>Wiki mode</b><br />This feature allows people to create and edit pages on your site. Enano keeps a history of all page modifications, and you can protect pages to prevent editing.</td><td><input name="wiki_mode" type="checkbox" id="wmcheck" /> <label for="wmcheck">Yes, make my website a wiki.</label></td><td></td></tr> |