Code:
<?php
$bgcolor1 = "#f0efed";
$bgcolor2 = "#f0efed";
$bgcolor3 = "#f0efed";
$bgcolor4 = "#666666";
$textcolor1 = "#333";
$textcolor2 = "#333";
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\"><b>$informant</a> ";
} else {
$boxstuff = "<b>Un anonimo ";
}
$boxstuff .= "segnala:</b> \"$thetext\"$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
}
}
function themeheader() {
global $banners, $name;
echo "<body bgcolor=\"f0efed\" text=\"#333\" link=\"0000ff\" leftmargin=0 rightmargin=0 topmargin=0>\n";
if ($banners) {
include("banners.php");
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n"
."<tr><td valign=\"middle\" background=\"themes/siteground9/images/top.jpg\" width=\"800\" height=\"38\">\n"
."<p style=\"padding:2px 10px 0px 30px\">"
.date("F j, Y, g:i a")
."</p>"
."</td></tr>"
."<tr><td background=\"themes/siteground9/images/header.jpg\" width=\"800\" height=\"217\">"
."</td></tr><table>"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"760\" align=\"center\">\n"
."<tr><td width=\"100%\" bgcolor=\"f0efed\" align=\"center\">";
echo "<table width=\"760\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td width=\"180\" align=\"left\" valign=\"top\" style=\"margin:0 auto;text-align:left;background:#f0efee url(themes/siteground9/images/bg_left.jpg) top left repeat-y;\">\n";
if ($name=='Forums') {}
else if ($name=='Members_List') {}
else if ($name=='Private_Messages') {}
else {
blocks(left);
$sg = 'banner'; include "templates.php";
}
echo "</td><td width=\"100%\" style=\"padding:10px 10px 10px 0px;\">\n";
}
function themefooter() {
global $index;
echo "<br>";
if ($index == 1) {
echo "</td><td valign=\"top\" width=\"180\" style=\"padding:10px 10px 10px 0px;\">\n";
blocks(right);
echo "<td>";
}
else {
echo "</td><td colspan=\"2\" style=\"padding:10px 10px 10px 0px;background:#f0efee url(themes/siteground9/images/bg_right.jpg) top right repeat-y;\">";
}
echo "<br><br></td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#f0efee url(themes/siteground9/images/footer.jpg) bottom left no-repeat;\" width=\"100%\"><tr><td width=\"100%\" valign=\"middle\" align=\"center\" height=\"40\">";
// DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
echo "<p style=\"padding:4px 10px 0px 190px;margin:0;\" class=\"sgf\">";
$sg = ''; include "templates.php";
echo "</p>";
echo "</center></table></table></table>";
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#666666\">\n"
."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\"><tr>\n"
."<td background=\"themes/siteground9/images/header_news.gif\" width=\"100%\" height=\"23\"><font class=\"option\"><b> $title</b></font></td></tr>\n"
."<tr><td background=\"themes/siteground9/images/back1.gif\" colspan=\"2\" bgcolor=\"#333333\">\n"
."<table border=\"0\" width=\"100%\" align=\"center\"><tr><td>\n"
."<a href=\"article-topic-.html$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
FormatStory($thetext, $notes, $aid, $informant);
echo "</td></tr></table>\n"
."</td></tr></table>\n"
."</td></tr><tr><td bgcolor=\"#444444\" align=\"left\">\n"
." "
."<b><font class=\"tiny\">"._POSTEDBY." ";
formatAidHeader($aid);
echo " - $time $timezone <br></font>\n"
."<font class=\"content\">$morelink</font></center>\n"
."<img src=\"themes/siteground9/images/pixel.gif\" border=\"0\" height=\"0\">"
."</td></tr></table>\n"
."</td></tr><tr><td background=\"themes/siteground9/images/header_news_down.gif\" width=\"100%\" height=\"15\"></tr>"
."<tr><td bgcolor=\"\"><img src=\"themes/siteground9/images/pixel.gif\" width=\"100%\" height=\"4\"></td></tr></table>\n";
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#444444\">\n"
."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\">"
."<tr><td background=\"themes/siteground9/images/header_news_article.gif\" width=\"100%\" height=\"23\"><font class=\"option\"><b> $title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" background=\"themes/siteground9/images/back1.gif\"><br>\n"
."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
."<a href=\"article-topic-.html$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
FormatStory($thetext, $notes="", $aid, $informant);
echo "</td></tr></table>\n"
."</td></tr></table><br>\n"
."</td></tr>\n"
."</table></td></tr>\n"
."<tr><td background=\"themes/siteground9/images/header_news_down_article.gif\" width=\"100%\" height=\"15\"></tr>"
."<tr><td><br><div align=\"center\"></div></td></tr>\n"
."<tr><td bgcolor=\"\"></td></tr></table>\n";
}
function themesidebox($title, $content) {
echo "<table border=\"0\" align=\"center\" width=\"160\" cellpadding=\"0\" cellspacing=\"0\">"
."<tr><td width=\"160\" height=\"30\">"
." <font color=\"#333333\"><b>$title</b></font>"
."</td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"160\">\n"
."<tr><td width=\"160\" bgcolor=\"\">\n"
."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"160\">\n"
."<tr><td width=\"160\" style=\"padding:5px 5px 5px 10px;\">\n"
."$content"
."</td></tr></table></td></tr><td width=\"160\" height=\"13\"></td><tr><td><img src=\"themes/siteground9/images/pixel.gif\" width=\"180\" height=\"4\"></td></tr></table>";
}
?>
|