install.php
changeset 145 6f0bbf88c325
parent 142 ca9118d9c0f2
child 151 9b4279c25d33
child 152 9b86248e8fee
equal deleted inserted replaced
144:380e55865f86 145:6f0bbf88c325
    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.1.1');
    26 define('ENANO_VERSION', '1.0.2');
    27 // In beta versions, define ENANO_BETA_VERSION here
    27 // In beta versions, define ENANO_BETA_VERSION here
       
    28 define('ENANO_BETA_VERSION', '1');
    28 
    29 
    29 if(!defined('scriptPath')) {
    30 if(!defined('scriptPath')) {
    30   $sp = dirname($_SERVER['REQUEST_URI']);
    31   $sp = dirname($_SERVER['REQUEST_URI']);
    31   if($sp == '/' || $sp == '\\') $sp = '';
    32   if($sp == '/' || $sp == '\\') $sp = '';
    32   define('scriptPath', $sp);
    33   define('scriptPath', $sp);
   258   default:
   259   default:
   259     break;
   260     break;
   260 }
   261 }
   261 
   262 
   262 $template = new template_nodb();
   263 $template = new template_nodb();
   263 $template->load_theme('oxygen', 'bleu', false);
   264 $template->load_theme('stpatty', 'shamrock', false);
   264 
   265 
   265 $modestrings = Array(
   266 $modestrings = Array(
   266               'welcome' => 'Welcome',
   267               'welcome' => 'Welcome',
   267               'license' => 'License Agreement',
   268               'license' => 'License Agreement',
   268               'sysreqs' => 'Server requirements',
   269               'sysreqs' => 'Server requirements',
   311 { 
   312 { 
   312   default:
   313   default:
   313   case 'welcome':
   314   case 'welcome':
   314     ?>
   315     ?>
   315     <div style="text-align: center; margin-top: 10px;">
   316     <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;" />
   317       <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>
   318       <h2>Welcome to Enano</h2>
   318       <h3>version 1.0.1.1 &ndash; stable<br />
   319       <h3>version 1.0.2 &ndash; beta 1<br />
   319       <span style="font-weight: normal;">also affectionately known as "loch ness" <tt>:)</tt></span></h3>
   320       <span style="font-weight: normal;">also affectionately known as "coblynau" <tt>:)</tt></span></h3>
   320       <?php
   321       <?php
   321       if ( file_exists('./_nightly.php') )
   322       if ( file_exists('./_nightly.php') )
   322       {
   323       {
   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>';
   324         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       }
   325       }
  1063       $schema = str_replace('{{ENABLE_CACHE}}', mysql_real_escape_string($cacheonoff          ), $schema);
  1064       $schema = str_replace('{{ENABLE_CACHE}}', mysql_real_escape_string($cacheonoff          ), $schema);
  1064       $schema = str_replace('{{REAL_NAME}}',    '',                                              $schema);
  1065       $schema = str_replace('{{REAL_NAME}}',    '',                                              $schema);
  1065       $schema = str_replace('{{TABLE_PREFIX}}', $_POST['table_prefix'],                          $schema);
  1066       $schema = str_replace('{{TABLE_PREFIX}}', $_POST['table_prefix'],                          $schema);
  1066       $schema = str_replace('{{VERSION}}',      ENANO_VERSION,                                   $schema);
  1067       $schema = str_replace('{{VERSION}}',      ENANO_VERSION,                                   $schema);
  1067       $schema = str_replace('{{ADMIN_EMBED_PHP}}', $_POST['admin_embed_php'],                    $schema);
  1068       $schema = str_replace('{{ADMIN_EMBED_PHP}}', $_POST['admin_embed_php'],                    $schema);
  1068       // Not anymore!! :-D
  1069       $schema = str_replace('{{BETA_VERSION}}', ENANO_BETA_VERSION,                              $schema);
  1069       // $schema = str_replace('{{BETA_VERSION}}', ENANO_BETA_VERSION,                              $schema);
       
  1070       
  1070       
  1071       if(isset($_POST['wiki_mode']))
  1071       if(isset($_POST['wiki_mode']))
  1072       {
  1072       {
  1073         $schema = str_replace('{{WIKI_MODE}}', '1', $schema);
  1073         $schema = str_replace('{{WIKI_MODE}}', '1', $schema);
  1074       }
  1074       }