Przeróbka Diablo. Strona w trakcie powstawania.
http://www.whklan...
Kod theme.php
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2007 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Nuke Conversion for PHP-Fusion v6 |
|---------------------------------------------|
| author: Fusion-Themes - UCTXs © 2007 |
| web: http://fusion-themes.com |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
if (!defined("IN_FUSION")) {
header("Location: ../../index.php");
exit;
}
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#000000";
$body_bg = "#40546E";
$theme_width = "100%";
$theme_width_l = "41";
$theme_width_r = "41";
function render_header($header_content) {
global $theme_width,$settings;
echo"<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td width=\"100%\" height=\"240\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/htmm.jpg\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td width=\"63\" height=\"240\" valign=\"top\"><img src=\"".THEME."images/htl.jpg\" width=\"101\" height=\"240\"></td>";
echo"<td width=\"100%\" align=\"center\" valign=\"top\">";
echo"<img src=\"".THEME."images/banner.gif\">";
echo"<td width=\"105\" valign=\"top\"><img src=\"".THEME."images/htr.jpg\" width=\"105\" height=\"240\"></td>";
echo"</tr>";
echo"</table></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"72\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/hbmm.jpg\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td width=\"193\" height=\"72\" valign=\"top\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"387\" height=\"72\">";
echo"<param name=\"movie\" value=\"".THEME."images/hbl.swf\">";
echo"<param name=\"quality\" value=\"high\">";
echo"<embed src=\"".THEME."images/hbl.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"387\" height=\"72\"></embed></object></td>";
echo"<td width=\"100%\" align=\"center\" valign=\"top\"><img src=\"".THEME."images/hbm.jpg\" width=\"48\" height=\"72\"></td>";
echo"<td width=\"397\" valign=\"top\"><table width=\"396\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/hbr.jpg\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td width=\"37\" height=\"15\"></td>";
echo"<td width=\"294\"></td>";
echo"<td width=\"65\"></td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"19\"></td>";
echo"<td align=\"right\" valign=\"top\"> <marquee>";
echo"<font color=\"#666666\">Witamy na stronie klanu WarHammer!</font> ";
echo"</marquee> ";
echo"<td></td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"38\"></td>";
echo"<td> </td>";
echo"<td></td>";
echo"</tr>";
echo"</table></td>";
echo"</tr>";
echo"</table></td>";
echo"</tr>";
echo"</table>
<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"10\" background=\"".THEME."images/left.jpg\"> </td>
<td>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</td>
<td width=\"10\" background=\"".THEME."images/right.jpg\"> </td>
</tr>
</table>
<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/ftmm.jpg\">";
echo"<tr>";
echo"<td width=\"248\" height=\"168\" valign=\"top\"><table width=\"248\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/fl.jpg\">";
echo"<tr>";
echo"<td width=\"50\" height=\"38\"> </td>";
echo"<td width=\"133\"> </td>";
echo"<td width=\"65\"> </td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"94\"> </td>";
echo"<td valign=\"center\"><marquee behavior='scroll' align='center' valign='bottom' direction='up' height='60' scrollamount='1' scrolldelay='1' onmouseover='this.stop()' onmouseout='this.start()'>WARHAMMER</td>";
echo"<td> </td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"36\"> </td>";
echo"<td> </td>";
echo"<td> </td>";
echo"</tr>";
echo"</table></td>";
echo"<td width=\"100%\" align=\"center\" valign=\"top\"><img src=\"".THEME."images/fm.jpg\" width=\"336\" height=\"168\">";
echo "<center>Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> | Ported by <a target='_blank' href='http://fusion-themes.com'>Fusion-Themes</a></center><br><center><font class='visits'><b>".$settings['counter']." </b>Unique Visits</font></center>";
echo "</td>";
echo"<td width=\"248\" valign=\"top\"><table width=\"248\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/fr.jpg\">";
echo"<tr>";
echo"<td width=\"67\" height=\"24\"> </td>";
echo"<td width=\"126\"> </td>";
echo"<td width=\"55\"> </td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"106\"> </td>";
echo"<td valign=\"center\"><marquee behavior='scroll' align='center' valign='bottom' direction='down' height='60' scrollamount='1' scrolldelay='1' onmouseover='this.stop()' onmouseout='this.start()'>IP: wh.clans.pl:27966</td>";
echo"<td> </td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"38\"> </td>";
echo"<td> </td>";
echo"<td> </td>";
echo"</tr>";
echo"</table></td>";
echo"</tr>";
echo"</table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td height=\"50\" colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/ttl.jpg\" width=\"34\" height=\"50\"></td>";
echo"<td width=\"100%\" valign=\"top\" background=\"".THEME."images/ttm.jpg\"><img name=\"tm\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/ttr.jpg\" width=\"34\" height=\"50\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td width=\"24\" height=\"29\" valign=\"top\" background=\"".THEME."images/tl.jpg\"><img name=\"left\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"3\" valign=\"top\" bgcolor=\"#252525\"><center>$subject</center><br>$news<br><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='infobar'>".newsposter($info)."</td><hr><td align='right' class='infobar2'>".openform("N", $info['news_id']).newsopts($info, "·").closeform("N", $info['news_id'])."</td></tr>
</table</td>";
echo"<td width=\"24\" valign=\"top\" background=\"".THEME."images/tr.jpg\"><img name=\"right\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"46\" colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/tbl.jpg\" width=\"34\" height=\"46\"></td>";
echo"<td valign=\"top\" background=\"".THEME."images/tbm.jpg\"><img name=\"btm\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/tbr.jpg\" width=\"34\" height=\"46\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"0\"></td>";
echo"<td width=\"10\"></td>";
echo"<td></td>";
echo"<td width=\"10\"></td>";
echo"<td></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"1\"><img src=\"spacer.gif\" alt=\"\" width=\"24\" height=\"1\"></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"10\" height=\"1\"></td>";
echo"<td></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"10\" height=\"1\"></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"24\" height=\"1\"></td>";
echo"</tr>";
echo"</table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td height=\"50\" colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/ttl.jpg\" width=\"34\" height=\"50\"></td>";
echo"<td width=\"100%\" valign=\"top\" background=\"".THEME."images/ttm.jpg\"><img name=\"tm\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/ttr.jpg\" width=\"34\" height=\"50\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td width=\"24\" height=\"29\" valign=\"top\" background=\"".THEME."images/tl.jpg\"><img name=\"left\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"3\" valign=\"top\" bgcolor=\"#252525\"><center>$subject</center><br>$news<br><table width='100%' cellpadding='0' cellspacing='0'><tr>
<td class='infobar'>".newsposter($info).openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id'])."</td><hr>
</tr>
</table></td>";
echo"<td width=\"24\" valign=\"top\" background=\"".THEME."images/tr.jpg\"><img name=\"right\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"46\" colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/tbl.jpg\" width=\"34\" height=\"46\"></td>";
echo"<td valign=\"top\" background=\"".THEME."images/tbm.jpg\"><img name=\"btm\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/tbr.jpg\" width=\"34\" height=\"46\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"0\"></td>";
echo"<td width=\"10\"></td>";
echo"<td></td>";
echo"<td width=\"10\"></td>";
echo"<td></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"1\"><img src=\"spacer.gif\" alt=\"\" width=\"24\" height=\"1\"></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"10\" height=\"1\"></td>";
echo"<td></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"10\" height=\"1\"></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"24\" height=\"1\"></td>";
echo"</tr>";
echo"</table>";
}
function opentable($title) {
echo"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td height=\"50\" colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/ttl.jpg\" width=\"34\" height=\"50\"></td>";
echo"<td width=\"100%\" valign=\"top\" background=\"".THEME."images/ttm.jpg\"><img name=\"tm\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/ttr.jpg\" width=\"34\" height=\"50\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td width=\"24\" height=\"29\" valign=\"top\" background=\"".THEME."images/tl.jpg\"><img name=\"left\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"3\" valign=\"top\" bgcolor=\"#252525\" class=\"panel-main\"><center>$title</center>";
}
function closetable() {
echo"</td>";
echo"<td width=\"24\" valign=\"top\" background=\"".THEME."images/tr.jpg\"><img name=\"right\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"46\" colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/tbl.jpg\" width=\"34\" height=\"46\"></td>";
echo"<td valign=\"top\" background=\"".THEME."images/tbm.jpg\"><img name=\"btm\" src=\"".THEME."images/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>";
echo"<td colspan=\"2\" valign=\"top\"><img src=\"".THEME."images/tbr.jpg\" width=\"34\" height=\"46\"></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"0\"></td>";
echo"<td width=\"10\"></td>";
echo"<td></td>";
echo"<td width=\"10\"></td>";
echo"<td></td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"1\"><img src=\"spacer.gif\" alt=\"\" width=\"24\" height=\"1\"></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"10\" height=\"1\"></td>";
echo"<td></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"10\" height=\"1\"></td>";
echo"<td><img src=\"spacer.gif\" alt=\"\" width=\"24\" height=\"1\"></td>";
echo"</tr>";
echo"</table>";
}
function openside($title) {
echo"<table width=\"153\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/bm.jpg\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td height=\"72\" colspan=\"3\" valign=\"top\"><table width=\"183\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/bt.jpg\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td width=\"183\" height=\"18\"></td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"34\" align=\"center\" valign=\"bottom\"><font color=\"#8A0000\" face=\"Arial, Helvetica, sans-serif\"><strong>$title</strong></font></td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"20\"> </td>";
echo"</tr>";
echo"</table></td>";
echo"</tr>";
echo"<tr> ";
echo"<td width=\"22\" height=\"102\"> </td>";
echo"<td width=\"140\" valign=\"top\">";
}
function closeside() {
echo"</td>";
echo"<td width=\"21\"> </td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"64\" colspan=\"3\" valign=\"top\"><img src=\"".THEME."images/bb.jpg\" width=\"183\" height=\"64\"></td>";
echo"</tr>";
echo"</table>";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo"<table width=\"153\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/bm.jpg\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td height=\"72\" colspan=\"3\" valign=\"top\"><table width=\"183\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"".THEME."images/bt.jpg\">";
echo"<!--DWLayoutTable-->";
echo"<tr> ";
echo"<td width=\"183\" height=\"18\"></td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"34\" align=\"center\" valign=\"bottom\"><font color=\"#8A0000\" face=\"Arial, Helvetica, sans-serif\"><strong>$title</strong></font></td>";
echo"</tr>";
echo"<tr>";
echo"<td height=\"20\"> </td>";
echo"</tr>";
echo"</table></td>";
echo"</tr>";
echo"<tr> ";
echo"<td width=\"22\" height=\"102\"> </td>";
echo"<td width=\"140\" valign=\"top\">";
}
function closesidex() {
echo"</td>";
echo"<td width=\"21\"> </td>";
echo"</tr>";
echo"<tr> ";
echo"<td height=\"64\" colspan=\"3\" valign=\"top\"><img src=\"".THEME."images/bb.jpg\" width=\"183\" height=\"64\"></td>";
echo"</tr>";
echo"</table>";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='5'>";
echo "</td></tr></table>\n";
}
?>
Edytowane przez poziomamp dnia 08.04.2008 20:30:00
|