home *** CD-ROM | disk | FTP | other *** search
- <?php
-
- $thename = "Default";
- $bgcolor1 = "#CCCCCC";
- $bgcolor2 = "#333333";
- $bgcolor3 = "#CCCCCC";
- $textcolor1 = "#FFFFFF";
- $textcolor2 = "#000000";
- $hr = 0; # 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=4 width=100%><tr><td>
- <table border=0 cellpadding=0 cellspacing=0 width=100%>
-
- <tr><td class=titulo2><b><?php echo"$title"; ?></b></td></tr>
- <tr><td class=contenido4><?php echo translate("Posted by "); ?><b><?php formatAidHeader($aid) ?></b> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)</td>
- </tr>
- <tr><td bgcolor="#999999"><img src="images/nada.gif" width="1" height="1" border="0"></td></tr>
- <tr>
- <td>
- <table border=0 cellspacing=0 cellpadding=4 width=100%>
- <tr>
- <td class=contenido2 bgcolor="#FFFFFF">
- <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a><? echo "$thetext"; ?></td>
- </tr><tr>
- <td class=contenido3 bgcolor=#FFFFFF><? echo "$morelink"; ?></td></tr>
- </table></td></tr>
- <tr><td bgcolor="#999999"><img src="images/nada.gif" width="1" height="1" border="0"></td></tr>
- </table>
- </td></tr></table>
-
- <?php } else {
- if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
- else $boxstuff = "$anonymous ";
- $boxstuff .= "".translate("writes")." \"$thetext\" $notes";
- ?>
-
- <table border=0 cellpadding=0 cellspacing=4 width=100%><tr><td>
- <table border=0 cellpadding=0 cellspacing=0 width=100%>
-
- <tr><td class=titulo2><b><?php echo"$title"; ?></b></td></tr>
- <tr><td class=contenido4><?php echo translate("Posted by "); ?><b><?php formatAidHeader($aid) ?></b> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)</td>
- </tr>
- <tr><td bgcolor="#999999"><img src="images/nada.gif" width="1" height="1" border="0"></td></tr>
- <tr>
- <td>
- <table border=0 cellspacing=0 cellpadding=4 width=100%>
- <tr>
- <td class=contenido2 bgcolor="#FFFFFF">
- <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><img src=<?php echo"$tipath$topicimage"; ?> border=0 Alt=<?php echo"\"$topictext\""; ?> align=right hspace=10 vspace=10></a><? echo "$boxstuff"; ?></td>
- </tr><tr>
- <td class=contenido3 bgcolor=#FFFFFF><? echo "$morelink"; ?></td></tr>
- </table></td></tr>
- <tr><td bgcolor="#999999"><img src="images/nada.gif" width="1" height="1" border="0"></td></tr>
- </table>
- </td></tr></table>
-
-
- <?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=4 align=center width=100%><tr><td>
- <table border=0 cellpadding=0 cellspacing=0 align=center width=100%>
-
- <tr><td class=titulo2><b>$title</b><td></tr>
- <tr><td class=contenido4>".translate("Posted on ")." $datetime";
- if ($admin) {
- echo " [ <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=#999999><img src=images/nada.gif width=1 height=1 border=0></td></tr>
- <tr>
- <td>
- <table border=0 cellspacing=0 cellpadding=4 width=100%>
- <tr>
- <td class=contenido2 bgcolor=ffffff><a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>$thetext</td>
- </tr></table>
- </td>
- </tr>
- <tr><td bgcolor=#999999><img src=images/nada.gif width=1 height=1 border=0></td></tr>
- </table>
- </td></tr></table>
- ";
-
- } else {
- if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
- else $boxstuff = "$anonymous ";
- $boxstuff .= "".translate("writes")." \"$thetext\" $notes";
- echo "
-
- <table border=0 cellpadding=0 cellspacing=4 align=center width=100%><tr><td>
- <table border=0 cellpadding=0 cellspacing=0 align=center width=100%>
-
- <tr><td class=titulo2><b>$title</b><td></tr>
- <tr><td class=contenido4>".translate("Contributed by ")." $datetime";
- if ($admin) {
- echo " [ <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=#999999><img src=images/nada.gif width=1 height=1 border=0></td></tr>
- <tr>
- <td>
- <table border=0 cellspacing=0 cellpadding=4 width=100%>
- <tr>
- <td class=contenido2 bgcolor=ffffff><a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>$thetext</td>
- </tr></table>
- </td>
- </tr>
- <tr><td bgcolor=#999999><img src=images/nada.gif width=1 height=1 border=0></td></tr>
- </table>
- </td></tr></table>
- ";
-
- }
- }
-
-
- function themesidebox($title, $content) {
- echo "
- <table width=100% border=0 cellspacing=4 cellpadding=4><tr>
- <td colspan=1 bgcolor=333333><font color=CCCCCC>$title</td>
- </tr><tr>
- <td>$content</td>
- </tr></table>";
- }
-
- ?>