public static function update_all() { update_db::update_routes(); update_db::update_ModeS(); update_db::update_ModeS_flarm(); update_db::update_ModeS_ogn(); update_db::update_translation(); update_db::update_translation_fam(); }
$_SESSION['next'] = 'Insert data in source table'; $result = array('error' => $error, 'done' => $_SESSION['done'], 'next' => $_SESSION['next'], 'install' => $_SESSION['install']); print json_encode($result); } } else { if (isset($_SESSION['install']) && $_SESSION['install'] == 'populate') { if (!is_writable('tmp')) { $error = 'The directory <i>install/tmp</i> must be writable.'; $result = array('error' => $error, 'done' => $_SESSION['done'], 'next' => $_SESSION['next'], 'install' => $_SESSION['install']); print json_encode($result); } else { include_once 'class.update_db.php'; $globalDebug = FALSE; update_db::update_ModeS(); update_db::update_ModeS_flarm(); update_db::update_ModeS_ogn(); $_SESSION['done'] = array_merge($_SESSION['done'], array('Populate aircraft_modes table with externals data')); if (isset($globalVATSIM) && $globalVATSIM && (isset($globalIVAO) && $globalIVAO)) { $_SESSION['install'] = 'vatsim'; if (file_exists('tmp/ivae_feb2013.zip')) { $_SESSION['next'] = 'Insert IVAO data'; } else { $_SESSION['next'] = 'Insert VATSIM data'; } } elseif (isset($globalVATSIM) && $globalVATSIM) { $_SESSION['install'] = 'vatsim'; $_SESSION['next'] = 'Insert VATSIM data'; } elseif (isset($globalIVAO) && $globalIVAO) { $_SESSION['install'] = 'vatsim'; if (file_exists('tmp/ivae_feb2013.zip')) { $_SESSION['next'] = 'Insert IVAO data';