/[gnuheter]/gnuheter/article.php
ViewVC logotype

Diff of /gnuheter/article.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by aron, Sat Nov 2 23:30:48 2002 UTC revision 1.9 by aron, Sat Nov 30 17:27:09 2002 UTC
# Line 52  if ($save) { Line 52  if ($save) {
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 "
# Line 84  echo "<table width=\"100%\" border=\"0\" Line 84  echo "<table width=\"100%\" border=\"0\"
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&amp;pid=0&amp;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&amp;typ=0&amp;pid=0&amp;sid=$sid\"><img src=\"$uimages/comment.png\" border=\"0\" alt=\"Kommentera\"></a>&nbsp;&nbsp;<a href=\"print.php?sid=$sid\"><img src=\"images/print.png\" width=\"16\" height=\"16\" border=\"0\" Alt=\"Skrivarvänlig sida\"></a>
88    &nbsp;&nbsp;<a href=\"friend.php?op=FriendSend&amp;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>&nbsp;</td><td valign=\"top\" width=\"200\">";  echo "</td>\n<td>&nbsp;</td><td valign=\"top\" width=\"200\">";
90    
91  # the related links box (remake?)  # the related links box (remake?)
# Line 102  $sql = "SELECT sid, title FROM stories " Line 103  $sql = "SELECT sid, title FROM stories "
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>"  
           .  "&nbsp;&nbsp;\n";  
 $boxstuff .= "<a href=\"friend.php?op=FriendSend&amp;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();

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26