Va visas theme.php kodaS:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#ffffff";
$body_bg = "#FFFFFF";
$theme_width = "911";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;
echo "
<tr>
<table id='Table_01' width='911' height='152' border='0' cellpadding='0' align='center' cellspacing='0'>
$arr = array('cesozona.nkk.lt','cszonee.nkk.lt/reklama');
$bnr = array
('<img src='http://www.cszonee.nkk.lt/reklama/730x100/cesoz730x100.gif' style='margin:5px;' border='0' align='center'>',
'<img src='http://www.cszonee.nkk.lt/images/730x100.gif'');
$cc = count($arr);
$cl = $cc-1;
$rand = rand(0,$cl);
echo "<center><a href='http://$arr[$rand]'>$bnr[$rand]</a></center>";
</table>
<table id='Table_01' width='911' height='30' border='0' cellpadding='0' align='center' cellspacing='0'>
<tr>
<td
background='".THEME."images/gtaaa_05.jpg' width='146' height='35' alt=''></td>
<td>
<a href='".BASEDIR."news.php'><img src='".THEME."images/gtaaa_06.jpg' width='55' height='35' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."news.php'><img src='".THEME."images/gtaaa_07.jpg' width='68' height='35' border='0' alt=''></a></td>
<td>
<a href='".FORUM."index.php'><img src='".THEME."images/gtaaa_08.jpg' width='68' height='35' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."contact.php'><img src='".THEME."images/gtaaa_09.jpg' width='73' border='0' height='35' alt=''></a></td>
<td>
<a href='".BASEDIR."downloads.php'><img src='".THEME."images/gtaaa_10.jpg' width='71' height='35' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."faq.php'><img src='".THEME."images/gtaaa_11.jpg' width='65' height='35' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."photogallery.php'><img src='".THEME."images/gtaaa_12.jpg' width='62' height='35' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."viewpage.php?page_id=2'><img src='".THEME."images/gtaaa_13.jpg' width='70' height='35' border='0' alt=''></a></td>
<td>
<a href='".BASEDIR."articles.php'><img src='".THEME."images/gtaaa_14.jpg' width='76' height='35' border='0' alt=''></a></td>
<td
background='".THEME."images/gtaaa_15.jpg' width='157' height='35' border='0' alt=''></td>
</tr>
<tr>
<td colspan='11'
background='".THEME."images/gtaaa_16.jpg' width='$theme_width' height='129' alt=''>
<table align='left' width='240px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 5px;' align='left' width='240'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,7");
if (dbrows($result) != 0) {
echo "<table style='padding-left: 15px;' width='260' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 30);
echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
}
echo "</table>
<table align='left' width='232px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 40px;' align='right' width='240'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,7");
if (dbrows($result) != 0) {
echo "<table width='260' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 30);
echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</table>
<table align='left' width='320px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 42px;' align='left' width='320'>";
$result = dbquery("
SELECT * FROM ".$db_prefix."threads
INNER JOIN ".$db_prefix."forums ON ".$db_prefix."threads.forum_id=".$db_prefix."forums.forum_id
WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 7
");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_subject'], 45);
echo "» <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</td></tr></table></td></tr></table>";
include("http://www.cszonee.nkk.lt/reklama/730x100%20reklamos.php");
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='$theme_width' class='footer'>
<tr>
<td align='center' class='footer'>Sistema: <a href='http://www.php-fusion.co.uk' style='color:#cecece;'>Php-Fusion</a> Redaguota: <a href='' style='color:#cecece;'>Gytisz*</a>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>
<br>Pagal: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' style='color:#cecece;'><b>".$info['user_name']."</b></a> Įdėta: ".showdate("%y.%m.%d", $info['news_date'])."<img src='".THEME."images/blank.gif' width='15' height='0'><a href='news.php?readmore=".$info['news_id']."' style='color:#9a9a9a;'><b>Žiūrėti daugiau</b></a>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside_header($title) {
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-panel'>\n";
}
function closeside_header() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function openside_panel($title) {
echo "<table align='center' cellpadding='center' cellspacing='0' width='100%'>
<tr>
<td class='side-body-panel'>\n";
}
function closeside_panel() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
0
|