Exemplo n.º 1
0
     unset($_SESSION['install']);
     if (!is_writable('tmp')) {
         print '<p><strong>The directory <i>install/tmp</i> must be writable.</strong></p>';
         require '../footer.php';
         exit;
     }
     print '<div class="info column"><ul>';
     foreach ($_SESSION['done'] as $done) {
         print '<li>' . $done . '....<strong>SUCCESS</strong></li>';
     }
     print '<li>Populate translation table with externals data....<img src="../images/loading.gif" /> <i>(Can be very slow)</i><b>If it fails, run install/install_db.php or install/install_db.sh in console, this will finish install</b></li></ul></div>';
     flush();
     @ob_flush();
     include_once 'class.update_db.php';
     $globalDebug = FALSE;
     update_db::update_translation();
     $_SESSION['done'] = array_merge($_SESSION['done'], array('Populate translation table with externals data'));
     if ($_SESSION['waypoints'] == 1) {
         $_SESSION['install'] = 'waypoints';
         unset($_SESSION['waypoints']);
     } elseif (isset($globalNOTAM) && $globalNOTAM && isset($globalNOTAMSource) && $globalNOTAMSource != '') {
         $_SESSION['install'] = 'notam';
     } else {
         $_SESSION['install'] = 'sources';
     }
     //	require('../footer.php');
     //	ob_end_clean();
     //	header("Location: index.php?".rand());
     print "<script>window.location = 'index.php?" . rand() . "&next=" . $_SESSION['install'] . "';</script>";
     //	require('../footer.php');
 } else {
Exemplo n.º 2
0
 public static function update_all()
 {
     update_db::update_routes();
     update_db::update_ModeS();
     update_db::update_translation();
 }