install.php
changeset 256 f8356d9c3481
parent 243 c9e192a059c1
child 261 5f1cd51bf1be
equal deleted inserted replaced
255:c74736571f43 256:f8356d9c3481
     1 <?php
     1 <?php
     2 
     2 
     3 /*
     3 /*
     4  * 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
     5  * Version 1.0.2 (Coblynau)
     5  * Version 1.0.3 (Dyrad)
     6  * Copyright (C) 2006-2007 Dan Fuhry
     6  * Copyright (C) 2006-2007 Dan Fuhry
     7  * install.php - handles everything related to installation and initial configuration
     7  * install.php - handles everything related to installation and initial configuration
     8  *
     8  *
     9  * 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
    10  * 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.
    22   exit;
    22   exit;
    23 }
    23 }
    24 
    24 
    25 define('IN_ENANO_INSTALL', 'true');
    25 define('IN_ENANO_INSTALL', 'true');
    26 
    26 
    27 define('ENANO_VERSION', '1.0.2');
    27 define('ENANO_VERSION', '1.0.3');
    28 // In beta versions, define ENANO_BETA_VERSION here
    28 // In beta versions, define ENANO_BETA_VERSION here
    29 
    29 
    30 if(!defined('scriptPath')) {
    30 if(!defined('scriptPath')) {
    31   $sp = dirname($_SERVER['REQUEST_URI']);
    31   $sp = dirname($_SERVER['REQUEST_URI']);
    32   if($sp == '/' || $sp == '\\') $sp = '';
    32   if($sp == '/' || $sp == '\\') $sp = '';
   957   case 'welcome':
   957   case 'welcome':
   958     ?>
   958     ?>
   959     <div style="text-align: center; margin-top: 10px;">
   959     <div style="text-align: center; margin-top: 10px;">
   960       <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" />
   960       <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" />
   961       <h2>Welcome to Enano</h2>
   961       <h2>Welcome to Enano</h2>
   962       <h3>version 1.0.2 &ndash; stable<br />
   962       <h3>Version 1.0.3 &ndash; stable<br />
   963       <span style="font-weight: normal;">also affectionately known as "coblynau" <tt>:)</tt></span></h3>
   963       <span style="font-weight: normal;">also affectionately known as "coblynau" <tt>:)</tt></span></h3>
   964       <?php
   964       <?php
   965       if ( file_exists('./_nightly.php') )
   965       if ( file_exists('./_nightly.php') )
   966       {
   966       {
   967         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>';
   967         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>';