dobra mam zrobione:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#61873D";
$body_bg = "#E3E3E3";
$theme_width = "100%";
$theme_width_l = "23";
$theme_width_r = "23";
function render_header($header_content) {
global $theme_width,$settings;
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/hd/Gamer17_hd_01.gif\" WIDTH=30 HEIGHT=250 ALT=\"\"></TD>";
echo" <TD>";
echo" <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"515\" height=\"54\" id=\"nav\" align=\"middle\">";
echo"<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
echo"<param name=\"movie\" value=\"".THEME."images/hd/nav.swf\" />";
echo"<param name=\"quality\" value=\"high\" />";
echo"<param name=\"bgcolor\" value=\"#ffffff\" />";
echo"<embed src=\"".THEME."images/hd/nav.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"515\" height=\"54\" name=\"nav\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
echo"</object></TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/hd/Gamer17_hd_03.gif\" WIDTH=28 HEIGHT=250 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/hd/stretch.gif\" WIDTH=100% HEIGHT=250>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"167\" height=\"250\" id=\"rightlogo\" align=\"middle\">";
echo"<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
echo"<param name=\"movie\" value=\"".THEME."images/hd/rightlogo.swf\" />";
echo"<param name=\"quality\" value=\"high\" />";
echo"<param name=\"bgcolor\" value=\"#ffffff\" />";
echo"<embed src=\"".THEME."images/hd/rightlogo.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"167\" height=\"250\" name=\"rightlogo\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
echo"</object></TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/hd/stretch2.gif\" WIDTH=4 HEIGHT=250 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/hd/Gamer17_hd_07.gif\" WIDTH=24 HEIGHT=250 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"515\" height=\"168\" id=\"hd1\" align=\"middle\">";
echo"<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
echo"<param name=\"movie\" value=\"".THEME."images/hd/hd1.swf\" />";
echo"<param name=\"quality\" value=\"high\" />";
echo"<param name=\"bgcolor\" value=\"#ffffff\" />";
echo"<embed src=\"".THEME."images/hd/hd1.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"515\" height=\"168\" name=\"hd1\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
echo"</object></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/hd/Gamer17_hd_09.gif\" WIDTH=515 HEIGHT=28>";
echo" <center></center></TD>";
echo" </TR>";
echo"</TABLE>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"23\" background=\"".THEME."images/left_bar.gif\"> </td>
<td>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</td>
<td width=\"23\" background=\"".THEME."images/right_bar.gif\"> </td>
</tr>
</table>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD COLSPAN=2>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_01.gif\" WIDTH=539 HEIGHT=20 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/ft/STRETCH.gif\" WIDTH=100% HEIGHT=100>";
echo" </TD>";
echo" <TD COLSPAN=9 ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_03.gif\" WIDTH=220 HEIGHT=83 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_04.gif\" WIDTH=29 HEIGHT=80 ALT=\"\"></TD>";
echo" <TD background=\"".THEME."images/ft/copyright.gif\" WIDTH=510 HEIGHT=63 ALT=\"\">";
if ($license == false) {
echo "<center>Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> © 2003-2006</center><br><center><font class='visits'><b>".$settings['counter']." </b>Unique Visits</font></center>";
}
echo "</td>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_06.gif\" WIDTH=510 HEIGHT=17 ALT=\"\"></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_07.gif\" WIDTH=22 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_08.gif\" WIDTH=33 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_09.gif\" WIDTH=37 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_10.gif\" WIDTH=22 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_11.gif\" WIDTH=29 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_12.gif\" WIDTH=4 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_13.gif\" WIDTH=10 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <A HREF=\"http://www.xenondesigns.com\">";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_14.gif\" WIDTH=15 HEIGHT=17 BORDER=0 ALT=\"\"></A></TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/ft/Gamer17_Footer_15.gif\" WIDTH=48 HEIGHT=17 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function render_news($subject, $news, $info) {
global $locale;
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_03.gif\" WIDTH=281 HEIGHT=14 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm1.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc-05.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/title.gif\" WIDTH=281 HEIGHT=21>";
echo" <b><center><font color=\"#9D0000\">$subject</FONT></center></b></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_07.gif\" WIDTH=281 HEIGHT=10 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/lt.gif\" WIDTH=27 HEIGHT=100%>";
echo" </TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/msg.gif\" WIDTH=100% HEIGHT=100%>$news<br><br><hr>
<img src='".THEME."images/bullet.gif' width='4' height='6' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."
<br><img src='".THEME."images/bullet.gif' width='4' height='6' alt='' > ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$locale['043']."</a> [ ".$info['news_comments']." ] · [ ".$info['news_reads']." ] ".$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a></td>";
echo" <TD background=\"".THEME."images/std/rt.gif\" WIDTH=27 HEIGHT=100%></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/blc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/btm.gif\" WIDTH=100% HEIGHT=23>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/brc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function render_article($subject, $article, $info) {
global $locale;
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_03.gif\" WIDTH=281 HEIGHT=14 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm1.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc-05.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/title.gif\" WIDTH=281 HEIGHT=21>";
echo" <b><center><font color=\"#9D0000\">$subject</FONT></center></b></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_07.gif\" WIDTH=281 HEIGHT=10 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/lt.gif\" WIDTH=27 HEIGHT=100%>";
echo" </TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/msg.gif\" WIDTH=100% HEIGHT=100%>$article<br><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='infobar'>".newsposter($info)."</td><hr>
<td align='right' class='infobar2'>".openform("N",$info['article_id']).newsopts($info,"·").closeform("N",$info['article_id'])."</td></tr>
</table></td>";
echo" <TD background=\"".THEME."images/std/rt.gif\" WIDTH=27 HEIGHT=100%></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/blc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/btm.gif\" WIDTH=100% HEIGHT=23>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/brc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function opentable($title) {
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_03.gif\" WIDTH=281 HEIGHT=14 ALT=\"\"></TD>";
echo" <TD ROWSPAN=3 background=\"".THEME."images/std/tm1.gif\" WIDTH=50% HEIGHT=45>";
echo" </TD>";
echo" <TD ROWSPAN=3>";
echo" <IMG SRC=\"".THEME."images/std/tlc-05.gif\" WIDTH=27 HEIGHT=45 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/title.gif\" WIDTH=281 HEIGHT=21>";
echo" <b><center><font color=\"#9D0000\">$subject</FONT></center></b></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/Gamer17_Story_07.gif\" WIDTH=281 HEIGHT=10 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/std/lt.gif\" WIDTH=27 HEIGHT=100%>";
echo" </TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/msg.gif\" WIDTH=100% HEIGHT=100%>";
}
function closetable() {
echo" </TD>";
echo" <TD background=\"".THEME."images/std/rt.gif\" WIDTH=27 HEIGHT=100%></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/blc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" <TD COLSPAN=3 background=\"".THEME."images/std/btm.gif\" WIDTH=100% HEIGHT=23>";
echo" </TD>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/std/brc.gif\" WIDTH=27 HEIGHT=23 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function openside($title) {
echo"<TABLE WIDTH=175 BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD COLSPAN=3>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_01.gif\" WIDTH=175 HEIGHT=14 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_02.gif\" WIDTH=15 HEIGHT=33 ALT=\"\"></TD>";
echo" <TD background=\"".THEME."images/blocks/title.gif\" WIDTH=145 HEIGHT=20>";
echo" <b><center><font color=\"#9D0000\" face=Verdana font-size:9pxna;>$title</b></font></center></TD>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_04.gif\" WIDTH=15 HEIGHT=33 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_05.gif\" WIDTH=145 HEIGHT=13 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/blocks/lt.gif\" WIDTH=15 HEIGHT=100%>";
echo" </TD>";
echo" <TD background=\"".THEME."images/blocks/msg.gif\" WIDTH=\145\" VALIGN=\"TOP\">";
}
function closeside() {
echo"</TD>";
echo" <TD background=\"".THEME."images/blocks/rt.gif\" WIDTH=15 HEIGHT=100%>";
echo" </TD>";
echo" </TR>";
echo" <TR>";
echo" <TD COLSPAN=3>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_09.gif\" WIDTH=175 HEIGHT=22 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo"<TABLE WIDTH=175 BORDER=0 CELLPADDING=0 CELLSPACING=0>";
echo" <TR>";
echo" <TD COLSPAN=3>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_01.gif\" WIDTH=175 HEIGHT=14 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_02.gif\" WIDTH=15 HEIGHT=33 ALT=\"\"></TD>";
echo" <TD background=\"".THEME."images/blocks/title.gif\" WIDTH=145 HEIGHT=20>";
echo" <b><center><font color=\"#9D0000\" face=Verdana font-size:9pxna;>$title</b></font></center></TD>";
echo" <TD ROWSPAN=2>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_04.gif\" WIDTH=15 HEIGHT=33 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_05.gif\" WIDTH=145 HEIGHT=13 ALT=\"\"></TD>";
echo" </TR>";
echo" <TR>";
echo" <TD background=\"".THEME."images/blocks/lt.gif\" WIDTH=15 HEIGHT=100%>";
echo" </TD>";
echo" <TD background=\"".THEME."images/blocks/msg.gif\" WIDTH=\145\" VALIGN=\"TOP\">";
}
function closesidex() {
echo"</TD>";
echo" <TD background=\"".THEME."images/blocks/rt.gif\" WIDTH=15 HEIGHT=100%>";
echo" </TD>";
echo" </TR>";
echo" <TR>";
echo" <TD COLSPAN=3>";
echo" <IMG SRC=\"".THEME."images/blocks/Gamer17_blocks_09.gif\" WIDTH=175 HEIGHT=22 ALT=\"\"></TD>";
echo" </TR>";
echo"</TABLE>";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
echo "</td></tr></table>\n";
}
?>
|