From 84ca00bce36c8c248548756a27140b7d9d9770e8 Mon Sep 17 00:00:00 2001 From: x99bachelart Date: Tue, 9 Sep 2003 15:21:26 +0000 Subject: [PATCH] bugfix + custom css classes - bugfix : displayshortcuts() needs $id - custom css classes --- article.php | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/article.php b/article.php index 25ffb27..57ce054 100644 --- a/article.php +++ b/article.php @@ -23,7 +23,12 @@ require($profile['locale']); require("include/header.inc.php"); -$group=strtolower(htmlentities($_REQUEST['group'])); +if (isset($_REQUEST['group'])) { + $group=htmlentities(strtolower($_REQUEST['group'])); +} +if (isset($_REQUEST['id'])) { + $id=htmlentities(strtolower($_REQUEST['id'])); +} $mynntp = new nntp($news['server']); if (!$mynntp) { @@ -49,32 +54,32 @@ if (!$spool) { } $mynntp->group($group); -$post = new post($mynntp,$_REQUEST['id']); +$post = new post($mynntp,$id); if (!$post) { if ($mynntp->lasterrorcode == "423") { - $spool->delid($_REQUEST['id']); + $spool->delid($id); } echo "

\n\tError while reading message.\n

"; require("include/footer.inc.php"); exit; } -$ndx = $spool->getndx($_REQUEST['id']); +$ndx = $spool->getndx($id); ?> -
+
headers))) { ?> -

+

+ echo $id;?>" /> @@ -86,7 +91,7 @@ if (isset($_GET['type']) && ($_GET['type']=='cancel') && (checkcancel($post->hea displayshortcuts(); ?> -" + echo "" ."\n"; } @@ -117,8 +122,9 @@ foreach ($news['head'] as $real => $nick) { -
@@ -96,7 +101,7 @@ summary=""> $nick) { if (isset($post->headers->$nick)) - echo "
$real
$real".formatdisplayheader($nick,$post->headers->$nick,$spool) ."
- +
+ disp($ndx-$news['threadtop'],$ndx+$news['threadbottom'],$ndx); ?> -- 2.1.4