/**
  * Test installing
  */
 function testInstall()
 {
     // NOTE: this is the same as with install action "newdb":
     install_newdb();
 }
Beispiel #2
0
         }
         // Stop the animation of the progress bar
         stop_install_progress_bar();
         break;
     }
     echo '<h2>' . T_('Checking files...') . '</h2>';
     evo_flush();
     // Check for .htaccess:
     if (!install_htaccess(false)) {
         // Exit installation here because the .htaccess file has the some errors
         break;
     }
     // Update the progress bar status
     update_install_progress_bar();
     // Here's the meat!
     install_newdb();
     // Stop the animation of the progress bar
     stop_install_progress_bar();
     break;
 case 'evoupgrade':
 case 'auto_upgrade':
 case 'svn_upgrade':
     /*
      * -----------------------------------------------------------------------------------
      * EVO UPGRADE: Upgrade data from existing b2evolution database
      * -----------------------------------------------------------------------------------
      */
     track_step('upgrade-start');
     require_once dirname(__FILE__) . '/_functions_evoupgrade.php';
     // Progress bar
     start_install_progress_bar(T_('Uprade in progress'), get_upgrade_steps_count());