/[nuke]/html/themes/Default/theme.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /html/themes/Default/theme.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Thu Sep 21 02:57:10 2000 UTC (23 years, 9 months ago) by dpavlin
Branch: dbp, MAIN
CVS Tags: r3_6, HEAD
Changes since 1.1: +0 -0 lines
import of version 3.6

1 <?php
2
3 $thename = "Default";
4 $bgcolor1 = "#CCCCCC";
5 $bgcolor2 = "#333333";
6 $bgcolor3 = "#CCCCCC";
7 $textcolor1 = "#FFFFFF";
8 $textcolor2 = "#000000";
9 $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor
10
11 function themepreview($title, $hometext, $bodytext="", $notes="") {
12 echo "<p><b>$title</b><br>$hometext<br><br>$bodytext $notes";
13 }
14
15 function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
16 include("config.php");
17 if ("$aid" == "$informant") { ?>
18 <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
19 <tr><td>
20
21 <table border=0 cellpadding=3 cellspacing=1 width=100%>
22 <tr><td bgcolor=CCCCCC>
23 <font face=Arial,Helvetica>
24 <b><?php echo"$title"; ?></b><br>
25 <font face=Arial,Helvetica size=1>
26 <?php echo translate("Posted by "); ?><b><?php formatAidHeader($aid) ?></b> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo translate("readed:"); ?> <?php echo $counter; ?> <?php echo translate("times"); ?>)<br>
27 </td>
28 </tr>
29 <tr>
30 <td bgcolor=ffffff>
31 <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>
32 <?php echo"<font face=Arial,Helvetica>$thetext<br><br>
33 </td></tr><tr><td bgcolor=CCCCCC align=right>
34 <font face=Arial,Helvetica size=2>$morelink"; ?>
35 </td>
36 </tr>
37 </table>
38 </td>
39 </tr>
40 </table><br>
41
42
43 <?php } else {
44 if($informant != "") $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
45 else $boxstuff = "$anonymous ";
46 $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
47 ?>
48 <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
49 <tr><td>
50
51 <table border=0 cellpadding=3 cellspacing=1 width=100%>
52 <tr><td bgcolor=CCCCCC>
53 <font face=Arial,Helvetica>
54 <b><?php echo"$title"; ?></b><br>
55 <font face=Arial,Helvetica size=1>
56 <?php echo translate("Posted by "); ?><?php formatAidHeader($aid); ?> <?php echo translate("on"); ?> <?php echo"$time $timezone"; ?> (<?php echo translate("readed:"); ?> <?php echo $counter; ?> <?php echo translate("times"); ?>)<br>
57 </td>
58 </tr>
59 <tr>
60 <td bgcolor=ffffff>
61 <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>
62 <?php echo"<font face=Arial,Helvetica>$boxstuff<br><br>
63 </td></tr><tr><td bgcolor=CCCCCC align=right>
64 <font face=Arial,Helvetica size=2>$morelink"; ?>
65 </td>
66 </tr>
67 </table>
68 </td>
69 </tr>
70 </table><br>
71
72 <?php }
73 }
74
75 function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
76 include("config.php");
77 if ("$aid" == "$informant") {
78 echo"
79
80 <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
81 <tr><td>
82
83 <table border=0 cellpadding=3 cellspacing=1 width=100%>
84 <tr><td bgcolor=CCCCCC>
85 <font face=Arial,Helvetica>
86 <b>$title</b><br><font face=Arial,Helvetica size=1>".translate("Posted on ")." $datetime
87 ";
88 global $admin, $sid;
89 if ($admin) {
90 echo "&nbsp;&nbsp; $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
91 }
92
93 echo "
94 </td>
95 </tr>
96 <tr>
97 <td bgcolor=ffffff>
98 <font face=Arial,Helvetica>
99 <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
100 $thetext
101 </td>
102 </tr>
103 </table>
104 </td>
105 </tr>
106 </table><br>
107 ";
108
109 } else {
110 if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
111 else $boxstuff = "$anonymous ";
112 $boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes";
113 echo "
114
115 <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%>
116 <tr><td>
117 <table border=0 cellpadding=3 cellspacing=1 width=100%>
118 <tr><td bgcolor=CCCCCC>
119 <font face=Arial,Helvetica>
120 <b>$title</b><br><font face=Arial,Helvetica size=2>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font>
121 ";
122 global $admin, $sid;
123 if ($admin) {
124 echo "&nbsp;&nbsp; $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
125 }
126 echo "
127 </td>
128 </tr>
129 <tr>
130 <td bgcolor=ffffff>
131 <a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage
132 border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>
133 $thetext
134 </td>
135 </tr>
136 </table>
137 </td>
138 </tr>
139 </table><br>
140 ";
141
142 }
143 }
144
145 ?>

  ViewVC Help
Powered by ViewVC 1.1.26