| 1 |
<? |
| 2 |
header("Expires: ".gmdate("D, d M Y H:i:s",time()+(3600*24))." GMT"); |
| 3 |
$url=explode("/",$PATH_INFO); |
| 4 |
$group=$url[1]; |
| 5 |
$id=$url[2]; |
| 6 |
$attachment=$url[3]; |
| 7 |
include "config.inc"; |
| 8 |
require("$file_newsportal"); |
| 9 |
if (!isset($attachment)) |
| 10 |
$attachment=0; |
| 11 |
$message=read_message($id,$attachment,$group); |
| 12 |
if (!$message) { |
| 13 |
header ("HTTP/1.0 404 Not Found"); |
| 14 |
echo "The Attachment doesn't exists"; |
| 15 |
} else { |
| 16 |
header("Content-type: ".$message->header->content_type[$attachment]); |
| 17 |
show_article("",$id,$attachment,$message); |
| 18 |
} |
| 19 |
?> |