<?php
require_once '../includes/sys.php';
$id = (int) $_GET['id'];
$msg = mysql_fetch_assoc(mysql_query("SELECT `file` FROM `forum_msg` WHERE `id` = '$id'"));
mysql_query("UPDATE `forum_msg` SET `file_loads` = `file_loads` + '1' WHERE `id` = '$id'");
header("Location: /forum/files/".$msg['file']);
exit();
?>