install.php
changeset 329 e48b1937dfc3
parent 328 17eebd541742
parent 318 eec2dfd2f0a3
child 331 f0eee185880a
equal deleted inserted replaced
328:17eebd541742 329:e48b1937dfc3
     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.5 (Ferrishyn)
     5  * Version 1.0.6 (Roane)
     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.5');
    33 define('ENANO_VERSION', '1.0.6');
    34 define('ENANO_RELEASE_NAME', 'Ferrishyn');
    34 define('ENANO_RELEASE_NAME', 'Roane');
    35 // In beta versions, define ENANO_BETA_VERSION here
    35 // In beta versions, define ENANO_BETA_VERSION here
    36 
    36 
    37 if(!defined('scriptPath')) {
    37 if(!defined('scriptPath')) {
    38   $sp = dirname($_SERVER['REQUEST_URI']);
    38   $sp = dirname($_SERVER['REQUEST_URI']);
    39   if($sp == '/' || $sp == '\\') $sp = '';
    39   if($sp == '/' || $sp == '\\') $sp = '';
  1147 { 
  1147 { 
  1148   default:
  1148   default:
  1149   case 'welcome':
  1149   case 'welcome':
  1150     ?>
  1150     ?>
  1151     <div style="text-align: center; margin-top: 10px;">
  1151     <div style="text-align: center; margin-top: 10px;">
  1152       <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 100px;" />
  1152       <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 114px;" />
  1153       <h2>Welcome to Enano</h2>
  1153       <h2>Welcome to Enano</h2>
  1154       <h3>Version <?php echo ENANO_VERSION; ?> &ndash; stable<br />
  1154       <h3>Version <?php echo ENANO_VERSION; ?> &ndash; stable<br />
  1155       <span style="font-weight: normal;">also affectionately known as "<?php echo strtolower(ENANO_RELEASE_NAME); ?>" <tt>:)</tt></span></h3>
  1155       <span style="font-weight: normal;">also affectionately known as "<?php echo strtolower(ENANO_RELEASE_NAME); ?>" <tt>:)</tt></span></h3>
  1156       <?php
  1156       <?php
  1157       if ( file_exists('./_nightly.php') )
  1157       if ( file_exists('./_nightly.php') )
  1529       ?>
  1529       ?>
  1530       <p>The next step is to enter some information about your website. You can always change this information later, using the administration panel.</p>
  1530       <p>The next step is to enter some information about your website. You can always change this information later, using the administration panel.</p>
  1531       <?php
  1531       <?php
  1532       if ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') )
  1532       if ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') )
  1533       {
  1533       {
  1534         $patch_necessary = ( strtolower(PHP_OS) == 'win32' && strstr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
  1534         $patch_necessary = ( ( strtolower(PHP_OS) == 'win32' || strtolower(PHP_OS) == 'winnt' ) && strstr(@$_SERVER['SERVER_SOFTWARE'], 'Apache/2.2') );
  1535         ?>
  1535         ?>
  1536           <div class="usermessage">
  1536           <div class="usermessage">
  1537             <b>Your copy of Enano has the Windows mod_rewrite workaround patch enabled.</b><br />
  1537             <b>Your copy of Enano has the Windows mod_rewrite workaround patch enabled.</b><br />
  1538             <?php if ( $patch_necessary ): ?>
  1538             <?php if ( $patch_necessary ): ?>
  1539               If you don't plan to use the Tiny URLs option below, you should go back and re-download Enano without this workaround enabled.
  1539               If you don't plan to use the Tiny URLs option below, you should go back and re-download Enano without this workaround enabled.