home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 March
/
PCWorld_2001-03_cd.bin
/
KOMUNIK
/
progweb
/
progweb.exe
/
phpnuke
/
html
/
themes
/
SlashOcean
/
theme.php
< prev
next >
Wrap
PHP Script
|
2000-11-26
|
13KB
|
209 lines
<?php
$bgcolor1 = "#CCCCCC";
$bgcolor2 = "#101070";
$bgcolor3 = "#e6e6e6";
$textcolor1 = "#FFFFFF";
$textcolor2 = "#000000";
$pollcolor = "brown";
$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 $bodytext $notes";
}
function themeindex ($aid, $informant, $datetime, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $tipath, $anonymous;
if ("$aid" == "$informant") { ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
<td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
<font size="3" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
</td></tr></table>
</td><td align="right"><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
</tr></table>
<table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
<td background="themes/SlashOcean/gl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
<td><font size="1"><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)</font></td>
</tr></table>
</td>
<td background="themes/SlashOcean/gr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
<tr bgcolor="#ffffff">
<td background="themes/SlashOcean/wl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
<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>
<?php echo "<font size=2>$thetext"; ?>
</td></tr></table></td>
<td background="themes/SlashOcean/wr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
</table><table border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#ffffff">
<td background="themes/SlashOcean/wl_cccccc.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr><td bgcolor="#cccccc"><font size="2"><?php echo"$morelink"; ?></font></td></tr></table>
</td>
<td background="themes/SlashOcean/wr_cccccc.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
</table><BR><BR>
<?php } else {
if($informant != "") $boxstuff = "<font size=2><a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
else $boxstuff = "$anonymous ";
$boxstuff .= "<font size=2>".translate("writes")." <i>\"$thetext\"</i> $notes";
?> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
<td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""></td>
<td width="100%"><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
<font size="3" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
</td></tr></table></td>
<td align="right"><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
</tr></table>
<table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
<td background="themes/SlashOcean/gl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
<td><font size="1"><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?> (<?php echo $counter; ?> <?php echo translate("reads"); ?>)</font></td>
</tr></table>
</td>
<td background="themes/SlashOcean/gr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
<tr bgcolor="#ffffff">
<td background="themes/SlashOcean/wl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
<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>
<?php echo "$boxstuff"; ?>
</td></tr></table></td>
<td background="themes/SlashOcean/wr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
</table><table border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#ffffff">
<td background="themes/SlashOcean/wl_cccccc.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td bgcolor="#cccccc"><font size="2"><?php echo"$morelink"; ?></font></td></tr></table>
</td>
<td background="themes/SlashOcean/wr_cccccc.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
</table><BR><BR>
<?php }
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
if ("$aid" == "$informant") { ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
<td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
<font size="3" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
</td></tr></table>
</td><td align="right"><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
</tr></table>
<table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
<td background="themes/SlashOcean/gl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
<td><font size="1"><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?></font>
<?php
if ($admin) {
echo " <font size=2> [ <a href=admin.php?op=EditStory&sid=$sid>".translate("Edit")."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>".translate("Delete")."</a> ]";
}
?>
</td>
</tr></table>
</td>
<td background="themes/SlashOcean/gr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
<tr bgcolor="#ffffff">
<td background="themes/SlashOcean/wl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
<?php echo "<a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>"; ?>
<?php echo "<font size=2>$thetext"; ?>
</td></tr></table></td>
<td background="themes/SlashOcean/wr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
</table>
<?php } else {
if($informant != "") $boxstuff = "<font size=2><a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
else $boxstuff = "$anonymous ";
$boxstuff .= "<font size=2>".translate("writes")." <i>\"$thetext\"</i> $notes";
?> <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr valign="top" bgcolor="#101070">
<td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
<font size="3" color="#FFFFFF"><B><?php echo"$title"; ?></B></font>
</td></tr></table>
</td><td align="right"><img src="themes/SlashOcean/pix.gif" width="4" height="4" alt=""><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
</tr></table>
<table border="0" cellpadding="0" cellspacing="0"><tr bgcolor="#e6e6e6">
<td background="themes/SlashOcean/gl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="5" cellspacing="0"><tr>
<td><font size="1"><?php echo translate("Posted by "); ?> <?php formatAidHeader($aid) ?> <?php echo translate("on"); ?> <?php echo"$datetime $timezone"; ?></font>
<?php
if ($admin) {
echo " <font size=2> [ <a href=admin.php?op=EditStory&sid=$sid>Editar</a> | <a href=admin.php?op=RemoveStory&sid=$sid>Borrar</a> ]";
}
?>
<br><?php echo "<font size=1"; ?>
<?php echo "".translate("Contributed by ").""; ?> <?php echo "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a>"; ?>
</td>
</tr></table>
</td>
<td background="themes/SlashOcean/gr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
<tr bgcolor="#ffffff">
<td background="themes/SlashOcean/wl.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
<td width="100%"><table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td>
<?php echo "<a href=search.php?query=&topic=$topic&author=><img src=$tipath$topicimage border=0 Alt=\"$topictext\" align=right hspace=10 vspace=10></a>"; ?>
<?php echo "<font size=2>$thetext"; ?>
</td></tr></table></td>
<td background="themes/SlashOcean/wr.gif"><img src="themes/SlashOcean/pix.gif" width="11" height="11" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
</table>
<?php }
}
function themesidebox($title, $content) {
?>
<table width="150" border="0" cellpadding="0" cellspacing="0">
<tr valign="top" bgcolor="#101070">
<td bgcolor="#FFFFFF"><img src="themes/SlashOcean/pix.gif" width="3" height="3" alt=""></td>
<td><img src="themes/SlashOcean/cl.gif" width="7" height="10" alt=""></td>
<td><font size="1" color="#ffffff"><B><?php echo"$title"; ?></B></font></td>
<td align="right"><img src="themes/SlashOcean/cr.gif" width="7" height="10" alt=""></td>
<td bgcolor="#FFFFFF" align="right"><img src="themes/SlashOcean/pix.gif" width="3" height="3" alt=""></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
<tr bgcolor="#ffffff">
<td background="themes/SlashOcean/sl.gif"><img src="themes/SlashOcean/pix.gif" width="3" height="3" alt=""></td>
<td width="100%">
<table width="100%" border="0" cellpadding="5" cellspacing="0"><tr><td><font size=1><?php echo"$content"; ?>
</td></tr></table></td>
<td background="themes/SlashOcean/sr.gif" align="right"><img src="themes/SlashOcean/pix.gif" width="3" height="3" alt=""></td>
</tr>
<tr bgcolor="#101070"><td colspan="3"><img src="themes/SlashOcean/pix.gif" width="1" height="1"></td></tr>
</table><br><br>
<?php
}
?>