/[suikacvs]/messaging/newsportal/attachment.php
Suika

Contents of /messaging/newsportal/attachment.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Sat Dec 1 11:17:31 2001 UTC (23 years ago) by wakaba
Branch: suika, MAIN
CVS Tags: initial, HEAD
Changes since 1.1: +0 -0 lines

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 ?>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24