don't update the download statistics anymore, we have awstats for this
This commit is contained in:
parent
7eb5fc0fd4
commit
b3f0dbf4a0
1 changed files with 4 additions and 3 deletions
|
@ -75,9 +75,10 @@ function update_count_of_downloads($file) {
|
||||||
die(1);
|
die(1);
|
||||||
}
|
}
|
||||||
$file = $_GET['file'];
|
$file = $_GET['file'];
|
||||||
if(!isset($_SERVER['HTTP_RANGE']) ) {
|
//Victor says not needed if we have awstats statistics per file
|
||||||
update_count_of_downloads($file) ;
|
//if(!isset($_SERVER['HTTP_RANGE']) ) {
|
||||||
}
|
// update_count_of_downloads($file) ;
|
||||||
|
//}
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
if(isset($_GET['direct']) or !url_exists('http://osmand.googlecode.com/files/'.$file)) {
|
if(isset($_GET['direct']) or !url_exists('http://osmand.googlecode.com/files/'.$file)) {
|
||||||
downloadFile('indexes/'.$file);
|
downloadFile('indexes/'.$file);
|
||||||
|
|
Loading…
Reference in a new issue