upgrade.php
changeset 16 64e0d3d4cf14
parent 0 902822492a68
child 21 663fcf528726
equal deleted inserted replaced
15:ad5986a53197 16:64e0d3d4cf14
     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 (Banshee)
     5  * Version 1.0 release candidate 3 (Druid)
     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.
    60     '1.0b2' => Array('1.0b3'),
    60     '1.0b2' => Array('1.0b3'),
    61     '1.0b3' => Array('1.0b4'),
    61     '1.0b3' => Array('1.0b4'),
    62     '1.0b4' => Array('1.0RC1'),
    62     '1.0b4' => Array('1.0RC1'),
    63     '1.0RC1' => Array('1.0RC2')
    63     '1.0RC1' => Array('1.0RC2')
    64   );
    64   );
    65 $this_version   = '1.0';
    65 $this_version   = '1.0RC3';
    66 $func_list = Array(
    66 $func_list = Array(
    67     '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'),
    67     '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') // ,
    68     '1.0RC2' => Array('u_1_0_populate_userpage_comments')
    68     // '1.0RC2' => Array('u_1_0_populate_userpage_comments')
    69   );
    69   );
    70 
    70 
    71 if(!isset($_GET['mode'])) 
    71 if(!isset($_GET['mode'])) 
    72 {
    72 {
    73   $_GET['mode'] = 'login';
    73   $_GET['mode'] = 'login';
   337   }
   337   }
   338 }
   338 }
   339 
   339 
   340 function u_1_0_populate_userpage_comments()
   340 function u_1_0_populate_userpage_comments()
   341 {
   341 {
       
   342   /*
   342   global $db;
   343   global $db;
   343   $q = $db->sql_query('SELECT COUNT(c.comment_id) AS num_comments...');
   344   $q = $db->sql_query('SELECT COUNT(c.comment_id) AS num_comments...');
   344   if ( !$q )
   345   if ( !$q )
   345     $db->_die();
   346     $db->_die();
   346   
   347   
   347   while ( $row = $db->fetchrow() )
   348   while ( $row = $db->fetchrow() )
   348   {
   349   {
   349     
   350     
   350   }
   351   }
       
   352   */
   351 }
   353 }
   352 
   354 
   353 switch($_GET['mode'])
   355 switch($_GET['mode'])
   354 {
   356 {
   355   case "login":
   357   case "login":