upgrade.php
changeset 318 eec2dfd2f0a3
parent 293 fbe306070c40
child 331 f0eee185880a
equal deleted inserted replaced
317:12e099193850 318:eec2dfd2f0a3
     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  * upgrade.php - upgrade script
     6  * upgrade.php - upgrade script
     7  * Copyright (C) 2006-2007 Dan Fuhry
     7  * Copyright (C) 2006-2007 Dan Fuhry
     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.
    68 
    68 
    69 // SCRIPT CONFIGURATION
    69 // SCRIPT CONFIGURATION
    70 // Everything related to versions goes here!
    70 // Everything related to versions goes here!
    71 
    71 
    72 // Valid versions to upgrade from
    72 // Valid versions to upgrade from
    73 $valid_versions = Array('1.0b1', '1.0b2', '1.0b3', '1.0b4', '1.0RC1', '1.0RC2', '1.0RC3', '1.0', '1.0.1', '1.0.1.1', '1.0.2b1', '1.0.2', '1.0.3', '1.0.4');
    73 $valid_versions = Array('1.0b1', '1.0b2', '1.0b3', '1.0b4', '1.0RC1', '1.0RC2', '1.0RC3', '1.0', '1.0.1', '1.0.1.1', '1.0.2b1', '1.0.2', '1.0.3', '1.0.4', '1.0.5');
    74 
    74 
    75 // Basically a list of dependencies, which should be resolved automatically
    75 // Basically a list of dependencies, which should be resolved automatically
    76 // If, for example, upgrading from 1.0b1 to 1.0RC1 requires one extra query that would not
    76 // If, for example, upgrading from 1.0b1 to 1.0RC1 requires one extra query that would not
    77 // normally be required (for whatever reason) then you would add a custom version number to the array under key '1.0b1'.
    77 // normally be required (for whatever reason) then you would add a custom version number to the array under key '1.0b1'.
    78 $deps_list = Array(
    78 $deps_list = Array(
    86     '1.0' => Array('1.0.1'),
    86     '1.0' => Array('1.0.1'),
    87     '1.0.1' => Array('1.0.1.1'),
    87     '1.0.1' => Array('1.0.1.1'),
    88     '1.0.1.1' => Array('1.0.2b1'),
    88     '1.0.1.1' => Array('1.0.2b1'),
    89     '1.0.2b1' => Array('1.0.2'),
    89     '1.0.2b1' => Array('1.0.2'),
    90     '1.0.2' => Array('1.0.3'),
    90     '1.0.2' => Array('1.0.3'),
    91     '1.0.3' => Array('1.0.4')
    91     '1.0.3' => Array('1.0.4'),
       
    92     '1.0.4' => Array('1.0.5')
    92   );
    93   );
    93 $this_version   = '1.0.5';
    94 $this_version   = '1.0.6';
    94 $func_list = Array(
    95 $func_list = Array(
    95     '1.0' => Array('u_1_0_1_update_del_votes'),
    96     '1.0' => Array('u_1_0_1_update_del_votes'),
    96     '1.0b4' => Array('u_1_0_RC1_update_user_ids', 'u_1_0_RC1_add_admins_to_group', 'u_1_0_RC1_alter_files_table', 'u_1_0_RC1_destroy_session_cookie', 'u_1_0_RC1_set_contact_email', 'u_1_0_RC1_update_page_text'), // ,
    97     '1.0b4' => Array('u_1_0_RC1_update_user_ids', 'u_1_0_RC1_add_admins_to_group', 'u_1_0_RC1_alter_files_table', 'u_1_0_RC1_destroy_session_cookie', 'u_1_0_RC1_set_contact_email', 'u_1_0_RC1_update_page_text'), // ,
    97     // '1.0RC2' => Array('u_1_0_populate_userpage_comments')
    98     // '1.0RC2' => Array('u_1_0_populate_userpage_comments')
    98     '1.0RC3' => Array('u_1_0_RC3_make_users_extra'),
    99     '1.0RC3' => Array('u_1_0_RC3_make_users_extra'),
   561     require('config.php');
   562     require('config.php');
   562     
   563     
   563     ?>
   564     ?>
   564     
   565     
   565     <div style="text-align: center; margin-top: 10px;">
   566     <div style="text-align: center; margin-top: 10px;">
   566       <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 134px;" />
   567       <img alt="[ Enano CMS Project logo ]" src="images/enano-artwork/installer-greeting-blue.png" style="display: block; margin: 0 auto; padding-left: 114px;" />
   567       <h2>Welcome to the Enano upgrade wizard</h2>
   568       <h2>Welcome to the Enano upgrade wizard</h2>
   568       <?php
   569       <?php
   569       if ( file_exists('./_nightly.php') )
   570       if ( file_exists('./_nightly.php') )
   570       {
   571       {
   571         echo '<div class="warning-box" style="text-align: left; margin: 10px auto; display: table; width: 60%;"><b>You are about to upgrade to a NIGHTLY BUILD of Enano.</b><br />Nightly builds CANNOT be re-upgraded to the final release. They may also contain serious flaws, security problems, or extraneous debugging information. Continuing this process on a production site is NOT recommended.</div>';
   572         echo '<div class="warning-box" style="text-align: left; margin: 10px auto; display: table; width: 60%;"><b>You are about to upgrade to a NIGHTLY BUILD of Enano.</b><br />Nightly builds CANNOT be re-upgraded to the final release. They may also contain serious flaws, security problems, or extraneous debugging information. Continuing this process on a production site is NOT recommended.</div>';