52 |
} |
} |
53 |
|
|
54 |
if ($op == "Reply") { |
if ($op == "Reply") { |
55 |
Header("Location: comments.php?op=Reply&pid=0&sid=$sid&" |
Header("Location: comments.php?op=Reply&pid=0&sid=$sid&typ=0&" |
56 |
. "mode=$mode&order=$order&thold=$thold"); |
. "mode=$mode&order=$order&thold=$thold"); |
57 |
} |
} |
58 |
$sql = "SELECT aid, time, title, hometext, bodytext, topic, informant, notes " |
$sql = "SELECT aid, time, title, hometext, bodytext, topic, informant, notes " |
84 |
themearticle($aid, $informant, $datetime, wordlinks($title), |
themearticle($aid, $informant, $datetime, wordlinks($title), |
85 |
wordlinks($bodytext), $topic, $topicname, $topicimage, $topictext); |
wordlinks($bodytext), $topic, $topicname, $topicimage, $topictext); |
86 |
echo "<br>"; |
echo "<br>"; |
87 |
if ($anompost==1 OR $admin OR $user) { echo "<div align=\"center\"><a href=\"comments.php?op=Reply&pid=0&sid=$sid\"><img src=\"$uimages/comment.png\" border=\"0\" alt=\"Kommentera\"></a></div>\n";} |
if ($anompost==1 OR $admin OR $user) { echo "<div align=\"center\"><a href=\"comments.php?op=Reply&typ=0&pid=0&sid=$sid\"><img src=\"$uimages/comment.png\" border=\"0\" alt=\"Kommentera\"></a> <a href=\"print.php?sid=$sid\"><img src=\"images/print.png\" width=\"16\" height=\"16\" border=\"0\" Alt=\"Skrivarvänlig sida\"></a> |
88 |
|
<a href=\"friend.php?op=FriendSend&sid=$sid\"><img src=\"images/friend.png\" width=\"16\" height=\"16\" border=\"0\" Alt=\"Skicka den här artikeln till en kompis\"></a>\n</div>\n";} |
89 |
echo "</td>\n<td> </td><td valign=\"top\" width=\"200\">"; |
echo "</td>\n<td> </td><td valign=\"top\" width=\"200\">"; |
90 |
|
|
91 |
# the related links box (remake?) |
# the related links box (remake?) |
103 |
. "ORDER BY counter DESC LIMIT 0,1"; |
. "ORDER BY counter DESC LIMIT 0,1"; |
104 |
$result2 = mysql_query($sql); |
$result2 = mysql_query($sql); |
105 |
list($topstory, $ttitle) = mysql_fetch_row($result2); |
list($topstory, $ttitle) = mysql_fetch_row($result2); |
106 |
$boxstuff .= "<a href=\"article.php?sid=$topstory\">".nowordlinkshtml($ttitle)."</a></div><br><br>\n"; |
$boxstuff .= "<a href=\"article.php?sid=$topstory\">".nowordlinkshtml($ttitle)."</a></div>\n"; |
|
$boxstuff .= "<table border=\"0\" width=\"100%\"><tr><td align=\"left\">\n"; |
|
|
$boxstuff .= "</td><td align=\"right\">"; |
|
|
$boxstuff .= "<a href=\"print.php?sid=$sid\">" |
|
|
. "<img src=\"images/print.png\" width=\"16\" height=\"16\" " |
|
|
. "border=\"0\" Alt=\"Skrivarvänlig sida\"></a>" |
|
|
. " \n"; |
|
|
$boxstuff .= "<a href=\"friend.php?op=FriendSend&sid=$sid\">" |
|
|
. "<img src=\"images/friend.png\" width=\"16\" height=\"16\" border=\"0\" " |
|
|
. "Alt=\"Skicka den här artikeln till en kompis\"></a>\n"; |
|
|
$boxstuff .= "</td></tr></table>\n"; |
|
107 |
themesidebox($boxtitle, $boxstuff); |
themesidebox($boxtitle, $boxstuff); |
108 |
echo "</td></tr></table>\n"; |
echo "</td></tr></table>\n"; |
109 |
cookiedecode($user); |
cookiedecode($user); |
110 |
|
if (!(isset($typ))) |
111 |
|
$typ=0; |
112 |
if($mode != "nocomments") include('comments.php'); |
if($mode != "nocomments") include('comments.php'); |
113 |
include ('footer.php'); |
include ('footer.php'); |
114 |
store_referer(); |
store_referer(); |