upgrade.php
changeset 297 ee1fc84f12a8
parent 290 1201c9412cb6
child 304 e2cb5f1432c8
child 306 8e898ab809b5
equal deleted inserted replaced
296:fb3df5ce6c9e 297:ee1fc84f12a8
    91 $func_list = Array(
    91 $func_list = Array(
    92     '1.0' => Array('u_1_0_1_update_del_votes'),
    92     '1.0' => Array('u_1_0_1_update_del_votes'),
    93     '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'), // ,
    93     '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'), // ,
    94     // '1.0RC2' => Array('u_1_0_populate_userpage_comments')
    94     // '1.0RC2' => Array('u_1_0_populate_userpage_comments')
    95     '1.0RC3' => Array('u_1_0_RC3_make_users_extra'),
    95     '1.0RC3' => Array('u_1_0_RC3_make_users_extra'),
    96     '1.0.2b1' => Array('u_1_0_2_nuke_template_cache')
    96     '1.0.2b1' => Array('u_1_0_2_nuke_template_cache', 'u_1_0_2_rebuild_search_index')
    97   );
    97   );
    98 
    98 
    99 if(!isset($_GET['mode'])) 
    99 if(!isset($_GET['mode'])) 
   100 {
   100 {
   101   $_GET['mode'] = 'login';
   101   $_GET['mode'] = 'login';
   453     if ( preg_match('/\.tpl\.php$/', $fname) )
   453     if ( preg_match('/\.tpl\.php$/', $fname) )
   454     {
   454     {
   455       unlink( ENANO_ROOT . '/cache/' . $fname );
   455       unlink( ENANO_ROOT . '/cache/' . $fname );
   456     }
   456     }
   457   }
   457   }
       
   458 }
       
   459 
       
   460 function u_1_0_2_rebuild_search_index()
       
   461 {
       
   462   global $paths;
       
   463   @set_time_limit(0);
       
   464   $paths->rebuild_search_index();
   458 }
   465 }
   459 
   466 
   460 switch($_GET['mode'])
   467 switch($_GET['mode'])
   461 {
   468 {
   462   case "login":
   469   case "login":