<?php
#$Id: getFile.inc.php,v 1.1 2006/04/24 19:42:44 ryan Exp $
class getFile {
function getFile(){
$this->core = new core();
if ($_GET[file_name]){
$this->core->db->query("update forums_posts set file_downloads = file_downloads + 1 where post_id = '$_GET[post_id]'");
$file = "files/" . $_GET[file_name];
header("Location: $file");
exit();
// header("Content-Type: $file_type; name='$verbose'");
// if ($this->thumb != 1){ header("Content-Disposition: attachment; filename=$file_name"); }
}
else {
die("FILE FAILED");
}
}
}