Parašė _Kanopa· 2008 Lap. 11 16:11:44
#1
Beda yra tokia tema nusislinkusi i kairi sona kas blogai?
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#313234";
$theme_width = "980";
$theme_width_l = "322";
$theme_width_r = "0";
function render_header($header_content) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
echo "<body background=\"".THEME."images/need-for-speed-1_27.jpg\" text=\"white\">
<script type='text/javascript' src='".INFUSIONS."info_panel/javascript/gpe.js'></script>
<script type='text/javascript' src='".THEME."grade.js'></script>
<script type='text/javascript' src='".INFUSIONS."shoutbox_panel/functions.js'></script>
<table><tr><td>
<center>
<table id='Tabela_01' border='0' cellpadding='0' cellspacing='0' width='1000' >
<tr>
<td colspan='10'>
<img id='lay1_01' src='".THEME."images/lay1_01.gif' width='1000' height='20' alt='' /></td>
</tr>
<tr>
<td colspan='10' background='".THEME."images/lay1_02.gif' width='1000' height='39' style=\"border: 0; padding-top: 10; padding-left: 70; padding-right: 0; padding-bottom: 10;\">
<script type='text/javascript' src='http://www.darmowe-statystyki.com/usluga.dodatek.20'></script>
</td>
</tr>
<tr>
<td colspan='30'>
<img id='lay1_07' src='".THEME."images/logo.jpg' width='880' height='350' alt='' /></td>
</tr>
<tr>
<td colspan='6' background='".THEME."images/lay1_04.gif' width='427' height='170' style=\"border: 0; padding-top: 20; padding-left: 70; padding-right: 0; padding-bottom: 10;\" >
";
if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' hight='100' alt='".$data['user_name']."'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";
} else {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";
echo "<img src='".FORUM."/images/brak.gif' width='50' hight='50'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";
echo"<table><tr><td></td></tr></table>";
}
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo " <img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."user/profile.php' >Edytuj Profil</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."user/pw.php' >Wiadomo¶ci</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."user/members.php' >Uæytkownicy</a><br>
<br>
\n";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>
<td></td></tr>
</table>";
echo "\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<b><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php$aidlink' >Panel Administratora</a></b><br>\n";
}{echo "\n
";
echo"<div style=\"text-align: left\"><br><input type='button' class='button' value='Wyloguj' onClick=\"window.self.open('".BASEDIR."setuser.php?logout=yes','_self')\"></div>\n";
if ($msg_count) echo "<center><b><a href='".BASEDIR."user/pw.php' class='side2'>".sprintf('Masz %u PW' , $msg_count)."</a></b></center>\n";
}
tablebreak();
} else {
opensidel();
echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."
<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='pass' value='Login....' onBlur=\"if(this.value=='') this.value='Login....';\" onFocus=\"if(this.value=='Login....') this.value='';\" style=\"padding-top: 4px; border: 4px; padding-left: 5px; padding-right: 29px\" ><br><br>
<input type='password' name='user_pass' class='pass' value='has³o' onBlur=\"if(this.value=='') this.value='Has³o....';\" onFocus=\"if(this.value=='has³o') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br>
<input type='checkbox' name='remember_me' value='y' title='Zapamiźtaj mnie' style='vertical-align:middle;'>
<input type='submit' name='login' value='' class='inne'>
</form>
<br>\n";
if ($settings['enable_registration']) {
echo "Skorzystaj z darmowej <a href='".BASEDIR."register.php' >Rejestracja</a><br>\n";
}
echo "Zagubi³es has³o ? <a href='".BASEDIR."lostpassword.php' >Odzyskaj je!</a>
</div>\n";
}
closesidel();
echo "</center>
</td>
<td colspan='3' background='".THEME."images/lay1_05.gif' width='248' height='170' style=\"border: 0; padding-top: 30; padding-left: 10; padding-right: 10; padding-bottom: 10;\">
";
$result=dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,8"); //<<LIMIT WYSWIETLANYCH UÆYTKOWNIKÓW//
if(dbrows($result)!=0){
while($data=dbarray($result)){
$lastseen=time()-$data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if($lastseen<60){
$lastseen="<font color='#CCCCCC'><b>na stronie</b></font>"; //<<uzytkownik online //
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>juæ go nie ma</b></font>"; //<<uzytkownik odchchodzi, po 360 sek od czasu wylogowania//
}elseif($iW>0){
if($iW==1) $Text="".$locale['XXX_007']."";
elseif($iW==2 || $iW==3 || $iW==4) $Text="".$locale['XXX_011']."";
else $Text="".$locale['XXX_008']."";
$lastseen="$iW $Text";
}elseif($iD>0){
if($iD==1) $Text="".$locale['XXX_009']."";
else $Text="".$locale['XXX_010']."";
$lastseen="$iD $Text";
}else{
$lastseen="$iH:$iM:$iS";
}
if (!isset($start)) $start="";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='small'>
<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>";
echo "<span style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</span></b></a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>"; //wyswietlanie na stronie //
}
}
echo"<table align=\"down\" ><tr><td>";
// TEN KOD WYSWIETLA ILU JEST GOSCI ONLINE POD UZYTKOWNIKAMI //
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td align=\"left\" class='small'> <b><span style=\"color: #C0C0C0\">".$locale['011']."</span></td><td align=\"right\" class='small'>".dbrows($result)."</b></td></tr></table>\n";
$result = dbquery(
"SELECT ton.*, user_id,user_name,user_color,user_prefix FROM ep_online ton
LEFT JOIN ep_users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
} else {
echo $locale['013']."<br>\n";
}
echo "</td></tr></table>
</td>
<td background='".THEME."images/lay1_06.gif' width='325' height='170' style=\"border: 0; padding-top: 30; padding-left: 10; padding-right: 70; padding-bottom: 9;\">
";
$result = dbquery("SELECT * FROM ".$db_prefix."threads WHERE thread_sticky='0' ORDER by thread_views DESC LIMIT 0,9");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['thread_id'], 23);
$itemdescription = trimlink($data['thread_subject'], 23);
echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tbody><tr><td class=\"small\" align=\"left\" width=\"75%\"><img src=\"".THEME."forum/folder.gif\" height=\"11\"> <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."'>".$data['thread_subject']."
</a></td>
<td align=\"right\" width=\"25%\">[ ".$data['thread_views']." ]</td></tr></tbody></table>
\n";
}
}
echo"
</td>
</tr>
<tr>
<td>
<img src='".THEME."images/odstźp.gif' width='103' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='95' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='106' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='46' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='49' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='28' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='61' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='54' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='133' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='325' height='1' alt='' /></td>
</tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0' align='center'>
<tr><td>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$db_prefix,$locale,$userdata,$aidlink;
echo"
</td></tr>
</table>
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" >
<tr>
<td colspan='10'>
<img id='lay1_22' src='".THEME."images/lay1_22.gif' width='1000' height='24' alt='' /></td>
</tr>
<tr>
<td>
<img id='lay1_23' src='".THEME."images/lay1_23.gif' width='103' height='17' alt='' /></td>
<td>
<a href='http://extreme-fusion.pl'><img id='lay1_24' border=\"0\" src='".THEME."images/lay1_24.gif' width='95' height='17' alt='' /></a></td>
<td>
<img id='lay1_25' border=\"0\" src='".THEME."images/lay1_25.gif' width='106' height='17' alt='' /></td>
<td colspan='2'>
<a href='http://egrafix.yoyo.pl/'><img id='lay1_26' border=\"0\" src='".THEME."images/lay1_26.gif' width='95' height='17' alt='' /></a></td>
<td colspan='2'>
<img id='lay1_27' src='".THEME."images/lay1_27.gif' width='89' height='17' alt='' /></td>
<td>
<img id='lay1_28' src='".THEME."images/lay1_28.gif' width='54' height='17' alt='' /></td>
<td colspan='2'>
<img id='lay1_29' src='".THEME."images/lay1_29.gif' width='458' height='17' alt='' /></td>
</tr>
<tr>
<td colspan='10'>
<img id='lay1_30' src='".THEME."images/lay1_30.gif' width='1000' height='17' alt='' /></td>
</tr>
<tr>
<td>
<img src='".THEME."images/odstźp.gif' width='103' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='95' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='106' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='46' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='49' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='28' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='61' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='54' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='133' height='1' alt='' /></td>
<td>
<img src='".THEME."images/odstźp.gif' width='325' height='1' alt='' /></td>
</tr>
</table>
</td></tr></table>
\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo " <table border=\"0\" width='650' cellspacing=\"0\" cellpadding=\"0\" >
</tr>
<tr>
<td colspan='6' background='".THEME."images/lay1_16.gif' width='650' height='39' style=\"border: 0; padding-top: 0; padding-left: 20; padding-right: 95; padding-bottom: 9;\">:: $subject</td>
</tr>
<tr>
<td background='".THEME."images/lay1_11.gif' width='650' height='9' style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 95; padding-bottom: 10;\">$news</td>
</tr>
<tr>
<td colspan='6'>
<img id='fifa_11' src='".THEME."images/lay1_11.gif' width='650' height='9' alt='' /></td>
</tr>
<tr>
<td colspan='6'>
<img id='fifa_11' src='".THEME."images/lay1_20a.gif' width='650' height='9' alt='' /></td>
</tr>
<tr>
<td colspan='4' background='".THEME."images/lay1_11.gif' style=\"border: 0; padding-top: 0; padding-left: 60; padding-right: 95; padding-bottom: 10;\" align='right' >
<font color='#949494'><center>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'><span style='color:#".$info['user_color']."'>".$info['user_prefix'].$info['user_name']."</span></a><br>
".$locale['041'].showdate("longdate", $info['news_date'])." <br>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·
".$info['news_reads'].$locale['044']."</font>
</td>
</td>
</tr>
<tr>
<td colspan='6'>
<img id='lay1_14' src='".THEME."images/lay1_14.gif' width='650' height='7' alt='' /></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"> <tr>
<td colspan='6' background='".THEME."images/lay1_16.gif' width='650' height='39' style=\"border: 0; padding-top: 0; padding-left: 20; padding-right: 95; padding-bottom: 9;\">:: $subject</td>
</tr>
<tr>
<td background='".THEME."images/lay1_11.gif' width='650' height='9' style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 95; padding-bottom: 10;\">$article</td>
</tr>
<tr>
<td colspan='6'>
<img id='fifa_11' src='".THEME."images/lay1_11.gif' width='650' height='9' alt='' /></td>
</tr>
<tr>
<td colspan='6'>
<img id='fifa_11' src='".THEME."images/lay1_20a.gif' width='650' height='9' alt='' /></td>
</tr>
<tr>
<td colspan='4' background='".THEME."images/lay1_11.gif' style=\"border: 0; padding-top: 0; padding-left: 60; padding-right: 95; padding-bottom: 10;\" align='right' >
<font color='#949494'><center>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br>
".$locale['041'].showdate("longdate", $info['article_date'])."<br>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ·
".$info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
<tr>
<td><img src='".THEME."images/lay1_14.gif' border=\"0\" width='650' height='7' /></td>
</tr>
</table>
\n";
}
function opentable($title) {
echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width='650' >
<tr>
<td background='".THEME."images/lay1_16.gif' width='650' height='39' colspan='6' style=\"border: 0; padding-top: 0; padding-left: 20; padding-right: 95; padding-bottom: 9;\">$title</td>
</tr>
<tr>
<td colspan='6' background='".THEME."images/lay1_11.gif' width='650' style=\"border: 0; padding-top: 10; padding-left: 20; padding-right: 95; padding-bottom: 10;\">\n";
}
function closetable() {
echo "</tr>
<tr>
<td><img src='".THEME."images/lay1_14.gif' border=\"0\" width='650' height='7' /></td>
</td>
</tr>
<tr>
</table>\n";
}
function openside($title) {
echo " <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"350\">
<tr>
<tr>
<td background='".THEME."images/lay1_08.gif' width=\"350\" height='39' colspan='4' style=\"border: 0; padding-top:9; padding-left: 90; padding-right: 10; padding-bottom: 10;\" > :: $title</td>
</tr>
<tr>
<td colspan='4' background='".THEME."images/lay1_10.gif' width=\"350\" style=\"border: 0; padding-top: 10; padding-left: 75; padding-right: 15; padding-bottom: 10;\">
";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td><img src='".THEME."images/lay1_13.gif' border=\"0\" height=\"7\" width=\"350\" /></td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
<td class='sidi-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-dol'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-dos'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-dor'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='0'></td></tr>
</table>\n";
}
?>
Redagavo _Kanopa· 2008 Lap. 11 16:11:10