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.2 (Coblynau) |
5 * Version 1.1.1 |
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. |
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.2'); |
26 define('ENANO_VERSION', '1.1.1'); |
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 = ''; |
258 default: |
258 default: |
259 break; |
259 break; |
260 } |
260 } |
261 |
261 |
262 $template = new template_nodb(); |
262 $template = new template_nodb(); |
263 $template->load_theme('oxygen', 'bleu', false); |
263 $template->load_theme('stpatty', 'shamrock', false); |
264 |
264 |
265 $modestrings = Array( |
265 $modestrings = Array( |
266 'welcome' => 'Welcome', |
266 'welcome' => 'Welcome', |
267 'license' => 'License Agreement', |
267 'license' => 'License Agreement', |
268 'sysreqs' => 'Server requirements', |
268 'sysreqs' => 'Server requirements', |
311 { |
311 { |
312 default: |
312 default: |
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-green.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.2 – stable<br /> |
318 <h3>version 1.1.1 – unstable</h3> |
319 <span style="font-weight: normal;">also affectionately known as "coblynau" <tt>:)</tt></span></h3> |
|
320 <?php |
319 <?php |
321 if ( file_exists('./_nightly.php') ) |
320 if ( file_exists('./_nightly.php') ) |
322 { |
321 { |
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>'; |
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>'; |
324 } |
323 } |