uid != 0) {
$fid=$_GET['fid'];
if($fid){
module_load_include('inc','uc_file','uc_file.pages');
$ip = ip_address();
$file_download = uc_file_get_by_id($fid);
$file_download->full_path = uc_file_qualify_file($file_download->filename);
$count=lvh_count_downloads($fid);
if($count<3) {
_uc_file_download_transfer($file_download, $ip);
lvh_log_download($fid);
} else {
drupal_set_message("Sorry download limit is reached.","error");
drupal_goto("node/114");
}
}
} else {
drupal_set_message("Please login to access the download page");
}
?>
Page