--- a/sitemap.xml.php +++ b/sitemap.xml.php @@ -3,29 +3,39 @@ $last_updated = date('Y-m-d',@filemtime('cbrfeed.zip')); header("Content-Type: text/xml"); echo ""; - echo '' . "\n"; + echo '' . "\n"; echo " ".curPageURL()."index.php1.0\n"; 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 (scandir("./labs") as $file) { + if (strpos($file,".php") !== false) echo " ".curPageURL()."/labs/$file0.3\n"; +} +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"; echo "\n"; } + + // geosite map + foreach (getRoutes() as $route) { + echo " ".curPageURL()."geo/route.kml.php?routeid=".htmlspecialchars ($route["route_id"]).""; + echo "" . $last_updated . ""; + echo " + kml + "; + echo "\n"; + } + echo ''; ?>