2 header("Expires: ".gmdate("D, d M Y H:i:s",time()+(3600*24))." GMT");
7 $group=$_REQUEST["group"];
9 include "config.inc.php";
12 $thread_show["replies"]=true;
13 $thread_show["lastdate"]=false;
14 $thread_show["threadsize"]=false;
18 include "$file_newsportal";
20 $message=message_read($id,0,$group);
22 header ("HTTP/1.0 404 Not Found");
24 $title.=' - Article not found';
28 $subject=htmlspecialchars($message->header->subject);
29 header("Last-Modified: ".date("r", $message->header->date));
30 $title.= ' - '.$subject;
34 // has the user read-rights on this article?
35 if((function_exists("npreg_group_has_read_access") &&
36 !npreg_group_has_read_access($group)) ||
37 (function_exists("npreg_group_is_visible") &&
38 !npreg_group_is_visible($group))) {
47 <h1 class="np_article_headline"><?=htmlspecialchars($subject) ?></h1>
49 <table cellpadding="0" cellspacing="0" width="100%" class="np_buttonbar"><tr>
51 echo '<td class="np_button"><a class="np_button" href="'.
52 $file_index.'">'.$text_thread["button_grouplist"].'</a></td>';
53 echo '<td class="np_button"><a class="np_button" href="'.
54 $file_thread.'?group='.urlencode($group).'">'.$text_article["back_to_group"].'</a></td>';
55 if ((!$readonly) && ($message) &&
56 (!function_exists("npreg_group_has_write_access") ||
57 npreg_group_has_write_access($group)))
58 echo '<td class="np_button"> <a class="np_button" href="'.
59 $file_post.'?type=reply&id='.urlencode($id).
60 '&group='.urlencode($group).'">'.$text_article["button_answer"].
63 if(function_exists(npreg_user_is_moderator) && npreg_user_is_moderator($group)) {
64 echo '<td class="np_button"><a class="np_button" href="'.$file_cancel.'?type=reply&id='.urlencode($id).
65 '&group='.urlencode($group).'">'.$text_article["button_cancel"].'</a></td>';
69 <td width="100%"> </td></tr></table>
74 echo $text_error["article_not_found"];
76 if($article_showthread)
77 $thread=thread_cache_load($group);
79 message_show($group,$id,0,$message);
80 if($article_showthread)
81 message_thread($message->header->id,$group,$thread);