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