Parašė weberiz· 2010 Rugs. 5 18:09:47
#2
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#ffffff";
$theme_width = "950";
$theme_width_l = "200";
$theme_width_r = "200";
function render_header($header_content) {
global $theme_width,$userdata,$data,$db_prefix,$lookup,$msg_count,$aidlink,$locale,$settings;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' style='margin-top:-8px;'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='324' class='header1'></td>
<td width='305' class='header2'>";
echo "<table width='100%' cellspacing='0' cellpadding='0' align='left'>";
if (file_exists(INFUSIONS."kovu_statistika_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."kovu_statistika_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."kovu_statistika_panel/locale/Lietuva.php";
}
$result = dbquery("SELECT * FROM ".$db_prefix."kovu_statistika ORDER BY kovu_statistika_id DESC LIMIT 0,5");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$klanotagas = trimlink($data['kovu_statistika_tagas'], 17);
echo "<tr><td width='70%' class='small'><img src='".THEME."images/bullet.gif'> <img src='".IMAGES."veliavos/".$data['kovu_statistika_salis'].".png'> <a href='".INFUSIONS."kovu_statistika_panel/kovu_statistika.php?placiau=".$data['kovu_statistika_id']."' class='side' title='".$klanotagas."'><b>".trimlink($klanotagas,13)."</b></a></td>\n";
$klano_punktas = $data['kovu_statistika_punktas11'] + $data['kovu_statistika_punktas21'];
$prieso_punktas = $data['kovu_statistika_punktas12'] + $data['kovu_statistika_punktas22'];
$laimeto_spalva = "#009900";
$piesti_spalva = "#000099";
$pralaimeto_slapva = "#990000";
if($klano_punktas > $prieso_punktas) {
$spalva = "$laimeto_spalva";
} elseif($klano_punktas < $prieso_punktas) {
$spalva = "$pralaimeto_slapva";
} elseif($klano_punktas == $prieso_punktas) {
$spalva = "$piesti_spalva";
}
echo "<td align='center' width='30%' class='small'><b><font color=$spalva>$klano_punktas : $prieso_punktas</font></b></td></tr>";
}
} else {
echo "<tr><td><center>".$locale['004']."</center></td></tr>\n";
}
echo "<tr><td colspan='2' align='right' class='small'><a href='".INFUSIONS."kovu_statistika_panel/kovu_statistika.php' class='side'>
<b>".$locale['EWS304']."</b></a></td></tr></table>";
";
}
echo "</table>";
}
echo" </td>
<td width='321' class='header3'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,12");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0' align='left'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 30);
echo "<tr><td class='small' style='padding-left: 20px;'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='downloads'><b>$itemsubject</b></a>
</td>
</tr>\n";
}
echo "</table>";
}
echo" </td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='header4'>
<td><img src='".THEME."images/links/1.gif' border='0'></td>
<td><a href='".BASEDIR."news.php'><img src='".THEME."images/links/2.gif' border='0'></a></td>
<td><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/links/3.gif' border='0'></a></td>
<td><a href='".BASEDIR."downloads.php'><img src='".THEME."images/links/4.gif' border='0'></a></td>
<td><a href='".BASEDIR."viewpage.php?page_id=1'><img src='".THEME."images/links/5.gif' border='0'></a></td>
<td><a href='".BASEDIR."/viewpage.php?page_id=2'><img src='".THEME."images/links/6.gif' border='0'></a></td>
<td><a href='".BASEDIR."http://www.serveriai.atomkat.lt/'><img src='".THEME."images/links/7.gif' border='0'></a></td>
<td><a href='".BASEDIR."reklama.php'><img src='".THEME."images/links/8.gif' border='0'></a></td>
<td><img src='".THEME."images/links/9.gif' border='0'></td>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>";
if (iMEMBER) {
echo" <td width='460' class='header5logged'>";
}else{
echo" <td width='460' class='header5'>";
}
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='291' border='0' cellspacing='0' cellpadding='0' style='padding-left:10px; padding-top:11px;'>
<tr><td>";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' height='50' style='border:1px solid #555555'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.jpg' width='50' height='50' style='border:1px solid #555555'></center>\n";
}
echo "</td>
<td align='left' style='padding-right: 0px;'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='zona'>Aprašymas</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='zona'>Žinutės [naujų: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a><br>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='zona'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='zona'>".$locale['084']."</a>
</td></tr>
</table>";
} else {
echo "<table align='left' width='460' border='0' cellspacing='0' cellpadding='0'>
<form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' style='padding-right:29px; padding-top:10px;'> <input type='text' name='user_name' class='textbox2' style='width:113px; height:16px;'></td>
<td align='left' style='padding-left:03px; padding-right:119px; padding-top:10px;'> <input type='password' name='user_pass' class='textbox2' style='width:113px;height:16px;'></td>
</tr>
<tr>
<td align='right' style='padding-top:3px;'><input type='checkbox' name='remember_me' value='y'></td>
<td align='left' style='padding-top:3px;'> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
<tr>
<td align='right'> <a class='register' href=".BASEDIR."register.php><b>Registracija</b></a> </td>
<td align='left' style'padding-left:0px;'><a class='register' href=".BASEDIR."lostpassword.php><b>Slaptazodis</b></a></td>
</tr>
</form></table>";
}
echo "</td>
<td width='490' class='header6'>";
include_once "reklama.php";
echo" </td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='footer'>
<tr>
<td align='left' width='150' style='padding-left: 27px;'>Kurejas: <b>G|zMo</b></td>
<td align='center' width='500' style='padding-bottom: 5px;'>".stripslashes($settings['footer'])."</td>
<td align='right' width='150' style='padding-right: 27px;'>TVS:<b> PHP-FUSION v6<b></td>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='news-capmain'>
<tr>
<td class='news-capmain-left'><img src='".THEME."images/blank.gif' width='15' height='35' alt='' style='display:block'></td>
<td>
<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td class='news-subject'>$subject</td>
</tr>
<tr>
<td class='news-date'>".showdate("shortdate", $info['news_date'])." - <a class='news' href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
<a class='comments' href='news.php?readmore=".$info['news_id']."' style='padding-left: 0px;'>Komentarai:[".$info['news_comments']."]</a>
</td>
</tr>
</table>
</td>
<td>
<table cellpadding='0' cellspacing='0' width='100%'><tr>
<td align='right' class='news-subject'><a href='news.php?readmore=".$info['news_id']."'><img src='".THEME."images/readmore.gif' border='0'></a></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='news-body'>$news</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<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,"<br>").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='top-left'><img src='".THEME."images/blank.gif' width='135' height='36' alt='' style='display:block'></td>
<td class='top-center' width='100%'>$title</td>
<td class='top-right'><img src='".THEME."images/blank.gif' width='147' height='36' alt='' style='display:block'></td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='bottom-left'><img src='".THEME."images/blank.gif' width='13' height='13' alt='' style='display:block'></td>
<td class='bottom-center' width='100%'><img src='".THEME."images/blank.gif' width='1' height='13' alt='' style='display:block'></td>
<td class='bottom-right'><img src='".THEME."images/blank.gif' width='13' height='13' alt='' style='display:block'></td>
</tr>
</table>";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td class='closeside'></td>
</tr>
</table>\n";
tablebreak();
}
function openside2($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain2'>$title</td>
</tr>
<tr>
<td class='side-body2'>\n";
}
function closeside2() {
echo "</td>
</tr>
<tr>
<td class='closeside2'></td>
</tr>
</table>\n";
tablebreak();
}
function openside3($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='scapmain3'>$title</td>
</tr>
<tr>
<td class='side-body3'>\n";
}
function closeside3() {
echo "</td>
</tr>
<tr>
<td class='closeside3'></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";
}
?>
pabandyk