install.php
changeset 73 0a74676a2f2f
parent 72 bda11e521e8a
child 80 cb7dde69c301
equal deleted inserted replaced
72:bda11e521e8a 73:0a74676a2f2f
     1 <?php
     1 <?php
       
     2 
     2 /*
     3 /*
     3  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Version 1.0 (Banshee)
     5  * Version 1.0.1 (Loch Ness)
     5  * Copyright (C) 2006-2007 Dan Fuhry
     6  * Copyright (C) 2006-2007 Dan Fuhry
     6  * install.php - handles everything related to installation and initial configuration
     7  * install.php - handles everything related to installation and initial configuration
     7  *
     8  *
     8  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    10  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    20   exit;
    21   exit;
    21 }
    22 }
    22 
    23 
    23 define('IN_ENANO_INSTALL', 'true');
    24 define('IN_ENANO_INSTALL', 'true');
    24 
    25 
    25 define('ENANO_VERSION', '1.0');
    26 define('ENANO_VERSION', '1.0.1');
    26 // In beta versions, define ENANO_BETA_VERSION here
    27 // In beta versions, define ENANO_BETA_VERSION here
    27 
    28 
    28 if(!defined('scriptPath')) {
    29 if(!defined('scriptPath')) {
    29   $sp = dirname($_SERVER['REQUEST_URI']);
    30   $sp = dirname($_SERVER['REQUEST_URI']);
    30   if($sp == '/' || $sp == '\\') $sp = '';
    31   if($sp == '/' || $sp == '\\') $sp = '';
   313     ?>
   314     ?>
   314     <div style="text-align: center; margin-top: 10px;">
   315     <div style="text-align: center; margin-top: 10px;">
   315       <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;" />
   316       <h2>Welcome to Enano</h2>
   317       <h2>Welcome to Enano</h2>
   317       <h3>version 1.0 &ndash; stable<br />
   318       <h3>version 1.0 &ndash; stable<br />
   318       <span style="font-weight: normal;">also affectionately known as "banshee" <tt>:)</tt></span></h3>
   319       <span style="font-weight: normal;">also affectionately known as "loch ness" <tt>:)</tt></span></h3>
   319       <?php
   320       <?php
   320       if ( file_exists('./_nightly.php') )
   321       if ( file_exists('./_nightly.php') )
   321       {
   322       {
   322         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>';
   323       }
   324       }