equal
deleted
inserted
replaced
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.3 (Dyrad) |
5 * Version 1.0.4 (Ellyyllon) |
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. |
28 return ((float)$usec + (float)$sec); |
28 return ((float)$usec + (float)$sec); |
29 } |
29 } |
30 |
30 |
31 define('IN_ENANO_INSTALL', 'true'); |
31 define('IN_ENANO_INSTALL', 'true'); |
32 |
32 |
33 define('ENANO_VERSION', '1.0.3'); |
33 define('ENANO_VERSION', '1.0.4'); |
34 // In beta versions, define ENANO_BETA_VERSION here |
34 // In beta versions, define ENANO_BETA_VERSION here |
35 |
35 |
36 if(!defined('scriptPath')) { |
36 if(!defined('scriptPath')) { |
37 $sp = dirname($_SERVER['REQUEST_URI']); |
37 $sp = dirname($_SERVER['REQUEST_URI']); |
38 if($sp == '/' || $sp == '\\') $sp = ''; |
38 if($sp == '/' || $sp == '\\') $sp = ''; |
1144 case 'welcome': |
1144 case 'welcome': |
1145 ?> |
1145 ?> |
1146 <div style="text-align: center; margin-top: 10px;"> |
1146 <div style="text-align: center; margin-top: 10px;"> |
1147 <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" /> |
1147 <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" /> |
1148 <h2>Welcome to Enano</h2> |
1148 <h2>Welcome to Enano</h2> |
1149 <h3>Version 1.0.3 – stable<br /> |
1149 <h3>Version 1.0.4 – stable<br /> |
1150 <span style="font-weight: normal;">also affectionately known as "coblynau" <tt>:)</tt></span></h3> |
1150 <span style="font-weight: normal;">also affectionately known as "ellyyllon" <tt>:)</tt></span></h3> |
1151 <?php |
1151 <?php |
1152 if ( file_exists('./_nightly.php') ) |
1152 if ( file_exists('./_nightly.php') ) |
1153 { |
1153 { |
1154 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>'; |
1154 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>'; |
1155 } |
1155 } |