1 |
<?php |
2 |
|
3 |
$thename = "ExtraLite"; |
4 |
$bgcolor1 = "#FFFFFF"; |
5 |
$bgcolor2 = "#333333"; |
6 |
$bgcolor3 = "#FFFFFF"; |
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=FFFFFF> |
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 |
<b><?php echo translate("Topic"); ?></b> <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><?php echo"$topictext"; ?></a><br> |
28 |
</td> |
29 |
</tr> |
30 |
<tr> |
31 |
<td bgcolor=ffffff> |
32 |
<?php echo"<font face=Arial,Helvetica>$thetext<br><br> |
33 |
</td></tr><tr><td bgcolor=FFFFFF 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=FFFFFF> |
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 |
<b><?php echo translate("Topic"); ?></b> <a href="search.php?query=&topic=<?php echo"$topic"; ?>&author="><?php echo"$topictext"; ?></a><br> |
58 |
</td> |
59 |
</tr> |
60 |
<tr> |
61 |
<td bgcolor=ffffff> |
62 |
<?php echo"<font face=Arial,Helvetica>$boxstuff<br><br> |
63 |
</td></tr><tr><td bgcolor=FFFFFF 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=FFFFFF> |
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 " $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 |
echo " |
93 |
<br>".translate("Topic").": <a href=search.php?query=&topic=$topic&author=>$topictext</a> |
94 |
</td> |
95 |
</tr> |
96 |
<tr> |
97 |
<td bgcolor=ffffff> |
98 |
<font face=Arial,Helvetica> |
99 |
$thetext |
100 |
</td> |
101 |
</tr> |
102 |
</table> |
103 |
</td> |
104 |
</tr> |
105 |
</table><br> |
106 |
"; |
107 |
|
108 |
} else { |
109 |
if($informant != "") $informant = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> "; |
110 |
else $boxstuff = "$anonymous "; |
111 |
$boxstuff .= "".translate("writes")." <i>\"$thetext\"</i> $notes"; |
112 |
echo " |
113 |
|
114 |
<table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=000000 width=100%> |
115 |
<tr><td> |
116 |
<table border=0 cellpadding=3 cellspacing=1 width=100%> |
117 |
<tr><td bgcolor=FFFFFF> |
118 |
<font face=Arial,Helvetica> |
119 |
<b>$title</b><br><font face=Arial,Helvetica size=2>".translate("Contributed by ")." $informant ".translate("on")." $datetime</font> |
120 |
"; |
121 |
global $admin, $sid; |
122 |
if ($admin) { |
123 |
echo " $font2 [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]"; |
124 |
} |
125 |
echo " |
126 |
<br>".translate("Topic").": <a href=search.php?query=&topic=$topic&author=>$topictext</a> |
127 |
</td> |
128 |
</tr> |
129 |
<tr> |
130 |
<td bgcolor=ffffff> |
131 |
$thetext |
132 |
</td> |
133 |
</tr> |
134 |
</table> |
135 |
</td> |
136 |
</tr> |
137 |
</table><br> |
138 |
"; |
139 |
|
140 |
} |
141 |
} |
142 |
|
143 |
?> |