Oto od theme.php
<?
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#F1F1F1";
$theme_width = "85%";
$theme_width_l = "165";
$theme_width_r = "165";
echo "<script type='text/javascript' src='".THEME."js/global.js'></script>";
echo "<script type='text/javascript' src='".THEME."js/menu.js'></script>";
function render_header($header_content) {
global $theme_width,$settings,$userdata;
include LOCALE.LOCALESET."search.php";
echo "<center><table class='bodyline' width='80%' cellspacing='0' cellpadding='0' border='0'></center>";
echo "<tr><td align='center' valign='top'>";
echo "<table class='topbkg' width='100%' cellspacing='0' cellpadding='5' border='0'><tr>";
echo "<td width='100%' height='110'>$header_content</td>";
echo "</td></tr></table>";
echo "<center><table width='100%' border='0' cellspacing='0' cellpadding='2'></center><tr>";
echo "<td class='topnav' width='17%'> </td><td align='center' class='topnav'>";
echo "<a href='".BASEDIR."index.php'><img src='".THEME."images/home.gif'></a> ";
echo "<a href='".BASEDIR."downloads.php'><img src='".THEME."images/downloads.gif'></a> ";
if (iMEMBER) {
echo "<a href='".BASEDIR."edit_profile.php'><img src='".THEME."images/account.gif'></a> ";
} else {
echo "<a href='".BASEDIR."register.php'><img src='".THEME."images/register.gif'></a> ";
}
echo "<a href='".BASEDIR."forum/index.php'><img src='".THEME."images/forums.gif'></a> ";
//Search Code
echo "<a href='#goto_forumsearch' id='forumsearch'><img src='".THEME."images/search.gif'></a><script type='text/javascript'>lkmenu_register('forumsearch');</script> ";
echo "<div class='lkmenu_popup' id='forumtools_menu' style='display:none'></div>";
echo "<div class='lkmenu_popup' id='forumsearch_menu' style='display:none'>";
echo "<form action='".BASEDIR."search.php' method='post'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/lkt_1.gif' height='26'><img align='center' src='".THEME."images/icon_search.gif'><font class='title'><center>Search Menu<a name='goto_forumsearch'></a></font>";
echo "</td></tr>";
echo "<tr><td width='255'><font class='lkmenu_text'>Search for Keywords:</font><hr>";
if ($stype == "") $stype = "n";
echo "<input type='text' name='stext' value='Enter search here...' class='lkmenu_input' style='width:255px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\" ><hr>";
echo "<input type='submit' name='search' value='".$locale['408']."' class='button'><br>";
echo "<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['402']."";
echo "<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['403']."";
echo "<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['404']."<br>";
echo "<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['405']."";
echo "<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['406']."";
echo "<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['407']."";
echo "</td></tr></table></form></div>";
//End Search Code
echo "<a href='".BASEDIR."articles.php'><img src='".THEME."images/articles.gif'></a>";
echo "</td>";
echo "<td align='center' class='topnav'>".ucwords(showdate("%A, %B %d, %Y", time()))." </div></td></tr></table>";
echo"<script type='text/javascript'>LKT_init();</script>";
echo "<table border='0' cellpadding='0' cellspacing='0' class='tb2'><tr><td class='tbll'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblbot'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblr'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'><td><img src='".THEME."images/spacer.gif' width='1' height='1' alt=''>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='center'>";
echo "<table width='100%' cellpadding='4' bgcolor='#EFEFEF' cellspacing='0' border='0'><tr>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr></table>\n";
echo"<table cellSpacing='0' cellPadding='4' width='100%' border='0'>";
echo "<tr><td align='center'>".stripslashes($settings['footer'])."<br><table cellSpacing='0' cellPadding='1' width='100%' border='0'>";
echo "<tr><td bgColor='#B9B9A0'><table cellSpacing='0' cellPadding='1' width='100%' border='0'>";
echo "<tr><td width='100%' bgColor='#ffffff' align='center'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td bgColor='#E5E5E1'><div align='center'>";
echo "<table cellSpacing='0' cellPadding='4' width='100%' border='0'>";
echo "<tr><td width='35%'><a href=\"javascript:window.scrollTo(0,0);\">";
echo "<img src='".THEME."images/uparrow.gif' title='Scroll up' align='center'></a> ";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> v".$settings['version']." © 2003-2005";
}
echo "</td>";
echo "<td width='25%'><div align='center'>Talisman - Bava by: <a target='_blank' href='http://phpfusion-themes.com'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:top;'></a></td></div>";
echo "<td width='30%'><div align='center'><font class='visits'>".$settings['counter']." </font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " <a href=\"javascript:window.scrollTo(0,0);\">";
echo "<img src='".THEME."images/uparrow.gif' title='Scroll up' align='top'></a>";
echo "</td></tr></table></div></td></tr>";
echo "<tr><td bgColor='#E5E5E1'><table cellSpacing='0' cellPadding='4' width='100%' border='0'>";
echo "</table></td></tr></table></td></tr></table></td></tr></table>";
echo "<table class='tb2' cellSpacing='0' cellPadding='0' border='0'><tr><td class='tbll'>";
echo "<img height='4' alt src='".THEME."images/spacer.gif' width='8'></td>";
echo "<td class='tblbot'><img height='4' alt src='".THEME."images/spacer.gif' width='8'></td>";
echo "<td class='tblr'><img height='4' alt src='".THEME."images/spacer.gif' width='8'>";
echo "</td></tr></table></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
echo " <table border='0' style='border: 1px solid #B9B9A0' cellpadding='0' cellspacing='1' width='100%'>
<tr>
<td bgcolor='#FFFFFF'>";
echo " <table border='0' cellpadding='2' cellspacing='0' width='100%'>";
echo " <tr>
<td height='27' background='".THEME."images/cellpic3.gif' bgcolor='#E5E5E1'>
<table width='100%' cellspacing='0' cellpadding='0'>";
echo " <tr>
<td nowrap>
<div align='center'>
<font class='storytitle'>
<b> $subject</b>
</font>
</div>
</td>";
echo " <td align='center'>
<a href='".BASEDIR."submit.php?stype=n'>
<img src='".THEME."images/icon_submit.gif' title='Submit News'> <img src='".THEME."images/div.gif'>
<a href='".BASEDIR."submit.php?stype=a'>
<img src='".THEME."images/icon_articles.gif' title='Submit Article'> <img src='".THEME."images/div.gif'> <a href='".BASEDIR."forum/index.php'>
<img src='".THEME."images/icon_forum.gif' title='Visit our Forum'>
</td>
</tr>
</table>
</td>
</tr>";
echo " <tr>
<td colspan='1' bgcolor='#E5E5E1'>";
echo " <table border='0' width='100%' bgcolor='#E5E5E1' align='center'>
<tr>
<td class='content'>
$news
</td>
</tr>
</table>";
echo "<br><hr><div align='center'> <b><font class='tiny'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." ";
echo "</div> News Story has <font class='smaller'>";
echo "".$info['news_reads'].$locale['044']."</font>";
echo "<div align='center'> <font class='content'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'><img src='".THEME."images/readmore.gif' title='Read more on this article'></a>" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments']."<img src='".THEME."images/postacomment.gif' title='Click here to submit a comment'></a> ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/print.gif' title='Print this Story'></a> </div>";
echo " </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>";
echo "<table border='0' cellpadding='0' cellspacing='0' class='tb2'>
<tr>
<td class='tbll'>
<img src='".THEME."images/spacer.gif' alt='' width='8' height='4' />
</td>
<td class='tblbot'>
<img src='".THEME."images/spacer.gif' alt='' width='8' height='4' />
</td>
<td class='tblr'>
<img src='".THEME."images/spacer.gif' alt='' width='8' height='4' />
</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' style='border: 1px solid #B9B9A0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#FFFFFF'>";
echo "<table border='0' cellpadding='2' cellspacing='0' width='100%'>";
echo "<tr><td height='27' background='".THEME."images/cellpic3.gif' bgcolor='#E5E5E1'><table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td nowrap>";
echo "<div align='center'><font class='storytitle'><b> $subject</b></font></div></td><td align='center'><a href='".BASEDIR."submit.php?stype=n'><img src='".THEME."images/icon_submit.gif' title='Submit News'> <img src='".THEME."images/div.gif'> <a href='".BASEDIR."submit.php?stype=a'><img src='".THEME."images/icon_articles.gif' title='Submit Article'> <img src='".THEME."images/div.gif'> <a href='".BASEDIR."forum/index.php'><img src='".THEME."images/icon_forum.gif' title='Visit our Forum'> </td></tr></table></td></tr>";
echo "<tr><td colspan='2' bgcolor='#E5E5E1'>";
echo "<table border='0' width='100%' bgcolor='#E5E5E1' align='center'><tr><td class='content'>";
echo "".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
function render_movie($subject, $movie, $info) {
global $locale;
include LOCALE.LOCALESET."movies.php";
opentable($subject);
echo "<div align='center'><table cellpadding='0' cellspacing='0' style='border-collapse: collapse; background-color:#;' width='100%' class='border'>";
$r = substr($movie, -3, 3);
if ($r=="wmv") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="mpg") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="avi") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="swf") {
echo "<div align='center'>";
echo"<br><br><OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shckwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH='550' HEIGHT='400' id='grmovie' name='grmovie'>
<PARAM NAME=movie VALUE='$movie'>
<param name='menu' value='false'>
<param name='quality' value='high'>
<param name='FlashVars' value='gcode=482CD697'>
<embed src='$movie' flashvars='gcode=482CD697' menu=false quality=high WIDTH='550' HEIGHT='400' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' id='grmovie' name='grmovie'></embed></object><br><br>";
}elseif ($r=="mp3") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br><br>";
}elseif ($r=="wma") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br><br>";
}elseif ($r=="mov") {
echo "<div align='center'>";
echo "<br><br><embed type='video/quicktime' src='$movie' controller='true' target='myself' pluginspage='http://www.apple.com/quicktime/download/' loop='FALSE' autoplay='true' border='1' height='380' width='460'></embed><br><br>";
}elseif ($r=="txt") {
echo "<div align='left'><br><br>";
$buff = nl2br(file_get_contents($movie));
echo $buff."</div><br><br>";
}else{
echo "<div align='center'>";
echo "<br><br><embed src='$movie' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' height='372' width='416'><br><br>";
}
echo "</div></table></div>";
closetable();
}
echo "</td></tr></table></center>";
echo "<br><center><hr></center>";
echo "<div align='center'> <b><font class='tiny'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."";
echo "</div> Article has <font class='smaller'>";
echo "".$info['article_reads'].$locale['044']."</font>";
echo "<hr><div align='center'> <font class='content'>";
if ($info['article_allow_comments']) echo $info['article_comments']."<img src='".THEME."images/postacomment.gif' title='Click here to submit a comment'></a>\n";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/print.gif' title='Print this Story'></a> </div>";
echo "</td></tr></table></td></tr></table></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' class='tb2'><tr><td class='tbll'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblbot'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblr'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td></tr></table>";
}
// Open table begins
function opentable($title) {
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>";
echo " <table border='0' style='border: 1px solid #B9B9A0' cellpadding='0' cellspacing='1' width='100%'>
<tr><td bgcolor='#FFFFFF'>";
echo "<table border='0' cellpadding='4' cellspacing='0' width='100%'>";
echo "<tr><td height='24' background='".THEME."images/cellpic1.gif' bgcolor='#E5E5E1'>";
echo "<font class='block-title'>$title</font></td></tr>";
echo "<tr><td colspan='2' bgcolor='#F1F1F1'>";
}
// Close table end
function closetable() {
echo "</td></tr></table></td></tr></table></td></tr></table>";
echo "<table border='0' cellpadding='0' cellspacing='0' class='tb2'><tr><td class='tbll'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblbot'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblr'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' />";
echo "</td></tr></table>";
}
function openside($title) {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' style='border: 1px solid #B9B9A0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#FFFFFF'>";
echo "<table border='0' cellpadding='4' cellspacing='0' width='100%'>";
echo "<tr><td height='24' background='".THEME."images/cellpic1.gif' bgcolor='#E5E5E1'><table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><img align='center' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'> <font class='block-title'>$title</font>";
echo "</td></tr></table>";
echo "<tr><td colspan='2' bgcolor='#E5E5E1'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closeside() {
echo "</td></tr></table></td></tr></table></td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' class='tb2'><tr><td class='tbll'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblbot'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblr'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr><td>";
echo "<table border='0' style='border: 1px solid #B9B9A0' cellpadding='0' cellspacing='1' width='100%'><tr><td bgcolor='#FFFFFF'>";
echo "<table border='0' cellpadding='4' cellspacing='0' width='100%'>";
echo "<tr><td height='24' background='".THEME."images/cellpic1.gif' bgcolor='#E5E5E1'><table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><img align='center' style='cursor:hand' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'> <font class='block-title'>$title</font>";
echo "</td></tr></table>";
echo "<tr><td colspan='2' bgcolor='#E5E5E1'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr></table></td></tr></table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' class='tb2'><tr><td class='tbll'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblbot'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td><td class='tblr'><img src='".THEME."images/spacer.gif' alt='' width='8' height='4' /></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
//Proton - kody dawaj w code
Edytowane przez proton dnia 25.09.2006 16:41:36
|