58 |
"<br><b>$slogan</center></b>\n"; |
"<br><b>$slogan</center></b>\n"; |
59 |
for ($m=0; $m < mysql_num_rows($result); $m++) { |
for ($m=0; $m < mysql_num_rows($result); $m++) { |
60 |
list($sid, $title) = mysql_fetch_row($result); |
list($sid, $title) = mysql_fetch_row($result); |
61 |
echo "<li><a href=\"".$nuke_url."avantgo.php?sid=$sid\">$title</a><br>\n"; |
echo "<li><a href=\"".$nuke_url."avantgo.php?sid=$sid\">".nowordlinkshtml($title)."</a><br>\n"; |
62 |
} |
} |
63 |
avantgofooter(); |
avantgofooter(); |
64 |
} |
} |
73 |
} else { |
} else { |
74 |
list($title,$hometext,$bodytext,$comments) = mysql_fetch_row($result); |
list($title,$hometext,$bodytext,$comments) = mysql_fetch_row($result); |
75 |
avantgoheader(); |
avantgoheader(); |
76 |
echo "<b>$title</b>"; |
echo "<b>".wordlinks($title)."</b>"; |
77 |
if ($comments == 1) { |
if ($comments == 1) { |
78 |
echo " (1 kommentar)"; |
echo " (1 kommentar)"; |
79 |
} elseif ($comments > 1) { |
} elseif ($comments > 1) { |
80 |
echo " ($comments kommentarer)"; |
echo " ($comments kommentarer)"; |
81 |
} |
} |
82 |
echo "<br>\n"; |
echo "<br>\n"; |
83 |
echo "$hometext\n"; |
echo wordlinks($hometext)."\n"; |
84 |
echo "$bodytext\n"; |
echo wordlinks($bodytext)."\n"; |
85 |
echo "<br><br>\n<a href=\"avantgo.php\">Tillbaks</a>\n"; |
echo "<br><br>\n<a href=\"avantgo.php\">Tillbaks</a>\n"; |
86 |
avantgofooter(); |
avantgofooter(); |
87 |
} |
} |