</div>
<?php
-if (($_GET['type']=='cancel') && (checkcancel($post->headers))) {
+if (isset($_GET['type']) && ($_GET['type']=='cancel') && (checkcancel($post->headers))) {
?>
<p class="error">
<?php echo $locale['article']['cancel'];?>
function newnews($_since,$_groups="*",$_distributions="") {
$distributions = preg_replace("/(\r|\n)/","",$_distributions);
$groups = preg_replace("/(\r|\n)/","",$_groups);
+ $array=array();
#assume $since is a unix timestamp
$this->pline("NEWNEWS $_groups ".gmdate("ymd His",$_since)
." GMT $distributions\r\n");
$this->name = trim($match[3]);
$this->mail = $match[1]."@".$match[2];
}
- $this->nb=$id;
+ $this->nb=$_id;
$retour->numerr=0;
}
}
"$first-$last"));
$refs = $_nntp->xhdr("References","$first-$last");
# $this->date=$nntp->date;
- if ($this->ids) {
+ if (isset($this->ids)) {
$this->ids=array_merge($this->ids,array_flip($msgids));
} else {
$this->ids=array_flip($msgids);
$p = $msg->parent;
while ($p) {
$this->overview[$p]->desc++;
- $p = $this->overview[$p]->parent;
+ if (isset($this->overview[$p]->parent)) {
+ $p = $this->overview[$p]->parent;
+ } else {
+ $p = false;
+ }
}
if ($msg->parent!="")
$this->overview[$msg->parent]->children[]=$id;
} else {
$group=htmlentities(strtolower(strtok(str_replace(" ","",$_REQUEST['newsgroups']),",")));
}
-$id=htmlentities(strtolower($_REQUEST['id']));
+
+if (isset($_REQUEST['id'])) {
+ $id=htmlentities(strtolower($_REQUEST['id']));
+}
//$mynntp = new nntp($news['server'],120,1);
$mynntp = new nntp($news['server']);
exit;
}
$max = 50;
-if ($_REQUEST['first']>sizeof($spool->overview))
+if (isset($_REQUEST['first']) && ($_REQUEST['first']>sizeof($spool->overview)))
$_REQUEST['first']=sizeof($spool->overview);
$first = (isset($_REQUEST['first'])?
(floor($_REQUEST['first']/$max)*$max+1):1);
.$locale['thread']['group_a'];?>
</div>
<?php
-echo $text;
+if (isset($text)) {
+ echo $text;
+}
displayshortcuts();
?>