From 57347ffab50aa1901793b2083443882de16d3413 Mon Sep 17 00:00:00 2001 From: jonsowman Date: Mon, 31 May 2010 13:25:38 +0100 Subject: [PATCH 01/23] Accepts old UUIDs in the URL --- predict/ajax.php | 2 +- predict/index.php | 16 ++++++++++------ predict/js/pred.js | 4 ++-- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/predict/ajax.php b/predict/ajax.php index 9bd9e1d..2dc9921 100644 --- a/predict/ajax.php +++ b/predict/ajax.php @@ -6,7 +6,7 @@ $action = $_GET['action']; switch($action) { case "getCSV": $uuid = $_GET['uuid']; - $fh = fopen("preds/".$uuid."/flight_path.csv", "r"); + $fh = fopen("preds/".$uuid."/flight_path.csv", "r") or die("No CSV for UUID"); $data = array(); while (!feof($fh)) { $line = trim(fgets($fh)); diff --git a/predict/index.php b/predict/index.php index b45972b..13b2731 100644 --- a/predict/index.php +++ b/predict/index.php @@ -21,7 +21,7 @@ google.load("jqueryui", "1.8.1");