From: maxious Date: Wed, 04 May 2011 12:52:36 +0000 Subject: Merge branch 'master' of github.com:maxious/ACTBus-ui X-Git-Url: http://maxious.lambdacomplex.org/git/?p=busui.git&a=commitdiff&h=e051ccde1afd2e2fdf38881c4a90ef7f0dbc357e --- Merge branch 'master' of github.com:maxious/ACTBus-ui --- --- a/sitemap.xml.php +++ b/sitemap.xml.php @@ -8,19 +8,15 @@ foreach (scandir("./") as $file) { if (strpos($file,".php") !== false && $file != "index.php" && $file != "sitemap.xml.php") echo " ".curPageURL()."$file0.3\n"; } -$url = $APIurl . "/json/stops"; -$stops = json_decode(getPage($url)); -foreach ($stops as $stop) { - echo " ".curPageURL()."stop.php?stopid=".htmlspecialchars ($stop[0]).""; +foreach (getStops() as $stop) { + echo " ".curPageURL()."stop.php?stopid=".htmlspecialchars ($stop["stop_id"]).""; echo "" . $last_updated . ""; echo "monthly"; echo "0.9"; echo "\n"; } -$url = $APIurl . "/json/routes"; -$routes = json_decode(getPage($url)); -foreach ($routes as $route) { - echo " ".curPageURL()."trip.php?routeid=".htmlspecialchars ($route[0]).""; +foreach (getRoutes() as $route) { + echo " ".curPageURL()."trip.php?routeid=".htmlspecialchars ($route["route_id"]).""; echo "" . $last_updated . ""; echo "monthly"; echo "0.9";