示例#1
0
     }
     sleep(2);
     print "<script>window.location = 'index.php?" . rand() . "&next=" . $_SESSION['install'] . "';</script>";
     //	require('../footer.php');
 } else {
     if (isset($_SESSION['install']) && $_SESSION['install'] == 'waypoints') {
         unset($_SESSION['install']);
         print '<div class="info column"><ul>';
         foreach ($_SESSION['done'] as $done) {
             print '<li>' . $done . '....<strong>SUCCESS</strong></li>';
         }
         print '<li>Populate waypoints database....<img src="../images/loading.gif" /></li></ul></div>';
         flush();
         @ob_flush();
         include_once 'class.update_db.php';
         update_db::update_waypoints();
         $_SESSION['done'] = array_merge($_SESSION['done'], array('Populate waypoints database'));
         $_SESSION['install'] = 'airspace';
         //	ob_end_clean();
         //	header("Location: index.php?".rand());
         print "<script>window.location = 'index.php?" . rand() . "&next=" . $_SESSION['install'] . "';</script>";
         //	require('../footer.php');
     } else {
         if (isset($_SESSION['install']) && $_SESSION['install'] == 'airspace') {
             unset($_SESSION['install']);
             print '<div class="info column"><ul>';
             foreach ($_SESSION['done'] as $done) {
                 print '<li>' . $done . '....<strong>SUCCESS</strong></li>';
             }
             print '<li>Populate airspace database....<img src="../images/loading.gif" /></li></ul></div>';
             flush();