2 require("locales/locales.inc.php");
3 require("include/session.inc.php");
4 require("include/encoding.inc.php");
5 require("include/format.inc.php");
6 require("include/config.inc.php");
7 require("include/NetNNTP.inc.php");
8 require("include/post.inc.php");
9 require("include/spool.inc.php");
10 require("include/password.inc.php");
11 require("include/profile.inc.php");
12 require("include/wrapper.inc.php");
14 require("include/header.inc.php");
15 $profile = getprofile();
16 $group=htmlentities(strtolower($_REQUEST['group']));
17 $id=htmlentities(strtolower($_REQUEST['id']));
23 $mynntp = new nntp($news['server']);
25 echo "<p class=\"error\">\n\t".$locale['error']['connect']."\n</p>";
26 require("include/footer.inc.php");
29 if ($news['user']!="anonymous") {
30 $result = $mynntp->authinfo($news["user"],$news["pass"]);
32 echo "<p class=\"error\">\n\t".$locale['error']['credentials']
34 require("include/footer.inc.php");
39 if (isset($group) && isset($id) && isset($_REQUEST['type']) &&
40 ($_REQUEST['type']=='followup')) {
41 $rq=$mynntp->group($group);
42 $post = new post($mynntp,$id);
44 $subject = (preg_match("/^re:/i",$post->headers
->subject
)?
"":"Re: ")
45 .$post->headers
->subject
;
46 $body = $post->headers
->name
." wrote :\n".wrap($post->body
, ">");
47 if (isset($post->headers
->followup
))
48 $target=$post->headers
->followup
;
50 $target=$post->headers
->newsgroups
;
57 <?php
echo $locale['post']['title'];?
>
65 <form action
="thread.php" method
="POST">
66 <table
class="bicol" cellpadding
="0" cellspacing
="0" border
="0">
69 <?php
echo $locale['post']['headers'];?
>
74 <?php
echo $locale['post']['name'];?
>
77 <?php
echo htmlentities($profile['name']); ?
>
82 <?php
echo $locale['post']['subject'];?
>
85 <input type
="text" name
="subject" value
="<?php echo
86 (isset($subject)?$subject:"");?>" />
91 <?php
echo $locale['post']['newsgroups'];?
>
94 <input type
="text" name
="newsgroups" value
="<?php echo
95 (isset($target)?$target:"");?>" />
100 <?php
echo $locale['post']['fu2'];?
>
103 <input type
="text" name
="followup" value
="" />
108 <?php
echo $locale['post']['organization'];?
>
111 <?php
echo $profile['org']; ?
>
116 <?php
echo $locale['post']['body'];?
>
121 <textarea name
="body" cols
="90" rows
="10"><?php
echo
122 (isset($body)?
$body:"").($profile['sig']!=''?
"\n\n-- \n"
123 .$profile['sig']:"");?
></textarea
>
127 <td
class="bouton" colspan
="2">
129 if (isset($group) && isset($id) && isset($_REQUEST['type'])
130 && ($_REQUEST['type']=='followup')) {
132 <input type
="hidden" name
="type" value
="followupok" />
133 <input type
="hidden" name
="group" value
="<?php echo $group;?>" />
134 <input type
="hidden" name
="id" value
="<?php echo $id;?> " />
138 <input type
="hidden" name
="type" value
="new" />
142 <input type
="submit" name
="action" value
="OK" />
148 require("include/footer.inc.php");