home *** CD-ROM | disk | FTP | other *** search
- <?php
-
- $thename = "Ethereal";
- $lnkcolor = "000000";
- $bgcolor1 = "#7897A9";
- $bgcolor2 = "#394E59";
- $bgcolor3 = "#7897A9";
- $textcolor1 = "#FFFFFF";
- $textcolor2 = "#000000";
- $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
-
- function themepreview($title, $hometext, $bodytext="", $notes="") {
- echo "<p><b>$title</b><br>$hometext<br><br>$bodytext $notes";
- }
-
- function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
- global $tipath, $anonymous;
- if ("$aid" == "$informant") { ?>
- <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=394E59 width=100%>
- <tr><td>
-
- <table border=0 cellpadding=3 cellspacing=1 width=100%>
- <tr><td bgcolor=5F7E92>
- <b><?php echo"$title"; ?></b><br>
- <font size=1>
- <?php echo translate("Posted by "); ?><?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)<br>
- </td>
- </tr>
- <tr>
- <td bgcolor=7897A9>
- <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=1 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
- <?php echo"$thetext<br><br>
- </td></tr><tr><td bgcolor=5F7E92 align=right>
- <font size=2>$morelink"; ?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
-
-
- <?php } else {
- if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
- else $boxstuff = "$anonymous ";
- $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
- ?>
- <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=394E59 width=100%>
- <tr><td>
-
- <table border=0 cellpadding=3 cellspacing=1 width=100%>
- <tr><td bgcolor=5F7E92>
- <b><?php echo"$title"; ?></b><br>
- <font size=1>
- <?php echo translate("Posted by "); ?><?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)<br>
- </td>
- </tr>
- <tr>
- <td bgcolor=7897A9>
- <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=1 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a>
- <?php echo"$boxstuff<br><br>
- </td></tr><tr><td bgcolor=5F7E92 align=right>
- <font size=2>$morelink"; ?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
-
- <?php }
- }
-
- function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
- global $admin, $sid, $tipath;
- if ("$aid" == "$informant") {
- echo"
-
- <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=394E59 width=100%>
- <tr><td>
-
- <table border=0 cellpadding=3 cellspacing=1 width=100%>
- <tr><td bgcolor=5F7E92>
- <b>$title</b><br><font size=1>".translate("Posted on ")." $datetime
- ";
- if ($admin) {
- echo " $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
- }
-
- echo "
- </td>
- </tr>
- <tr>
- <td bgcolor=7897A9>
- <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=1 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
- $thetext
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
- ";
-
- } else {
- if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
- else $boxstuff = "$anonymous ";
- $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
- echo "
-
- <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=394E59 width=100%>
- <tr><td>
- <table border=0 cellpadding=3 cellspacing=1 width=100%>
- <tr><td bgcolor=5F7E92>
- <b>$title</b><br><font size=2>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
- ";
- if ($admin) {
- echo " $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
- }
- echo "
- </td>
- </tr>
- <tr>
- <td bgcolor=7897A9>
- <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=1 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
- $thetext
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table><br>
- ";
-
- }
- }
-
- function themesidebox($title, $content) {
- echo "
- <table bgcolor=394E59 border=0 width=150 cellspacing=0 cellpadding=1><tr><td>
- <table bgcolor=7897A9 border=0 width=100% cellspacing=0 cellpadding=3>
- <tr bgcolor=5F7E92><td>
- <div align=center><b><font size=2>$title</font></b></div>
- </td></tr><tr><td>
- <font size=1>$content</font>
- </td></tr></table></td></tr></table><br>";
- }
-
- function searchbox() {
- global $uimages, $sitename;
- echo "
- <table bgcolor=394E59 border=0 width=150 cellspacing=0 cellpadding=1><tr><td>
- <table bgcolor=7897A9 border=0 width=100% cellspacing=0 cellpadding=3>
- <tr bgcolor=5F7E92><td>
- <div align=center><b><font size=2>".translate("Search")." $sitename</font></b></div>
- </td></tr><tr><td><center>
- <form action=search.php method=post>
- <br><input type=text name=query size=12>
- <br><input type=image src=$uimages/search.gif border=0>
- <br></form>
- </center></td></tr></table></td></tr></table><br>";
- }
-
- ?>
-