From 8a8b820620a10624298c5c28f93fab6a24fd1328 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 13 Nov 2012 23:11:29 +0100 Subject: [PATCH] Update site --- config/site/download.php | 6 ++++-- config/site/update_indexes.php | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config/site/download.php b/config/site/download.php index 18d94be811..9d13e42783 100755 --- a/config/site/download.php +++ b/config/site/download.php @@ -77,7 +77,7 @@ function update_count_of_downloads($file) { die(1); } $file = $_GET['file']; - // not used now + // not used now if(!isset($_SERVER['HTTP_RANGE']) ) { // old version // update_count_of_downloads($file) ; @@ -117,7 +117,9 @@ function update_count_of_downloads($file) { $res = $xml->xpath('//region[@name="'.$file.'"]'); if (count($res) > 0) { $node = $res[0]; - if($node["local"]) { + if(isset($_GET['road'])){ + downloadFile('road-indexes/'.$file); + } else if($node["local"]) { downloadFile('indexes/'.$file); } else { header('HTTP/1.1 302 Found'); diff --git a/config/site/update_indexes.php b/config/site/update_indexes.php index 323081d762..7b31ad266e 100644 --- a/config/site/update_indexes.php +++ b/config/site/update_indexes.php @@ -151,7 +151,12 @@ function updateGoogleCodeIndexes($update=false) { $out -> setAttribute("date", $date); $out -> setAttribute("local", "true"); $out -> setAttribute("size", $size); + $out -> setAttribute("roads", $size); $out -> setAttribute("name", $indexName); + if (file_exists('road-indexes/'.$filename)) { + $out -> setAttribute("road_file", "yes"); + } + $out -> setAttribute("description", $description); //$mapNodes[$indexName] = $out; }