public static function update_ModeS() { global $tmp_dir, $globalDebug; /* if ($globalDebug) echo "Modes : Download..."; update_db::download('http://pp-sqb.mantma.co.uk/basestation_latest.zip',$tmp_dir.'basestation_latest.zip'); if ($globalDebug) echo "Unzip..."; update_db::unzip($tmp_dir.'basestation_latest.zip'); if ($globalDebug) echo "Add to DB..."; $error = update_db::retrieve_modes_sqlite_to_dest($tmp_dir.'/basestation_latest/basestation.sqb'); if ($error != true) { echo $error; exit; } elseif ($globalDebug) echo "Done\n"; */ if ($globalDebug) { echo "Modes : Download..."; } update_db::download('http://planebase.biz/sqb.php?f=basestationall.zip', $tmp_dir . 'basestation_latest.zip', 'http://planebase.biz/bstnsqb'); if (file_exists($tmp_dir . 'basestation_latest.zip')) { if ($globalDebug) { echo "Unzip..."; } update_db::unzip($tmp_dir . 'basestation_latest.zip'); if ($globalDebug) { echo "Add to DB..."; } $error = update_db::retrieve_modes_sqlite_to_dest($tmp_dir . 'BaseStation.sqb'); } else { $error = "File " . $tmp_dir . 'basestation_latest.zip' . " doesn't exist. Download failed."; } if ($error != '') { echo $error; exit; } elseif ($globalDebug) { echo "Done\n"; } }