Update site

This commit is contained in:
Victor Shcherb 2012-11-13 23:11:29 +01:00
parent be50369a77
commit 8a8b820620
2 changed files with 9 additions and 2 deletions

View file

@ -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');

View file

@ -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;
}