7d0f019e04f1dde3d4ef9cc2aa720e8f210924a3
2 require("include/session.inc.php");
3 require("include/encoding.inc.php");
4 require("include/format.inc.php");
5 require("include/config.inc.php");
6 require("include/NetNNTP.inc.php");
7 require("include/post.inc.php");
8 require("include/spool.inc.php");
9 require("include/password.inc.php");
10 require("include/profile.inc.php");
11 require("include/wrapper.inc.php");
13 $profile = getprofile();
14 require($profile['locale']);
16 require("include/header.inc.php");
17 $group=htmlentities(strtolower($_REQUEST['group']));
18 $id=htmlentities(strtolower($_REQUEST['id']));
24 $mynntp = new nntp($news['server']);
26 echo "<p class=\"error\">\n\t".$locale['error']['connect']."\n</p>";
27 require("include/footer.inc.php");
30 if ($news['user']!="anonymous") {
31 $result = $mynntp->authinfo($news["user"],$news["pass"]);
33 echo "<p class=\"error\">\n\t".$locale['error']['credentials']
35 require("include/footer.inc.php");
40 if (isset($group) && isset($id) && isset($_REQUEST['type']) &&
41 ($_REQUEST['type']=='followup')) {
42 $rq=$mynntp->group($group);
43 $post = new post($mynntp,$id);
45 $subject = (preg_match("/^re:/i",$post->headers
->subject
)?
"":"Re: ")
46 .$post->headers
->subject
;
47 $body = $post->headers
->name
." wrote :\n".wrap($post->body
, ">");
48 if (isset($post->headers
->followup
))
49 $target=$post->headers
->followup
;
51 $target=$post->headers
->newsgroups
;
58 <?php
echo $locale['post']['title'];?
>
66 <form action
="thread.php" method
="POST">
67 <table
class="bicol" cellpadding
="0" cellspacing
="0" border
="0">
70 <?php
echo $locale['post']['headers'];?
>
75 <?php
echo $locale['post']['name'];?
>
78 <?php
echo htmlentities($profile['name']); ?
>
83 <?php
echo $locale['post']['subject'];?
>
86 <input type
="text" name
="subject" value
="<?php echo
87 (isset($subject)?$subject:"");?>" />
92 <?php
echo $locale['post']['newsgroups'];?
>
95 <input type
="text" name
="newsgroups" value
="<?php echo
96 (isset($target)?$target:"");?>" />
101 <?php
echo $locale['post']['fu2'];?
>
104 <input type
="text" name
="followup" value
="" />
109 <?php
echo $locale['post']['organization'];?
>
112 <?php
echo $profile['org']; ?
>
117 <?php
echo $locale['post']['body'];?
>
122 <textarea name
="body" cols
="90" rows
="10"><?php
echo
123 (isset($body)?
$body:"").($profile['sig']!=''?
"\n\n-- \n"
124 .$profile['sig']:"");?
></textarea
>
128 <td
class="bouton" colspan
="2">
130 if (isset($group) && isset($id) && isset($_REQUEST['type'])
131 && ($_REQUEST['type']=='followup')) {
133 <input type
="hidden" name
="type" value
="followupok" />
134 <input type
="hidden" name
="group" value
="<?php echo $group;?>" />
135 <input type
="hidden" name
="id" value
="<?php echo $id;?> " />
139 <input type
="hidden" name
="type" value
="new" />
143 <input type
="submit" name
="action" value
="OK" />
149 require("include/footer.inc.php");