--- a/sitemap.xml.php +++ b/sitemap.xml.php @@ -1,39 +1,63 @@ "; - echo '' . "\n"; - echo " ".curPageURL()."index.php1.0\n"; +echo '' .PHP_EOL; +echo " " . curPageURL() . "index.php1.0".PHP_EOL; foreach (scandir("./") as $file) { - if (strpos($file,".php") !== false && $file != "index.php" && $file != "sitemap.xml.php") echo " ".curPageURL()."$file0.3\n"; + if (strpos($file, ".php") !== false && $file != "index.php" && $file != "sitemap.xml.php") + echo " " . curPageURL() . "$file0.3".PHP_EOL; +} +foreach (scandir("./labs") as $file) { + if (strpos($file, ".php") !== false) + echo " " . curPageURL() . "/labs/$file0.3".PHP_EOL; +} +foreach (scandir("./myway") as $file) { + if (strpos($file, ".php") !== false) + echo " " . curPageURL() . "/myway/$file0.3".PHP_EOL; } foreach (getStops() as $stop) { - echo " ".curPageURL()."stop.php?stopid=".htmlspecialchars ($stop["stop_id"]).""; - echo "" . $last_updated . ""; - echo "monthly"; - echo "0.9"; - echo "\n"; - } + echo " " . curPageURL() . "stop.php?stopid=" . htmlspecialchars($stop["stop_id"]) . ""; + echo "" . $last_updated . ""; + echo "monthly"; + echo "0.9"; + echo "".PHP_EOL; +} 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 " + echo " " . curPageURL() . "trip.php?routeid=" . htmlspecialchars($route["route_id"]) . ""; + echo "" . $last_updated . ""; + echo "monthly"; + echo "0.9"; + echo "".PHP_EOL; +} + +// 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 ''; + echo "".PHP_EOL; +} +echo ''; ?>