PHP-code:
<?php
$bgcolor1 = "#ecf1f5";
$bgcolor2 = "#A8C5E1";
$bgcolor3 = "#ffffff";
$bgcolor4 = "#ecf1f5";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" 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=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
echo "<table border=\"0\" cellspacing=\"1\" 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\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
}
}
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $banners, $name; //aggiunto $name per l'hack che elimina i blocchi a sx nei moduli
echo "<body bgcolor=\"#ecf0f6\" text=\"#000000\" link=\"0000ff\"><br>\n";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"0056a7\" width=\"80\" align=\"center\">\n"
//inizio menu sopra il logo
."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"11\" valign=\"bottom\">\n"
."<map name=\"FPMap0\"><area href=\"modules.php?name=Forums\" shape=\"polygon\" coords=\"150,1,238,1,238,13,162,13\">"
."<area href=\"index.php\" shape=\"polygon\" coords=\"2,1,148,1,160,13,1,13\">"
."</map>"
."<img border=\"0\" src=\"themes/memlabs_blueplus/images/contactbar_left_up.gif\" usemap=\"#FPMap0\" width=\"240\" height=\"15\">"
."<a href=\"modules.php?name=Topics\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/news.gif\" width=\"80\" height=\"15\"></a>"
."<a href=\"modules.php?name=Downloads\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/downloads.gif\" width=\"80\" height=\"15\"></a>"
."<a href=\"modules.php?name=Forums&file=viewforum&f=13\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/guide.gif\" width=\"80\" height=\"15\"></a>"
."<a href=\"modules.php?name=Forums&file=viewtopic&t=57\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/trucchi.gif\" width=\"80\" height=\"15\"></a>"
."<map name=\"FPMap1\"><area href=\"admin.php\" shape=\"polygon\" coords=\"93,1,238,1,238,13,82,13\">"
."<area href=\"modules.php?name=feedback\" shape=\"polygon\" coords=\"3,1,90,1,78,13,2,13\">"
."</map>"
."<img border=\"0\" src=\"themes/memlabs_blueplus/images/contactbar_right_up.gif\" usemap=\"#FPMap1\" width=\"240\" height=\"15\">"
//fine menu sopra il logo
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\" height=\"60\" bgcolor=\"#FFFFFF\">\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/logo.jpg\" alt=\"Memlabs.net\" hspace=\"0\"></a></td><td align=\"right\"></td></tr></table></td></tr>\n"
//inizio menu sotto il logo
."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"15\" valign=\"bottom\">\n"
."<map name=\"FPMap2\"><area href=\"modules.php?name=Shop\" shape=\"polygon\" coords=\"162,1,238,1,238,13,152,13\">"
."<area href=\"modules.php?name=Specifiche\" shape=\"polygon\" coords=\"2,1,159,1,147,13,1,13\">"
."</map>"
."<img border=\"0\" src=\"themes/memlabs_blueplus/images/contactbar_left_down.gif\" usemap=\"#FPMap2\" width=\"240\" height=\"15\">"
."<a href=\"modules.php?name=Corsi\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/corso.gif\" width=\"80\" height=\"15\"></a>"
."<a href=\"modules.php?name=Circuiti\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/circuiti.gif\" width=\"80\" height=\"15\"></a>"
."<a href=\"modules.php?name=Downloads&d_op=viewdownload&cid=5\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/software_elett.gif\" width=\"80\" height=\"15\"></a>"
."<a href=\"modules.php?name=Risorse\"><img border=\"0\" src=\"themes/memlabs_blueplus/images/risorse_elett.gif\" width=\"80\" height=\"15\"></a>"
."<map name=\"FPMap3\"><area href=\"modules.php?name=advertising\" shape=\"polygon\" coords=\"79,1,238,1,238,13,92,14\">"
."<area href=\"modules.php?name=Datasheet\" shape=\"polygon\" coords=\"3,1,77,1,89,13,2,13\">"
."</map>"
."<img border=\"0\" src=\"themes/memlabs_blueplus/images/contactbar_right_down.gif\" usemap=\"#FPMap3\" width=\"240\" height=\"15\">"
//fine menu sotto il logo
//inizio barra lunga
."<tr><td background=\"themes/memlabs_blueplus/images/bar3.gif\" width=\"800\" height=\"25\" valign=\"middle\">"
."<font color=\"#d8e1ea\"><b>"
//fine barra lunga
."</td></tr></table>\n"
."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#ffffff'>\n"
."<br>\n";
echo "</td></tr></table><table width=\"800\" cellpadding=\"0\" bgcolor=\"ffffff\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td><img src=\"themes/memlabs_blueplus/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"130\" bgcolor=\"ffffff\" valign=\"top\">\n";
// inizio modifica nascondi blocco di sinistra nei moduli
//blocks(left); - originale
if ($name=='Forums') {}
else {
blocks(left);
}
// fine modifica
//esempio multiplo
/*
elseif ($name=='Private_Messages') {}
elseif ($name=='Feedback') {}
else {
blocks(left);
}
*/
// fine esempio
echo "</td><td><img src=\"themes/memlabs_blueplus/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index;
echo "<br>";
if ($index == 1) {
echo "</td><td><img src=\"themes/memlabs_blueplus/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"130\" bgcolor=\"ffffff\">\n";
blocks(right);
echo "<td><img src=\"themes/memlabs_blueplus/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\">";
}
else {
echo "</td><td colspan=\"2\"><img src=\"themes/memlabs_blueplus/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\">";
}
echo "<br><br></td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\"
bgcolor=\"#0056a7\"><tr><td width=\"100%\">"
."<br><center>";
footmsg();
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 bgcolor=\"#0056A7\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#d8e1ea\">\n"
."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#d8e1ea\">\n"
."<img src=\"themes/memlabs_blueplus/images/off.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#d8e1ea\"><font class=\"option\"><b> $title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" bgcolor=\"#d8e1ea\"><br>\n"
."<table border=\"0\" width=\"98%\" bgcolor=\"#d8e1ea\" align=\"center\"><tr><td>\n"
."<a href=\"modules.php?name=News&new_topic=$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><tr><td bgcolor=\"#d8e1ea\" align=\"left\">\n"
." "
."<b><font class=\"tiny\">"._POSTEDBY." ";
formatAidHeader($aid);
echo " "._ON." $time $timezone <br> ($counter "._READS.")</font>\n"
."<font class=\"content\">$morelink</font></center>\n"
."<img src=\"themes/memlabs_blueplus/images/pixel.gif\" border=\"0\" height=\"2\">"
."</td></tr></table>\n"
."</td></tr></table><br>\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 bgcolor=\"#000000\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#d8e1ea\">\n"
."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#d8e1ea\">\n"
."<img src=\"themes/memlabs_blueplus/images/off.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#d8e1ea\"><font class=\"option\"><b> $title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" bgcolor=\"#d8e1ea\"><br>\n"
."<table border=\"0\" width=\"98%\" bgcolor=\"#d8e1ea\" align=\"center\"><tr><td>\n"
."<a href=\"modules.php?name=News&new_topic=$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></table>\n"
."</td></tr></table><br><br>\n";
}
function themesidebox($title, $content) {
echo "<table border=\"0\" align=\"center\" width=\"130\" cellpadding=\"0\" cellspacing=\"0\">"
."<tr><td background=\"themes/memlabs_blueplus/images/header.gif\" width=\"130\" height=\"16\">"
." <font color=\"#000000\"><b>$title</b></font>"
."</td></tr><tr><td><img src=\"themes/memlabs_blueplus/images/pixel.gif\" width=\"100%\" height=\"1\"></td></tr></table>\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"130\">\n"
."<tr><td width=\"130\" bgcolor=\"#0056a7\">\n"
."<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"130\">\n"
."<tr><td background=\"themes/memlabs_blueplus/images/back1.gif\" width=\"130\" bgcolor=\"#ffffff\">\n"
."$content"
."</td></tr></table></td></tr></table><img src=\"themes/memlabs_blueplus/images/pixel.gif\" width=\"100%\" height=\"8\">";
}
?>
Favorieten/bladwijzers