Update site
This commit is contained in:
parent
be50369a77
commit
8a8b820620
2 changed files with 9 additions and 2 deletions
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue