install.php
changeset 149 42c6c83b8a00
parent 142 ca9118d9c0f2
child 152 9b4279c25d33
child 153 9b86248e8fee
equal deleted inserted replaced
144:380e55865f86 149:42c6c83b8a00
    13  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    13  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
    14  */
    14  */
    15  
    15  
    16 @include('config.php');
    16 @include('config.php');
    17 if( ( defined('ENANO_INSTALLED') || defined('MIDGET_INSTALLED') ) && ((isset($_GET['mode']) && ($_GET['mode']!='finish' && $_GET['mode']!='css')) || !isset($_GET['mode']))) {
    17 if( ( defined('ENANO_INSTALLED') || defined('MIDGET_INSTALLED') ) && ((isset($_GET['mode']) && ($_GET['mode']!='finish' && $_GET['mode']!='css')) || !isset($_GET['mode']))) {
    18   $_GET['title'] = 'Enano:WhoCaresWhatThisIs';
    18   $_GET['title'] = 'Enano:Installation_locked';
    19   require('includes/common.php');
    19   require('includes/common.php');
    20   die_friendly('Installation locked', '<p>The Enano installer has found a Enano installation in this directory. You MUST delete config.php if you want to re-install Enano.</p><p>If you wish to upgrade an older Enano installation to this version, please use the <a href="upgrade.php">upgrade script</a>.</p>');
    20   die_friendly('Installation locked', '<p>The Enano installer has found a Enano installation in this directory. You MUST delete config.php if you want to re-install Enano.</p><p>If you wish to upgrade an older Enano installation to this version, please use the <a href="upgrade.php">upgrade script</a>.</p>');
    21   exit;
    21   exit;
    22 }
    22 }
    23 
    23 
    24 define('IN_ENANO_INSTALL', 'true');
    24 define('IN_ENANO_INSTALL', 'true');
    25 
    25 
    26 define('ENANO_VERSION', '1.0.1.1');
    26 define('ENANO_VERSION', '1.0.2');
    27 // In beta versions, define ENANO_BETA_VERSION here
    27 // In beta versions, define ENANO_BETA_VERSION here
    28 
    28 
    29 if(!defined('scriptPath')) {
    29 if(!defined('scriptPath')) {
    30   $sp = dirname($_SERVER['REQUEST_URI']);
    30   $sp = dirname($_SERVER['REQUEST_URI']);
    31   if($sp == '/' || $sp == '\\') $sp = '';
    31   if($sp == '/' || $sp == '\\') $sp = '';
   313   case 'welcome':
   313   case 'welcome':
   314     ?>
   314     ?>
   315     <div style="text-align: center; margin-top: 10px;">
   315     <div style="text-align: center; margin-top: 10px;">
   316       <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" />
   316       <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" />
   317       <h2>Welcome to Enano</h2>
   317       <h2>Welcome to Enano</h2>
   318       <h3>version 1.0.1.1 &ndash; stable<br />
   318       <h3>version 1.0.2 &ndash; stable<br />
   319       <span style="font-weight: normal;">also affectionately known as "loch ness" <tt>:)</tt></span></h3>
   319       <span style="font-weight: normal;">also affectionately known as "coblynau" <tt>:)</tt></span></h3>
   320       <?php
   320       <?php
   321       if ( file_exists('./_nightly.php') )
   321       if ( file_exists('./_nightly.php') )
   322       {
   322       {
   323         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>';
   323         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>';
   324       }
   324       }