Navigacija

Vartotojų tinkle

Prisijungusių svečių: 619
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

saulyzas 1 savaitė
MaFetas 1 savaitė
TOMIJUS 2 savaitės
ozzWANTED 2 savaitės
Reikalas11 savaitės
Jaunelis17 savaitės
lanis17 savaitės
And2s18 savaitės
Memento Mori23 savaitės
Quwqkibor25 savaitės
asirija29 savaitės
tomeem31 savaitės
weberiz35 savaitės
mRokass37 savaitės
kartoonas38 savaitės
grunskiz41 savaitės
Bruksnys41 savaitės
illusion41 savaitės
ordo42 savaitės
Jurgaila43 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 18.217.246.148
Naujienų: 529
Straipsnių: 235
Temų: 52,588
Postų: 522,537
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Padekit su grafa v2
Forumas | Modai, įskiepiai, panelės (PHP-FUSION) | Themes

Autorius: NixoNas Peržiūrų: 16782      Spausdinti temą
2008 Vas. 21 12:02:43          1 žinutė iš 39
Spausdinti pranešimą

turiu sita theme ir nzn kokiu reikia modu kad sitos paneles rodytu.... plz padekit jei kas galite....

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 12:02:08          2 žinutė iš 39
Spausdinti pranešimą
Prefix'ą pakeisk...

2008 Vas. 21 12:02:09          3 žinutė iš 39
Spausdinti pranešimą
o kaip? žliumbia

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 12:02:57          4 žinutė iš 39
Spausdinti pranešimą
idek savo themes.php failai

http://androider.info/
2008 Vas. 21 12:02:35          5 žinutė iš 39
Spausdinti pranešimą
o kam ?

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:05          6 žinutė iš 39
Spausdinti pranešimą
theme.php atrask tą vietą kur yra vendeta.ep ir jį pakeisk į savo nustatytą prefix'ą(tai greičiausiai bus fusion)

2008 Vas. 21 13:02:34          7 žinutė iš 39
Spausdinti pranešimą
gali man padaryti as tau priseksiu ta theme.php
ok?

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:46          8 žinutė iš 39
Spausdinti pranešimą
Tu jo nesek o code ydek tiktai..

http://androider.info/
2008 Vas. 21 13:02:05          9 žinutė iš 39
Spausdinti pranešimą
Rašyk theme.php failą

2008 Vas. 21 13:02:30          10 žinutė iš 39
Spausdinti pranešimą

<?
// theme settings
$body_text = "#000000";
$body_bg = "#210000";
$theme_width = "791";
$theme_width_l = "267";
$theme_width_r = "267";

function render_header($header_content) {

global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix;

if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."user_info_panel/locale/English.php";
}

echo "<table border=\"0\" width='$theme_width' cellpadding=\"0\" cellspacing=\"0\" align=\"center\" bgcolor=\"#272727\">
<!-- 1 -->
<tr>
   <td>
   
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_02.jpg'); height: 41px; width: 238px\"></td>
   <td style=\"background-image: url('".THEME."images/grafa_03.jpg'); height: 41px; width: 368px\"></td>
   <td><a onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://grafa.biz');\" href=\"http://grafa.biz\"><img src=\"".THEME."images/grafa_04.jpg\" width=\"32\" height=\"41\" border=\"0\" alt=\"Ustaw jako startow±\"></a></td>
   <td>
<a href='#' onClick=\"window.external.AddFavorite('http://www.grafa.biz/', 'Grafa.biz Centrum Grafika')\"><img src=\"".THEME."images/grafa_05.jpg\" width=\"30\" height=\"41\" border=\"0\" alt=\"Dodaj do ulubionych\"></a></td>
   <td><a href=\"search.php\"><img src=\"".THEME."images/grafa_06.jpg\" width=\"32\" height=\"41\" border=\"0\" alt=\"Szukaj\"></a></td>
   <td><a href=\"contact.php\"><img src=\"".THEME."images/grafa_07.jpg\" width=\"31\" height=\"41\" border=\"0\" alt=\"Kontakt\"></a></td>
   <td><a href=\"login.php\"><img src=\"".THEME."images/grafa_08.jpg\" width=\"60\" height=\"41\" border=\"0\" alt=\"Zaloguj\"></a></td>
</tr>
</table>
   
   </td>
</tr>

<!-- 2 -->
<tr>
   <td>
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_10.jpg'); height: 206px; width: 238px\" valign=\"top\">
   <!-- logowanie -->
   
   <div style=\"padding-left: 34px; padding-right: 29px; padding-top: 11px\">";

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='50' hight='50' 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='70' hight='70'></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>";


}

$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."edit_profile.php' class='side'>Edytuj Profil</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Uæytkownicy</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."usergalerie/edit_usergalerie.php' class='side'>Galeria Usera <b>[New]</b></a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."user/' class='side'>Panel u&#380;ytkownika</a><br>\n";

if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {

echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php$aidlink' class='side'> Administracja</a><br>\n";

}{echo "<br><br>

<div style=\"text-align: center\"><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a><img src='".THEME."images/bullet.gif' alt=''></div>\n";

if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.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='textbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>

<input type='password' name='user_pass' class='textbox' value='has³o' onBlur=\"if(this.value=='') this.value='has³o';\" onFocus=\"if(this.value=='has³o') this.value='';\" style='width:100px'><br>

<input type='checkbox' name='remember_me' value='y' title='Zapamiźtaj mnie' style='vertical-align:middle;'>

<input type='submit' name='login' value='Wchodzź!' class='button'>

</form>

<br>\n";

if ($settings['enable_registration']) {

echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja</a><br>\n";

}

echo "<a href='".BASEDIR."lostpassword.php' class='side'>Zgubione has³o</a>

</div>\n";

}
closesidel();
   
   
   
   
echo "</div>
   
   
   
   
   
   </td>
   <td>
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td colspan=\"5\" style=\"background-image: url('".THEME."images/grafa_11.jpg'); height: 147px; width: 553px\"></td>
</tr>
<tr>
   <td><img src=\"".THEME."images/grafa_12.jpg\" width=\"44\" height=\"59\" border=\"0\" alt=\"\"></td>
   <td><a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/grafa_13.jpg\" width=\"125\" height=\"59\" border=\"0\" alt=\"Strona g³ówna\"></a></td>
   <td><a href=\"".BASEDIR."articles.php\"><img src=\"".THEME."images/grafa_14.jpg\" width=\"124\" height=\"59\" border=\"0\" alt=\"Tutoriale\"></a></td>
   <td><a href=\"".BASEDIR."forum/\"><img src=\"".THEME."images/grafa_15.jpg\" width=\"123\" height=\"59\" border=\"0\" alt=\"Forum\"></a></td>
   <td><a href=\"".BASEDIR."downloads.php\"><img src=\"".THEME."images/grafa_16.jpg\" width=\"137\" height=\"59\" border=\"0\" alt=\"Sci±gnij\"></a></td>
</tr>
</table>
   </td>
</tr>
</table>
   
   </td>
</tr>

<!-- 3 -->

<tr>
   <td height=\"35\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/grafa_17.jpg\" width=\"267\" height=\"35\"></td>
   <td background=\"".THEME."images/grafa_18.jpg\" width=\"253\" height=\"35\"></td>
   <td background=\"".THEME."images/grafa_19.jpg\" width=\"271\" height=\"35\"></td>
</tr>
</table></td>
</tr>

<!-- 4 -->
<tr>
   <td>
   <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_20.jpg'); height: 172px; width: 267px\"><div style=\"padding-left: 43px; padding-right: 29px\">";
   
include BASEDIR."infusions/info_panel/locale/Polish.php";
include BASEDIR."includes/theme.php";

echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "\n";
$result=dbquery("SELECT * FROM ep_users ORDER BY user_lastvisit DESC LIMIT 0,10");
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>";
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>odchodzi</b></font>";
}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]'
onmouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_003']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_004']."</b>: ".$data['user_location']."<br><b>".$locale['XXX_005']."</b>: ".$data['user_msn']."<br><b>".$locale['XXX_006']."</b>: ".$data['user_posts']."$end')\" style='color:#".$data['user_color']."' onMouseout=\"hideddrivetip()\"><b>";

echo $data['user_prefix'].$data['user_name']."</b></a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>";
}
}



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 class='small'> &nbsp;&nbsp;&nbsp;<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>";

;

echo "
   
   </div>
   </td>

   <td style=\"background-image: url('".THEME."images/grafa_21.jpg'); height: 172px; width: 253px\">
   <!-- najn posty -->
   <div style=\"padding-left: 34px; padding-right: 29px\">";

   
if (!isset($usr_grps)) $usr_grps="";
$result = dbquery(
       "SELECT tf.*, tt.*, tu.user_id,user_name,user_color,user_prefix FROM ep_forums tf
       INNER JOIN ep_threads tt USING(forum_id)
       INNER JOIN ep_users tu ON tt.thread_lastuser=tu.user_id
       ".$usr_grps." ORDER BY thread_lastpost DESC LIMIT 0,11");
if (dbrows($result) != 0) {
       $i=0;
       if ($theme_width == "100%") echo "\n";
       while ($data = dbarray($result)) {
              if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
                     $new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
                     //$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
                     $thread_replies = $data['thread_replies'];
                     $forum_id = $data['forum_id'];
                     if ($new_posts > 0) {
               $folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
               } else if ($new_posts > 19) {
               $folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
               } else {
                     if ($data['thread_locked'] == 1) {
               $folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
               } else if ($data['thread_locked'] == 0) {
                     $folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
                     }
                     }
              //$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
              $reply_count = $data['thread_replies']+1;
             
              $data2 = dbarray(dbquery("SELECT post_id FROM ep_posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
              $threads_message = $data['thread_subject'];
              $threads_message = str_replace("&#39;", "", $threads_message);
              $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
              echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" width='65%' class='small'>";
              if ($theme_width == "100%") {
                     echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"ddrivetip('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b>: ".$threads_message."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
              } else {
                     echo "$folder123 <a  href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"gpe('text:<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost']).";')\" (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
              }
              echo "</tr></table>";
              $i++;
       }

} else {
       echo "<center>".$locale['004']."</center>\n";
}
   
echo "</div>
   
   </td>

   <td style=\"background-image: url('".THEME."images/grafa_22.jpg'); height: 172px; width: 271px\">   <div style=\"padding-left: 34px; padding-right: 49px\">
   <!-- tematy -->";

   
   
$result = dbquery(
       "SELECT tf.*, tt.*, tu.user_id,user_name FROM ep_forums tf
       INNER JOIN ep_threads tt USING(forum_id)
       INNER JOIN ep_users tu ON tt.thread_lastuser=tu.user_id
       ".$usr_grps." ORDER BY thread_views DESC LIMIT 0,11");
if (dbrows($result) != 0) {
       $i=0;
       if ($theme_width == "100%") echo "\n";
       while ($data = dbarray($result)) {
              if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
                     $new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
                     //$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
                     $thread_replies = $data['thread_replies'];
                     $forum_id = $data['forum_id'];
                     if ($new_posts > 0) {
               $folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
               } else if ($new_posts > 19) {
               $folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
               } else {
                     if ($data['thread_locked'] == 1) {
               $folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
               } else if ($data['thread_locked'] == 0) {
                     $folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
                     }
                     }
              //$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
              $reply_count = $data['thread_replies']+1;
             
              $data2 = dbarray(dbquery("SELECT post_id FROM ep_posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
              $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
              echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" class='small' width='75%'>";
              if ($theme_width == "100%") {
                     echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onMouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b>: ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='25%'>[".$data['thread_views']."]</td>";
              } else {
                     echo "$folder123 <a  href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onMouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\" (".$data['forum_name'].")' onMouseout=\"hideddrivetip()\">".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='25%'>[".$data['thread_views']."]</td>";
              }
              echo "</tr></table>";
              $i++;
       }

} else {
       echo "<center>".$locale['004']."</center>\n";
}
   
echo "   </div>
   
   
   </td>
</tr></table>
</td>
</tr>

<!-- 5 -->

<tr>
   <td><img src=\"".THEME."images/grafa_23.jpg\" width=\"791\" height=\"7\" border=\"0\" alt=\"[Rozmiar: 1118 bajtów]\"></td>
</tr>

<!-- 6 - boody -->

<tr>
   <td>
   
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/lewe.jpg'); width: 8px\" valign=\"top\"><img src=\"".THEME."images/grafa_24.jpg\" width=\"8\" height=\"518\" border=\"0\" alt=\"[Rozmiar: 828 bajtów]\"></td>
   <td style=\"background-image: url('".THEME."images/grafa_25.jpg'); background-position: top; background-repeat: no-repeat; padding-top: 22px; width: 776px\" valign=\"top\">\n";

echo "   <table border=\"0\"; cellpadding=\"0\" cellspacing=\"0\">
<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "
</td>
   <td style=\"background-image: url('".THEME."images/prawe.jpg'); width: 7px\" valign=\"top\"><img src=\"".THEME."images/grafa_26.jpg\" width=\"7\" height=\"518\" border=\"0\" alt=\"[Rozmiar: 865 bajtów]\"></td>
</tr>
</table>
   
   
   </td>
</tr>
<tr>

<!-- 7 -->

   <td><img src=\"".THEME."images/grafa_27.jpg\" width=\"791\" height=\"65\" border=\"0\" alt=\"[Rozmiar: 3020 bajtów]\"></td>
</tr>

<!-- 8 -->

<tr>
   <td><img src=\"".THEME."images/grafa_28.jpg\" width=\"791\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 4718 bajtów]\"></td>
</tr>



<!-- 9 -->

<tr>
<td style=\"background-image: url('".THEME."images/grafa_29.jpg'); height: 130px; width: 791px\">

</td>


</tr>



<!-- 10 -->

<tr>
<td background=\"".THEME."images/grafa_30.jpg\" width=\"791\" height=\"26\">
</td>
</tr>

<!-- 11 -->

<tr>
<td style=\"background-image: url('".THEME."images/grafa_31.jpg'); height: 63px; width: 791px\">
<div style=\"padding-left: 34px; padding-right: 29px\" align=\"center\">
<!-- stopa -->
".stripslashes($settings['footer'])."<br>
nr:".$settings['counter']."
   
   </div>
</td>
</tr>

</table>


\n";

}

function render_news($subject, $news, $info) {

global $settings;

opentable ($subject);   
echo "
<table width=\"100%\"><tr><td colspan=\"2\">$news</td></tr><tr><td class=\"tbl2\"><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td><td>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> &#183;\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> &#183;
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></td></tr></table>







";
closetable();
}

function render_article($subject, $article, $info) {

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/table_28.png\" width=\"488\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 33px\"><b>$subject</b></div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px\">
<div style=\"padding-left: 7px; padding-right: 7px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl2'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='tbl2'>
<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>
</table>
</div>   
   </td>
</tr>
<tr>
   <td><img src=\"".THEME."images/table_33.png\" width=\"488\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 309 bajtów]\"></td>
</tr>
</table>\n";

}

function opentable($title) {
if (file_exists(THEME."images/nagt_".$title.".png")){
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td><img src=\"".THEME."images/nagt_$title.png\" width=\"488\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 1681 bajtów]\"></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px; padding-left: 7px; padding-right: 7px; background-repeat: repeat-y\">
\n";}
else {
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-repeat: no-repeat; background-image: url('".THEME."images/table_28.png'); width=\"488\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 33px\">$title</div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px; padding-left: 7px; padding-right: 21px; background-repeat: repeat-y\">\n";
     }

}

function closetable() {

echo "</div>   
   </td>
</tr>
<tr>
   <td><img src=\"".THEME."images/table_33.png\" width=\"488\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 309 bajtów]\"></td>
</tr>
</table>\n";

}

function openside($title) {
if (file_exists(THEME."images/nags_".$title.".png")){
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td><img src=\"".THEME."images/nags_$title.png\" width=\"267\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 1681 bajtów]\"></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_30.png'); width: 267px; padding-left: 22px; padding-right: 22px; background-repeat: repeat-y\">
\n";}
else {
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/table_27.png\" width=\"267\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 43px\">$title</div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_30.png'); background-repeat: repeat-y; padding-left: 22px; padding-right: 22px; width: 267px".THEME."images/table_30.png'); width: 267px; padding-left: 22px; padding-right: 22px\">\n";
     }

}

function closeside() {

echo "</tr>
<tr>
   <td><img src=\"".THEME."images/table_32.png\" width=\"267\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 299 bajtów]\"></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";

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='border-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='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";

}
?>





Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:14          11 žinutė iš 39
Spausdinti pranešimą
O prefix koks tavo?

2008 Vas. 21 13:02:54          12 žinutė iš 39
Spausdinti pranešimą
o kas tas prefix? as nzn

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:05          13 žinutė iš 39
Spausdinti pranešimą
Kam tau jo prefix_ juk yra funkcija ".$db_prefix."

<?
// theme settings
$body_text = "#000000";
$body_bg = "#210000";
$theme_width = "791";
$theme_width_l = "267";
$theme_width_r = "267";

function render_header($header_content) {

global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix;

if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."user_info_panel/locale/English.php";
}

echo "<table border=\"0\" width='$theme_width' cellpadding=\"0\" cellspacing=\"0\" align=\"center\" bgcolor=\"#272727\">
<!-- 1 -->
<tr>
   <td>
   
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_02.jpg'); height: 41px; width: 238px\"></td>
   <td style=\"background-image: url('".THEME."images/grafa_03.jpg'); height: 41px; width: 368px\"></td>
   <td><a onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://grafa.biz');\" href=\"http://grafa.biz\"><img src=\"".THEME."images/grafa_04.jpg\" width=\"32\" height=\"41\" border=\"0\" alt=\"Ustaw jako startow±\"></a></td>
   <td>
<a href='#' onClick=\"window.external.AddFavorite('http://www.grafa.biz/', 'Grafa.biz Centrum Grafika')\"><img src=\"".THEME."images/grafa_05.jpg\" width=\"30\" height=\"41\" border=\"0\" alt=\"Dodaj do ulubionych\"></a></td>
   <td><a href=\"search.php\"><img src=\"".THEME."images/grafa_06.jpg\" width=\"32\" height=\"41\" border=\"0\" alt=\"Szukaj\"></a></td>
   <td><a href=\"contact.php\"><img src=\"".THEME."images/grafa_07.jpg\" width=\"31\" height=\"41\" border=\"0\" alt=\"Kontakt\"></a></td>
   <td><a href=\"login.php\"><img src=\"".THEME."images/grafa_08.jpg\" width=\"60\" height=\"41\" border=\"0\" alt=\"Zaloguj\"></a></td>
</tr>
</table>
   
   </td>
</tr>

<!-- 2 -->
<tr>
   <td>
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_10.jpg'); height: 206px; width: 238px\" valign=\"top\">
   <!-- logowanie -->
   
   <div style=\"padding-left: 34px; padding-right: 29px; padding-top: 11px\">";

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='50' hight='50' 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='70' hight='70'></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>";


}

$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."edit_profile.php' class='side'>Edytuj Profil</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Uæytkownicy</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."usergalerie/edit_usergalerie.php' class='side'>Galeria Usera <b>[New]</b></a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."user/' class='side'>Panel u&#380;ytkownika</a><br>\n";

if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {

echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php$aidlink' class='side'> Administracja</a><br>\n";

}{echo "<br><br>

<div style=\"text-align: center\"><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a><img src='".THEME."images/bullet.gif' alt=''></div>\n";

if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.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='textbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>

<input type='password' name='user_pass' class='textbox' value='has³o' onBlur=\"if(this.value=='') this.value='has³o';\" onFocus=\"if(this.value=='has³o') this.value='';\" style='width:100px'><br>

<input type='checkbox' name='remember_me' value='y' title='Zapamiźtaj mnie' style='vertical-align:middle;'>

<input type='submit' name='login' value='Wchodzź!' class='button'>

</form>

<br>\n";

if ($settings['enable_registration']) {

echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja</a><br>\n";

}

echo "<a href='".BASEDIR."lostpassword.php' class='side'>Zgubione has³o</a>

</div>\n";

}
closesidel();
   
   
   
   
echo "</div>
   
   
   
   
   
   </td>
   <td>
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td colspan=\"5\" style=\"background-image: url('".THEME."images/grafa_11.jpg'); height: 147px; width: 553px\"></td>
</tr>
<tr>
   <td><img src=\"".THEME."images/grafa_12.jpg\" width=\"44\" height=\"59\" border=\"0\" alt=\"\"></td>
   <td><a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/grafa_13.jpg\" width=\"125\" height=\"59\" border=\"0\" alt=\"Strona g³ówna\"></a></td>
   <td><a href=\"".BASEDIR."articles.php\"><img src=\"".THEME."images/grafa_14.jpg\" width=\"124\" height=\"59\" border=\"0\" alt=\"Tutoriale\"></a></td>
   <td><a href=\"".BASEDIR."forum/\"><img src=\"".THEME."images/grafa_15.jpg\" width=\"123\" height=\"59\" border=\"0\" alt=\"Forum\"></a></td>
   <td><a href=\"".BASEDIR."downloads.php\"><img src=\"".THEME."images/grafa_16.jpg\" width=\"137\" height=\"59\" border=\"0\" alt=\"Sci±gnij\"></a></td>
</tr>
</table>
   </td>
</tr>
</table>
   
   </td>
</tr>

<!-- 3 -->

<tr>
   <td height=\"35\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/grafa_17.jpg\" width=\"267\" height=\"35\"></td>
   <td background=\"".THEME."images/grafa_18.jpg\" width=\"253\" height=\"35\"></td>
   <td background=\"".THEME."images/grafa_19.jpg\" width=\"271\" height=\"35\"></td>
</tr>
</table></td>
</tr>

<!-- 4 -->
<tr>
   <td>
   <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_20.jpg'); height: 172px; width: 267px\"><div style=\"padding-left: 43px; padding-right: 29px\">";
   
include BASEDIR."infusions/info_panel/locale/Polish.php";
include BASEDIR."includes/theme.php";

echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "\n";
$result=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 0,10");
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>";
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>odchodzi</b></font>";
}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]'
onmouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_003']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_004']."</b>: ".$data['user_location']."<br><b>".$locale['XXX_005']."</b>: ".$data['user_msn']."<br><b>".$locale['XXX_006']."</b>: ".$data['user_posts']."$end')\" style='color:#".$data['user_color']."' onMouseout=\"hideddrivetip()\"><b>";

echo $data['user_prefix'].$data['user_name']."</b></a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>";
}
}



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 class='small'> &nbsp;&nbsp;&nbsp;<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 ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );
   } else {
      echo $locale['013']."<br>\n";
   }
echo "</td></tr></table>";

;

echo "
   
   </div>
   </td>

   <td style=\"background-image: url('".THEME."images/grafa_21.jpg'); height: 172px; width: 253px\">
   <!-- najn posty -->
   <div style=\"padding-left: 34px; padding-right: 29px\">";

   
if (!isset($usr_grps)) $usr_grps="";
$result = dbquery(
       "SELECT tf.*, tt.*, tu.user_id,user_name,user_color,user_prefix FROM ".$db_prefix."forums tf
       INNER JOIN ".$db_prefix."threads tt USING(forum_id)
       INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
       ".$usr_grps." ORDER BY thread_lastpost DESC LIMIT 0,11");
if (dbrows($result) != 0) {
       $i=0;
       if ($theme_width == "100%") echo "\n";
       while ($data = dbarray($result)) {
              if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
                     $new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
                     //$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
                     $thread_replies = $data['thread_replies'];
                     $forum_id = $data['forum_id'];
                     if ($new_posts > 0) {
               $folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
               } else if ($new_posts > 19) {
               $folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
               } else {
                     if ($data['thread_locked'] == 1) {
               $folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
               } else if ($data['thread_locked'] == 0) {
                     $folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
                     }
                     }
              //$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
              $reply_count = $data['thread_replies']+1;
             
              $data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
              $threads_message = $data['thread_subject'];
              $threads_message = str_replace("&#39;", "", $threads_message);
              $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
              echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" width='65%' class='small'>";
              if ($theme_width == "100%") {
                     echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"ddrivetip('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b>: ".$threads_message."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
              } else {
                     echo "$folder123 <a  href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"gpe('text:<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost']).";')\" (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
              }
              echo "</tr></table>";
              $i++;
       }

} else {
       echo "<center>".$locale['004']."</center>\n";
}
   
echo "</div>
   
   </td>

   <td style=\"background-image: url('".THEME."images/grafa_22.jpg'); height: 172px; width: 271px\">   <div style=\"padding-left: 34px; padding-right: 49px\">
   <!-- tematy -->";

   
   
$result = dbquery(
       "SELECT tf.*, tt.*, tu.user_id,user_name FROM ".$db_prefix."forums tf
       INNER JOIN ".$db_prefix."threads tt USING(forum_id)
       INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
       ".$usr_grps." ORDER BY thread_views DESC LIMIT 0,11");
if (dbrows($result) != 0) {
       $i=0;
       if ($theme_width == "100%") echo "\n";
       while ($data = dbarray($result)) {
              if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
                     $new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
                     //$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
                     $thread_replies = $data['thread_replies'];
                     $forum_id = $data['forum_id'];
                     if ($new_posts > 0) {
               $folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
               } else if ($new_posts > 19) {
               $folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
               } else {
                     if ($data['thread_locked'] == 1) {
               $folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
               } else if ($data['thread_locked'] == 0) {
                     $folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
                     }
                     }
              //$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
              $reply_count = $data['thread_replies']+1;
             
              $data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
              $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
              echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" class='small' width='75%'>";
              if ($theme_width == "100%") {
                     echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onMouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b>: ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='25%'>[".$data['thread_views']."]</td>";
              } else {
                     echo "$folder123 <a  href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onMouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\" (".$data['forum_name'].")' onMouseout=\"hideddrivetip()\">".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='25%'>[".$data['thread_views']."]</td>";
              }
              echo "</tr></table>";
              $i++;
       }

} else {
       echo "<center>".$locale['004']."</center>\n";
}
   
echo "   </div>
   
   
   </td>
</tr></table>
</td>
</tr>

<!-- 5 -->

<tr>
   <td><img src=\"".THEME."images/grafa_23.jpg\" width=\"791\" height=\"7\" border=\"0\" alt=\"[Rozmiar: 1118 bajtów]\"></td>
</tr>

<!-- 6 - boody -->

<tr>
   <td>
   
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/lewe.jpg'); width: 8px\" valign=\"top\"><img src=\"".THEME."images/grafa_24.jpg\" width=\"8\" height=\"518\" border=\"0\" alt=\"[Rozmiar: 828 bajtów]\"></td>
   <td style=\"background-image: url('".THEME."images/grafa_25.jpg'); background-position: top; background-repeat: no-repeat; padding-top: 22px; width: 776px\" valign=\"top\">\n";

echo "   <table border=\"0\"; cellpadding=\"0\" cellspacing=\"0\">
<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "
</td>
   <td style=\"background-image: url('".THEME."images/prawe.jpg'); width: 7px\" valign=\"top\"><img src=\"".THEME."images/grafa_26.jpg\" width=\"7\" height=\"518\" border=\"0\" alt=\"[Rozmiar: 865 bajtów]\"></td>
</tr>
</table>
   
   
   </td>
</tr>
<tr>

<!-- 7 -->

   <td><img src=\"".THEME."images/grafa_27.jpg\" width=\"791\" height=\"65\" border=\"0\" alt=\"[Rozmiar: 3020 bajtów]\"></td>
</tr>

<!-- 8 -->

<tr>
   <td><img src=\"".THEME."images/grafa_28.jpg\" width=\"791\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 4718 bajtów]\"></td>
</tr>



<!-- 9 -->

<tr>
<td style=\"background-image: url('".THEME."images/grafa_29.jpg'); height: 130px; width: 791px\">

</td>


</tr>



<!-- 10 -->

<tr>
<td background=\"".THEME."images/grafa_30.jpg\" width=\"791\" height=\"26\">
</td>
</tr>

<!-- 11 -->

<tr>
<td style=\"background-image: url('".THEME."images/grafa_31.jpg'); height: 63px; width: 791px\">
<div style=\"padding-left: 34px; padding-right: 29px\" align=\"center\">
<!-- stopa -->
".stripslashes($settings['footer'])."<br>
nr:".$settings['counter']."
   
   </div>
</td>
</tr>

</table>


\n";

}

function render_news($subject, $news, $info) {

global $settings;

opentable ($subject);   
echo "
<table width=\"100%\"><tr><td colspan=\"2\">$news</td></tr><tr><td class=\"tbl2\"><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td><td>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> &#183;\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> &#183;
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></td></tr></table>







";
closetable();
}

function render_article($subject, $article, $info) {

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/table_28.png\" width=\"488\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 33px\"><b>$subject</b></div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px\">
<div style=\"padding-left: 7px; padding-right: 7px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl2'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='tbl2'>
<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>
</table>
</div>   
   </td>
</tr>
<tr>
   <td><img src=\"".THEME."images/table_33.png\" width=\"488\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 309 bajtów]\"></td>
</tr>
</table>\n";

}

function opentable($title) {
if (file_exists(THEME."images/nagt_".$title.".png")){
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td><img src=\"".THEME."images/nagt_$title.png\" width=\"488\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 1681 bajtów]\"></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px; padding-left: 7px; padding-right: 7px; background-repeat: repeat-y\">
\n";}
else {
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-repeat: no-repeat; background-image: url('".THEME."images/table_28.png'); width=\"488\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 33px\">$title</div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px; padding-left: 7px; padding-right: 21px; background-repeat: repeat-y\">\n";
     }

}

function closetable() {

echo "</div>   
   </td>
</tr>
<tr>
   <td><img src=\"".THEME."images/table_33.png\" width=\"488\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 309 bajtów]\"></td>
</tr>
</table>\n";

}

function openside($title) {
if (file_exists(THEME."images/nags_".$title.".png")){
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td><img src=\"".THEME."images/nags_$title.png\" width=\"267\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 1681 bajtów]\"></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_30.png'); width: 267px; padding-left: 22px; padding-right: 22px; background-repeat: repeat-y\">
\n";}
else {
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/table_27.png\" width=\"267\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 43px\">$title</div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_30.png'); background-repeat: repeat-y; padding-left: 22px; padding-right: 22px; width: 267px".THEME."images/table_30.png'); width: 267px; padding-left: 22px; padding-right: 22px\">\n";
     }

}

function closeside() {

echo "</tr>
<tr>
   <td><img src=\"".THEME."images/table_32.png\" width=\"267\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 299 bajtów]\"></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";

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='border-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='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";

}
?>




http://androider.info/
2008 Vas. 21 13:02:27          14 žinutė iš 39
Spausdinti pranešimą
Tas kur kai instaliavai php-f ... Vnž fusion... Žie atsidaryk šitą failą su notepad ir spausk CTRL+H. Pirmoj eilutėj rašyk ep_ , o antroj fusion_

2008 Vas. 21 13:02:05          15 žinutė iš 39
Spausdinti pranešimą
nixonas parašė:
o kas tas prefix? as nzn


Prefix kur prie lentelės pavadinimo tavo sugalvotas prierašas , standartinis būna fusion_ . Pvz: fusion_lnetele tai prefixas būtų fusion_ .

2008 Vas. 21 13:02:16          16 žinutė iš 39
Spausdinti pranešimą
eXtazY parašė:
Tas kur kai instaliavai php-f ... Vnž fusion... Žie atsidaryk šitą failą su notepad ir spausk CTRL+H. Pirmoj eilutėj rašyk ep_ , o antroj fusion_


Neriekia prefix...

Naudoti galima:
".$db_prefix."


http://androider.info/
2008 Vas. 21 13:02:18          17 žinutė iš 39
Spausdinti pranešimą
vebeik susitaise paziurekit www.vendeta.lt

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:55          18 žinutė iš 39
Spausdinti pranešimą
taigi as tau tik del prefix padejau. Ar tu nori kad visa tema sutvarkytume ?

http://androider.info/
2008 Vas. 21 13:02:42          19 žinutė iš 39
Spausdinti pranešimą
ne as nzn kas tas es_color ar kaip ten

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:11          20 žinutė iš 39
Spausdinti pranešimą
user_color tokia funkciją turi extreme-fusion, o čia tema jei pritaikyta. O php-fusion neturi tai reikia išsiimti tokias funkcijas kurių neturiu php-fusion...

http://androider.info/
2008 Vas. 21 13:02:54          21 žinutė iš 39
Spausdinti pranešimą
plz isimk ... žliumbia

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:57          22 žinutė iš 39
Spausdinti pranešimą
Lentelės pavadinimas

2008 Vas. 21 13:02:38          23 žinutė iš 39
Spausdinti pranešimą
Aj jo užmiršau $prefix akinanti šypsen Vietoj fusion_ ra6yhk $prefix

2008 Vas. 21 13:02:49          24 žinutė iš 39
Spausdinti pranešimą
kaip ?merkia akį as mesuprantu taj galit isimti ta user_colors?

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:00          25 žinutė iš 39
Spausdinti pranešimą
<?
// theme settings
$body_text = "#000000";
$body_bg = "#210000";
$theme_width = "791";
$theme_width_l = "267";
$theme_width_r = "267";

function render_header($header_content) {

global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix;

if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."user_info_panel/locale/English.php";
}

echo "<table border=\"0\" width='$theme_width' cellpadding=\"0\" cellspacing=\"0\" align=\"center\" bgcolor=\"#272727\">
<!-- 1 -->
<tr>
   <td>
   
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_02.jpg'); height: 41px; width: 238px\"></td>
   <td style=\"background-image: url('".THEME."images/grafa_03.jpg'); height: 41px; width: 368px\"></td>
   <td><a onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://grafa.biz');\" href=\"http://grafa.biz\"><img src=\"".THEME."images/grafa_04.jpg\" width=\"32\" height=\"41\" border=\"0\" alt=\"Ustaw jako startow±\"></a></td>
   <td>
<a href='#' onClick=\"window.external.AddFavorite('http://www.grafa.biz/', 'Grafa.biz Centrum Grafika')\"><img src=\"".THEME."images/grafa_05.jpg\" width=\"30\" height=\"41\" border=\"0\" alt=\"Dodaj do ulubionych\"></a></td>
   <td><a href=\"search.php\"><img src=\"".THEME."images/grafa_06.jpg\" width=\"32\" height=\"41\" border=\"0\" alt=\"Szukaj\"></a></td>
   <td><a href=\"contact.php\"><img src=\"".THEME."images/grafa_07.jpg\" width=\"31\" height=\"41\" border=\"0\" alt=\"Kontakt\"></a></td>
   <td><a href=\"login.php\"><img src=\"".THEME."images/grafa_08.jpg\" width=\"60\" height=\"41\" border=\"0\" alt=\"Zaloguj\"></a></td>
</tr>
</table>
   
   </td>
</tr>

<!-- 2 -->
<tr>
   <td>
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_10.jpg'); height: 206px; width: 238px\" valign=\"top\">
   <!-- logowanie -->
   
   <div style=\"padding-left: 34px; padding-right: 29px; padding-top: 11px\">";

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='50' hight='50' 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='70' hight='70'></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>";


}

$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."edit_profile.php' class='side'>Edytuj Profil</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Uæytkownicy</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."usergalerie/edit_usergalerie.php' class='side'>Galeria Usera <b>[New]</b></a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."user/' class='side'>Panel u&#380;ytkownika</a><br>\n";

if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {

echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php$aidlink' class='side'> Administracja</a><br>\n";

}{echo "<br><br>

<div style=\"text-align: center\"><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a><img src='".THEME."images/bullet.gif' alt=''></div>\n";

if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.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='textbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>

<input type='password' name='user_pass' class='textbox' value='has³o' onBlur=\"if(this.value=='') this.value='has³o';\" onFocus=\"if(this.value=='has³o') this.value='';\" style='width:100px'><br>

<input type='checkbox' name='remember_me' value='y' title='Zapamiźtaj mnie' style='vertical-align:middle;'>

<input type='submit' name='login' value='Wchodzź!' class='button'>

</form>

<br>\n";

if ($settings['enable_registration']) {

echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja</a><br>\n";

}

echo "<a href='".BASEDIR."lostpassword.php' class='side'>Zgubione has³o</a>

</div>\n";

}
closesidel();
   
   
   
   
echo "</div>
   
   
   
   
   
   </td>
   <td>
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td colspan=\"5\" style=\"background-image: url('".THEME."images/grafa_11.jpg'); height: 147px; width: 553px\"></td>
</tr>
<tr>
   <td><img src=\"".THEME."images/grafa_12.jpg\" width=\"44\" height=\"59\" border=\"0\" alt=\"\"></td>
   <td><a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/grafa_13.jpg\" width=\"125\" height=\"59\" border=\"0\" alt=\"Strona g³ówna\"></a></td>
   <td><a href=\"".BASEDIR."articles.php\"><img src=\"".THEME."images/grafa_14.jpg\" width=\"124\" height=\"59\" border=\"0\" alt=\"Tutoriale\"></a></td>
   <td><a href=\"".BASEDIR."forum/\"><img src=\"".THEME."images/grafa_15.jpg\" width=\"123\" height=\"59\" border=\"0\" alt=\"Forum\"></a></td>
   <td><a href=\"".BASEDIR."downloads.php\"><img src=\"".THEME."images/grafa_16.jpg\" width=\"137\" height=\"59\" border=\"0\" alt=\"Sci±gnij\"></a></td>
</tr>
</table>
   </td>
</tr>
</table>
   
   </td>
</tr>

<!-- 3 -->

<tr>
   <td height=\"35\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/grafa_17.jpg\" width=\"267\" height=\"35\"></td>
   <td background=\"".THEME."images/grafa_18.jpg\" width=\"253\" height=\"35\"></td>
   <td background=\"".THEME."images/grafa_19.jpg\" width=\"271\" height=\"35\"></td>
</tr>
</table></td>
</tr>

<!-- 4 -->
<tr>
   <td>
   <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_20.jpg'); height: 172px; width: 267px\"><div style=\"padding-left: 43px; padding-right: 29px\">";
   
include BASEDIR."infusions/info_panel/locale/Polish.php";
include BASEDIR."includes/theme.php";

echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "\n";
$result=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 0,10");
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>";
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>odchodzi</b></font>";
}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]'
onmouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_003']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_004']."</b>: ".$data['user_location']."<br><b>".$locale['XXX_005']."</b>: ".$data['user_msn']."<br><b>".$locale['XXX_006']."</b>: ".$data['user_posts']."$end')\" onMouseout=\"hideddrivetip()\"><b>";

echo $data['user_prefix'].$data['user_name']."</b></a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>";
}
}



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 class='small'> &nbsp;&nbsp;&nbsp;<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_prefix FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );
   } else {
      echo $locale['013']."<br>\n";
   }
echo "</td></tr></table>";

;

echo "
   
   </div>
   </td>

   <td style=\"background-image: url('".THEME."images/grafa_21.jpg'); height: 172px; width: 253px\">
   <!-- najn posty -->
   <div style=\"padding-left: 34px; padding-right: 29px\">";

   
if (!isset($usr_grps)) $usr_grps="";
$result = dbquery(
       "SELECT tf.*, tt.*, tu.user_id,user_name,user_prefix FROM ".$db_prefix."forums tf
       INNER JOIN ".$db_prefix."threads tt USING(forum_id)
       INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
       ".$usr_grps." ORDER BY thread_lastpost DESC LIMIT 0,11");
if (dbrows($result) != 0) {
       $i=0;
       if ($theme_width == "100%") echo "\n";
       while ($data = dbarray($result)) {
              if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
                     $new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
                     //$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
                     $thread_replies = $data['thread_replies'];
                     $forum_id = $data['forum_id'];
                     if ($new_posts > 0) {
               $folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
               } else if ($new_posts > 19) {
               $folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
               } else {
                     if ($data['thread_locked'] == 1) {
               $folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
               } else if ($data['thread_locked'] == 0) {
                     $folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
                     }
                     }
              //$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
              $reply_count = $data['thread_replies']+1;
             
              $data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
              $threads_message = $data['thread_subject'];
              $threads_message = str_replace("&#39;", "", $threads_message);
              $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
              echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" width='65%' class='small'>";
              if ($theme_width == "100%") {
                     echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"ddrivetip('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b>: ".$threads_message."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
              } else {
                     echo "$folder123 <a  href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"gpe('text:<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_prefix'].$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost']).";')\" (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
              }
              echo "</tr></table>";
              $i++;
       }

} else {
       echo "<center>".$locale['004']."</center>\n";
}
   
echo "</div>
   
   </td>

   <td style=\"background-image: url('".THEME."images/grafa_22.jpg'); height: 172px; width: 271px\">   <div style=\"padding-left: 34px; padding-right: 49px\">
   <!-- tematy -->";

   
   
$result = dbquery(
       "SELECT tf.*, tt.*, tu.user_id,user_name FROM ".$db_prefix."forums tf
       INNER JOIN ".$db_prefix."threads tt USING(forum_id)
       INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
       ".$usr_grps." ORDER BY thread_views DESC LIMIT 0,11");
if (dbrows($result) != 0) {
       $i=0;
       if ($theme_width == "100%") echo "\n";
       while ($data = dbarray($result)) {
              if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
                     $new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
                     //$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
                     $thread_replies = $data['thread_replies'];
                     $forum_id = $data['forum_id'];
                     if ($new_posts > 0) {
               $folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
               } else if ($new_posts > 19) {
               $folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
               } else {
                     if ($data['thread_locked'] == 1) {
               $folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
               } else if ($data['thread_locked'] == 0) {
                     $folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
                     }
                     }
              //$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
              $reply_count = $data['thread_replies']+1;
             
              $data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
              $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
              echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" class='small' width='75%'>";
              if ($theme_width == "100%") {
                     echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onMouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b>: ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='25%'>[".$data['thread_views']."]</td>";
              } else {
                     echo "$folder123 <a  href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onMouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\" (".$data['forum_name'].")' onMouseout=\"hideddrivetip()\">".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='25%'>[".$data['thread_views']."]</td>";
              }
              echo "</tr></table>";
              $i++;
       }

} else {
       echo "<center>".$locale['004']."</center>\n";
}
   
echo "   </div>
   
   
   </td>
</tr></table>
</td>
</tr>

<!-- 5 -->

<tr>
   <td><img src=\"".THEME."images/grafa_23.jpg\" width=\"791\" height=\"7\" border=\"0\" alt=\"[Rozmiar: 1118 bajtów]\"></td>
</tr>

<!-- 6 - boody -->

<tr>
   <td>
   
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/lewe.jpg'); width: 8px\" valign=\"top\"><img src=\"".THEME."images/grafa_24.jpg\" width=\"8\" height=\"518\" border=\"0\" alt=\"[Rozmiar: 828 bajtów]\"></td>
   <td style=\"background-image: url('".THEME."images/grafa_25.jpg'); background-position: top; background-repeat: no-repeat; padding-top: 22px; width: 776px\" valign=\"top\">\n";

echo "   <table border=\"0\"; cellpadding=\"0\" cellspacing=\"0\">
<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "
</td>
   <td style=\"background-image: url('".THEME."images/prawe.jpg'); width: 7px\" valign=\"top\"><img src=\"".THEME."images/grafa_26.jpg\" width=\"7\" height=\"518\" border=\"0\" alt=\"[Rozmiar: 865 bajtów]\"></td>
</tr>
</table>
   
   
   </td>
</tr>
<tr>

<!-- 7 -->

   <td><img src=\"".THEME."images/grafa_27.jpg\" width=\"791\" height=\"65\" border=\"0\" alt=\"[Rozmiar: 3020 bajtów]\"></td>
</tr>

<!-- 8 -->

<tr>
   <td><img src=\"".THEME."images/grafa_28.jpg\" width=\"791\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 4718 bajtów]\"></td>
</tr>



<!-- 9 -->

<tr>
<td style=\"background-image: url('".THEME."images/grafa_29.jpg'); height: 130px; width: 791px\">

</td>


</tr>



<!-- 10 -->

<tr>
<td background=\"".THEME."images/grafa_30.jpg\" width=\"791\" height=\"26\">
</td>
</tr>

<!-- 11 -->

<tr>
<td style=\"background-image: url('".THEME."images/grafa_31.jpg'); height: 63px; width: 791px\">
<div style=\"padding-left: 34px; padding-right: 29px\" align=\"center\">
<!-- stopa -->
".stripslashes($settings['footer'])."<br>
nr:".$settings['counter']."
   
   </div>
</td>
</tr>

</table>


\n";

}

function render_news($subject, $news, $info) {

global $settings;

opentable ($subject);   
echo "
<table width=\"100%\"><tr><td colspan=\"2\">$news</td></tr><tr><td class=\"tbl2\"><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td><td>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> &#183;\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> &#183;
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></td></tr></table>







";
closetable();
}

function render_article($subject, $article, $info) {

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/table_28.png\" width=\"488\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 33px\"><b>$subject</b></div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px\">
<div style=\"padding-left: 7px; padding-right: 7px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl2'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='tbl2'>
<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>
</table>
</div>   
   </td>
</tr>
<tr>
   <td><img src=\"".THEME."images/table_33.png\" width=\"488\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 309 bajtów]\"></td>
</tr>
</table>\n";

}

function opentable($title) {
if (file_exists(THEME."images/nagt_".$title.".png")){
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td><img src=\"".THEME."images/nagt_$title.png\" width=\"488\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 1681 bajtów]\"></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px; padding-left: 7px; padding-right: 7px; background-repeat: repeat-y\">
\n";}
else {
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-repeat: no-repeat; background-image: url('".THEME."images/table_28.png'); width=\"488\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 33px\">$title</div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px; padding-left: 7px; padding-right: 21px; background-repeat: repeat-y\">\n";
     }

}

function closetable() {

echo "</div>   
   </td>
</tr>
<tr>
   <td><img src=\"".THEME."images/table_33.png\" width=\"488\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 309 bajtów]\"></td>
</tr>
</table>\n";

}

function openside($title) {
if (file_exists(THEME."images/nags_".$title.".png")){
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td><img src=\"".THEME."images/nags_$title.png\" width=\"267\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 1681 bajtów]\"></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_30.png'); width: 267px; padding-left: 22px; padding-right: 22px; background-repeat: repeat-y\">
\n";}
else {
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/table_27.png\" width=\"267\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 43px\">$title</div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_30.png'); background-repeat: repeat-y; padding-left: 22px; padding-right: 22px; width: 267px".THEME."images/table_30.png'); width: 267px; padding-left: 22px; padding-right: 22px\">\n";
     }

}

function closeside() {

echo "</tr>
<tr>
   <td><img src=\"".THEME."images/table_32.png\" width=\"267\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 299 bajtów]\"></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";

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='border-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='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";

}
?>







Bandyk, bet išėmiau tik color, tai gal dar kas yra....

http://androider.info/
2008 Vas. 21 13:02:21          26 žinutė iš 39
Spausdinti pranešimą
ach dar sita raso
Unknown column 'user_prefix' in 'field list'




Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:54          27 žinutė iš 39
Spausdinti pranešimą
Pats mokek salinti...
<?
// theme settings
$body_text = "#000000";
$body_bg = "#210000";
$theme_width = "791";
$theme_width_l = "267";
$theme_width_r = "267";

function render_header($header_content) {

global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix;

if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."user_info_panel/locale/English.php";
}

echo "<table border=\"0\" width='$theme_width' cellpadding=\"0\" cellspacing=\"0\" align=\"center\" bgcolor=\"#272727\">
<!-- 1 -->
<tr>
   <td>
   
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_02.jpg'); height: 41px; width: 238px\"></td>
   <td style=\"background-image: url('".THEME."images/grafa_03.jpg'); height: 41px; width: 368px\"></td>
   <td><a onclick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://grafa.biz');\" href=\"http://grafa.biz\"><img src=\"".THEME."images/grafa_04.jpg\" width=\"32\" height=\"41\" border=\"0\" alt=\"Ustaw jako startow±\"></a></td>
   <td>
<a href='#' onClick=\"window.external.AddFavorite('http://www.grafa.biz/', 'Grafa.biz Centrum Grafika')\"><img src=\"".THEME."images/grafa_05.jpg\" width=\"30\" height=\"41\" border=\"0\" alt=\"Dodaj do ulubionych\"></a></td>
   <td><a href=\"search.php\"><img src=\"".THEME."images/grafa_06.jpg\" width=\"32\" height=\"41\" border=\"0\" alt=\"Szukaj\"></a></td>
   <td><a href=\"contact.php\"><img src=\"".THEME."images/grafa_07.jpg\" width=\"31\" height=\"41\" border=\"0\" alt=\"Kontakt\"></a></td>
   <td><a href=\"login.php\"><img src=\"".THEME."images/grafa_08.jpg\" width=\"60\" height=\"41\" border=\"0\" alt=\"Zaloguj\"></a></td>
</tr>
</table>
   
   </td>
</tr>

<!-- 2 -->
<tr>
   <td>
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_10.jpg'); height: 206px; width: 238px\" valign=\"top\">
   <!-- logowanie -->
   
   <div style=\"padding-left: 34px; padding-right: 29px; padding-top: 11px\">";

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='50' hight='50' 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='70' hight='70'></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>";


}

$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."edit_profile.php' class='side'>Edytuj Profil</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Wiadomo¶ci</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Uæytkownicy</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".INFUSIONS."usergalerie/edit_usergalerie.php' class='side'>Galeria Usera <b>[New]</b></a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."user/' class='side'>Panel u&#380;ytkownika</a><br>\n";

if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {

echo "<img src='".THEME."images/bullet.gif' alt=''><a href='".ADMIN."index.php$aidlink' class='side'> Administracja</a><br>\n";

}{echo "<br><br>

<div style=\"text-align: center\"><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>Wyloguj</a><img src='".THEME."images/bullet.gif' alt=''></div>\n";

if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.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='textbox' value='nick' onBlur=\"if(this.value=='') this.value='nick';\" onFocus=\"if(this.value=='nick') this.value='';\" style='width:100px'><br><br>

<input type='password' name='user_pass' class='textbox' value='has³o' onBlur=\"if(this.value=='') this.value='has³o';\" onFocus=\"if(this.value=='has³o') this.value='';\" style='width:100px'><br>

<input type='checkbox' name='remember_me' value='y' title='Zapamiźtaj mnie' style='vertical-align:middle;'>

<input type='submit' name='login' value='Wchodzź!' class='button'>

</form>

<br>\n";

if ($settings['enable_registration']) {

echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja</a><br>\n";

}

echo "<a href='".BASEDIR."lostpassword.php' class='side'>Zgubione has³o</a>

</div>\n";

}
closesidel();
   
   
   
   
echo "</div>
   
   
   
   
   
   </td>
   <td>
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td colspan=\"5\" style=\"background-image: url('".THEME."images/grafa_11.jpg'); height: 147px; width: 553px\"></td>
</tr>
<tr>
   <td><img src=\"".THEME."images/grafa_12.jpg\" width=\"44\" height=\"59\" border=\"0\" alt=\"\"></td>
   <td><a href=\"".BASEDIR."news.php\"><img src=\"".THEME."images/grafa_13.jpg\" width=\"125\" height=\"59\" border=\"0\" alt=\"Strona g³ówna\"></a></td>
   <td><a href=\"".BASEDIR."articles.php\"><img src=\"".THEME."images/grafa_14.jpg\" width=\"124\" height=\"59\" border=\"0\" alt=\"Tutoriale\"></a></td>
   <td><a href=\"".BASEDIR."forum/\"><img src=\"".THEME."images/grafa_15.jpg\" width=\"123\" height=\"59\" border=\"0\" alt=\"Forum\"></a></td>
   <td><a href=\"".BASEDIR."downloads.php\"><img src=\"".THEME."images/grafa_16.jpg\" width=\"137\" height=\"59\" border=\"0\" alt=\"Sci±gnij\"></a></td>
</tr>
</table>
   </td>
</tr>
</table>
   
   </td>
</tr>

<!-- 3 -->

<tr>
   <td height=\"35\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/grafa_17.jpg\" width=\"267\" height=\"35\"></td>
   <td background=\"".THEME."images/grafa_18.jpg\" width=\"253\" height=\"35\"></td>
   <td background=\"".THEME."images/grafa_19.jpg\" width=\"271\" height=\"35\"></td>
</tr>
</table></td>
</tr>

<!-- 4 -->
<tr>
   <td>
   <table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/grafa_20.jpg'); height: 172px; width: 267px\"><div style=\"padding-left: 43px; padding-right: 29px\">";
   
include BASEDIR."infusions/info_panel/locale/Polish.php";
include BASEDIR."includes/theme.php";

echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr><td>";
echo "\n";
$result=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 0,10");
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>";
}elseif($lastseen<360){
$lastseen="<font color='#BBBBBB'><b>odchodzi</b></font>";
}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]'
onmouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_003']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_004']."</b>: ".$data['user_location']."<br><b>".$locale['XXX_005']."</b>: ".$data['user_msn']."<br><b>".$locale['XXX_006']."</b>: ".$data['user_posts']."$end')\" onMouseout=\"hideddrivetip()\"><b>";

echo $data['user_name']."</b></a></td><td align=\"right\" class='small'>".$lastseen."</td></tr></table>";
}
}



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 class='small'> &nbsp;&nbsp;&nbsp;<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 FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
      WHERE online_user!='0'"
   );
   } else {
      echo $locale['013']."<br>\n";
   }
echo "</td></tr></table>";

;

echo "
   
   </div>
   </td>

   <td style=\"background-image: url('".THEME."images/grafa_21.jpg'); height: 172px; width: 253px\">
   <!-- najn posty -->
   <div style=\"padding-left: 34px; padding-right: 29px\">";

   
if (!isset($usr_grps)) $usr_grps="";
$result = dbquery(
       "SELECT tf.*, tt.*, tu.user_id,user_name FROM ".$db_prefix."forums tf
       INNER JOIN ".$db_prefix."threads tt USING(forum_id)
       INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
       ".$usr_grps." ORDER BY thread_lastpost DESC LIMIT 0,11");
if (dbrows($result) != 0) {
       $i=0;
       if ($theme_width == "100%") echo "\n";
       while ($data = dbarray($result)) {
              if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
                     $new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
                     //$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
                     $thread_replies = $data['thread_replies'];
                     $forum_id = $data['forum_id'];
                     if ($new_posts > 0) {
               $folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
               } else if ($new_posts > 19) {
               $folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
               } else {
                     if ($data['thread_locked'] == 1) {
               $folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
               } else if ($data['thread_locked'] == 0) {
                     $folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
                     }
                     }
              //$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
              $reply_count = $data['thread_replies']+1;
             
              $data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
              $threads_message = $data['thread_subject'];
              $threads_message = str_replace("&#39;", "", $threads_message);
              $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
              echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" width='65%' class='small'>";
              if ($theme_width == "100%") {
                     echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"ddrivetip('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b>: ".$threads_message."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
              } else {
                     echo "$folder123 <a  href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onmouseover=\"gpe('text:<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost']).";')\" (".$data['forum_name'].")'>".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='35%'>[".($reply_count - 1)." / ".$data['thread_views']."]</td>";
              }
              echo "</tr></table>";
              $i++;
       }

} else {
       echo "<center>".$locale['004']."</center>\n";
}
   
echo "</div>
   
   </td>

   <td style=\"background-image: url('".THEME."images/grafa_22.jpg'); height: 172px; width: 271px\">   <div style=\"padding-left: 34px; padding-right: 49px\">
   <!-- tematy -->";

   
   
$result = dbquery(
       "SELECT tf.*, tt.*, tu.user_id,user_name FROM ".$db_prefix."forums tf
       INNER JOIN ".$db_prefix."threads tt USING(forum_id)
       INNER JOIN ".$db_prefix."users tu ON tt.thread_lastuser=tu.user_id
       ".$usr_grps." ORDER BY thread_views DESC LIMIT 0,11");
if (dbrows($result) != 0) {
       $i=0;
       if ($theme_width == "100%") echo "\n";
       while ($data = dbarray($result)) {
              if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl1"; }
                     $new_posts = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."' and post_datestamp>'".(isset($lastvisited) ? $lastvisited : 0)."'");
                     //$thread_replies = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'") - 1;
                     $thread_replies = $data['thread_replies'];
                     $forum_id = $data['forum_id'];
                     if ($new_posts > 0) {
               $folder123 = "<img src='".THEME."forum/foldernew.gif' height='11'>";
               } else if ($new_posts > 19) {
               $folder123 = "<img src='".THEME."forum/folderhot.gif' height='11'>";
               } else {
                     if ($data['thread_locked'] == 1) {
               $folder123 = "<img src='".THEME."forum/folderlock.gif' height='11'>";
               } else if ($data['thread_locked'] == 0) {
                     $folder123 = "<img src='".THEME."forum/folder.gif' height='11'>";
                     }
                     }
              //$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$data['thread_id']."'");
              $reply_count = $data['thread_replies']+1;
             
              $data2 = dbarray(dbquery("SELECT post_id FROM ".$db_prefix."posts WHERE thread_id='".$data['thread_id']."' ORDER BY post_id DESC LIMIT 1"));
              $rstart = ($reply_count > 20 ? "rowstart=".((ceil($reply_count / 20)-1)*20)."&" : "");
              echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\"><tr><td align=\"left\" class='small' width='75%'>";
              if ($theme_width == "100%") {
                     echo "$folder123 <a href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onMouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b>: ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\"' onMouseout=\"hideddrivetip()\" >".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='25%'>[".$data['thread_views']."]</td>";
              } else {
                     echo "$folder123 <a  href='".FORUM."viewthread.php?".$rstart."forum_id=".$data['forum_id']."&thread_id=".$data['thread_id']."#".$data2['post_id']."' onMouseover=\"gpe('$start<center><b>&#176; ".$locale['XXX_017']." &#176;</b></center><hr><b>".$locale['XXX_019']."</b> ".trimlink(str_replace("&#39;", "", $data['thread_subject']), 45)."<hr><b>".$locale['XXX_020']."</b>: ".($reply_count - 1)."/".$data['thread_views']."<br><b>".$locale['XXX_021']."</b>: ".$data['user_name']."<br><b>".$locale['XXX_022']."</b>: ".showdate("forumdate", $data['thread_lastpost'])."$end')\" (".$data['forum_name'].")' onMouseout=\"hideddrivetip()\">".trimlink($data['thread_subject'], 16)."</a><br></td>\n";
                     echo "<td align=\"right\" width='25%'>[".$data['thread_views']."]</td>";
              }
              echo "</tr></table>";
              $i++;
       }

} else {
       echo "<center>".$locale['004']."</center>\n";
}
   
echo "   </div>
   
   
   </td>
</tr></table>
</td>
</tr>

<!-- 5 -->

<tr>
   <td><img src=\"".THEME."images/grafa_23.jpg\" width=\"791\" height=\"7\" border=\"0\" alt=\"[Rozmiar: 1118 bajtów]\"></td>
</tr>

<!-- 6 - boody -->

<tr>
   <td>
   
   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-image: url('".THEME."images/lewe.jpg'); width: 8px\" valign=\"top\"><img src=\"".THEME."images/grafa_24.jpg\" width=\"8\" height=\"518\" border=\"0\" alt=\"[Rozmiar: 828 bajtów]\"></td>
   <td style=\"background-image: url('".THEME."images/grafa_25.jpg'); background-position: top; background-repeat: no-repeat; padding-top: 22px; width: 776px\" valign=\"top\">\n";

echo "   <table border=\"0\"; cellpadding=\"0\" cellspacing=\"0\">
<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "
</td>
   <td style=\"background-image: url('".THEME."images/prawe.jpg'); width: 7px\" valign=\"top\"><img src=\"".THEME."images/grafa_26.jpg\" width=\"7\" height=\"518\" border=\"0\" alt=\"[Rozmiar: 865 bajtów]\"></td>
</tr>
</table>
   
   
   </td>
</tr>
<tr>

<!-- 7 -->

   <td><img src=\"".THEME."images/grafa_27.jpg\" width=\"791\" height=\"65\" border=\"0\" alt=\"[Rozmiar: 3020 bajtów]\"></td>
</tr>

<!-- 8 -->

<tr>
   <td><img src=\"".THEME."images/grafa_28.jpg\" width=\"791\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 4718 bajtów]\"></td>
</tr>



<!-- 9 -->

<tr>
<td style=\"background-image: url('".THEME."images/grafa_29.jpg'); height: 130px; width: 791px\">

</td>


</tr>



<!-- 10 -->

<tr>
<td background=\"".THEME."images/grafa_30.jpg\" width=\"791\" height=\"26\">
</td>
</tr>

<!-- 11 -->

<tr>
<td style=\"background-image: url('".THEME."images/grafa_31.jpg'); height: 63px; width: 791px\">
<div style=\"padding-left: 34px; padding-right: 29px\" align=\"center\">
<!-- stopa -->
".stripslashes($settings['footer'])."<br>
nr:".$settings['counter']."
   
   </div>
</td>
</tr>

</table>


\n";

}

function render_news($subject, $news, $info) {

global $settings;

opentable ($subject);   
echo "
<table width=\"100%\"><tr><td colspan=\"2\">$news</td></tr><tr><td class=\"tbl2\"><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."</td><td>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> &#183;\n" : "")."
<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> &#183;
".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></td></tr></table>







";
closetable();
}

function render_article($subject, $article, $info) {

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/table_28.png\" width=\"488\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 33px\"><b>$subject</b></div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px\">
<div style=\"padding-left: 7px; padding-right: 7px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div style='margin-top:5px'>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='tbl2'><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right' class='tbl2'>
<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>
</table>
</div>   
   </td>
</tr>
<tr>
   <td><img src=\"".THEME."images/table_33.png\" width=\"488\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 309 bajtów]\"></td>
</tr>
</table>\n";

}

function opentable($title) {
if (file_exists(THEME."images/nagt_".$title.".png")){
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td><img src=\"".THEME."images/nagt_$title.png\" width=\"488\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 1681 bajtów]\"></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px; padding-left: 7px; padding-right: 7px; background-repeat: repeat-y\">
\n";}
else {
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td style=\"background-repeat: no-repeat; background-image: url('".THEME."images/table_28.png'); width=\"488\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 33px\">$title</div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_31.png'); width: 488px; padding-left: 7px; padding-right: 21px; background-repeat: repeat-y\">\n";
     }

}

function closetable() {

echo "</div>   
   </td>
</tr>
<tr>
   <td><img src=\"".THEME."images/table_33.png\" width=\"488\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 309 bajtów]\"></td>
</tr>
</table>\n";

}

function openside($title) {
if (file_exists(THEME."images/nags_".$title.".png")){
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td><img src=\"".THEME."images/nags_$title.png\" width=\"267\" height=\"37\" border=\"0\" alt=\"[Rozmiar: 1681 bajtów]\"></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_30.png'); width: 267px; padding-left: 22px; padding-right: 22px; background-repeat: repeat-y\">
\n";}
else {
echo "   <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
   <td background=\"".THEME."images/table_27.png\" width=\"267\" height=\"37\"><div style=\"font-size: 11px; font-weight: bolder; letter-spacing: 2px; padding-left: 43px\">$title</div></td>
</tr>
<tr>
   <td style=\"background-image: url('".THEME."images/table_30.png'); background-repeat: repeat-y; padding-left: 22px; padding-right: 22px; width: 267px".THEME."images/table_30.png'); width: 267px; padding-left: 22px; padding-right: 22px\">\n";
     }

}

function closeside() {

echo "</tr>
<tr>
   <td><img src=\"".THEME."images/table_32.png\" width=\"267\" height=\"18\" border=\"0\" alt=\"[Rozmiar: 299 bajtów]\"></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";

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='border-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='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='5'></td></tr>
</table>\n";

}
?>




http://androider.info/
2008 Vas. 21 13:02:02          28 žinutė iš 39
Spausdinti pranešimą
$ užmiršo kažkas akinanti šypsen

2008 Vas. 21 13:02:45          29 žinutė iš 39
Spausdinti pranešimą
ACiu jumS labai!!!!!!!!!!!!!merkia akį))))))kietas

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 13:02:08          30 žinutė iš 39
Spausdinti pranešimą
Bent 10 duotum akinanti šypsen

http://androider.info/
2008 Vas. 21 13:02:31          31 žinutė iš 39
Spausdinti pranešimą
Tik nepamirsk poto det copyright eXtazY&KipshiuS,nes su tokiom kaip tavo ziniom butu tragiska matyt by nixonas akinanti šypsen
2008 Vas. 21 13:02:22          32 žinutė iš 39
Spausdinti pranešimą
By KipshiuS užteks akinanti šypsen Aš niek nesakiau

2008 Vas. 21 13:02:31          33 žinutė iš 39
Spausdinti pranešimą
akinanti šypsen kam ten mate dar kisi... ten turi buti grafa.biz ....

http://androider.info/
2008 Vas. 21 13:02:17          34 žinutė iš 39
Spausdinti pranešimą
Taip Theme by Krissto turi but bet Programer Kipshiusmerkia akį


P.s Dundukas foruma istame su savo nemoksiskumu .
2008 Vas. 21 14:02:12          35 žinutė iš 39
Spausdinti pranešimą
Gal zinote kodel sitoje temoja kai darai panele centre ji darosi tokio didzio kaip per sonu ? galvoja

2008 Vas. 21 15:02:46          36 žinutė iš 39
Spausdinti pranešimą
ee gal galite man per daryti tas centrines paneles kad butu jos kaip siuntiniu?

Gamerz.xz.lt - GTA IV Support'as
2008 Vas. 21 15:02:56          37 žinutė iš 39
Spausdinti pranešimą
Ne negalime.
2008 Bal. 13 13:04:17          38 žinutė iš 39
Spausdinti pranešimą
Galit prisegt ta theme?
2008 Bal. 13 13:04:55          39 žinutė iš 39
Spausdinti pranešimą
Žinoma galiu, Štai prisegu;)

Gamerz.xz.lt - GTA IV Support'as
Peršokti į forumą: