PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 39454
Šiandien: 23
Prisijungę nariai
» Svečių: 1
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
Zbigniew@ 2 Dienos
tabuxnepamenu
sanpernepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-05-11 16:51
Sveiki. Norėjau pasveikinti jus su atkaklumu arba ištverme. Tai viena iš dviejų paskutinių svetainių, paremtų v7. Ar negaila švaistyti ilgametės patirties ir pereiti prie v9?

2026-03-21 19:07

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

Shoutbox Archive
Peržiūrėti temą
 Spausdinti temą
Online_user_panel vip paveiksllis
reyon
#1 Spausdinti pranešimą
parašyta 2010-03-14 07:18
Pradinukas



Reputacija: 0

Pranešimai: 25
Įstojo: 2009-08-26

Sveiki man reikia po nick, kurie nariai yra VIP tiems rodytu paveikslli. Tikiuosi supratote.Va kodas kur reikia dt:

Download source  Code
if (checkvip($data['user_vip'])) echo \"'VIP\";




?tai online_user_panel.php:
Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Version: 1.00
| Author: http://phpfusion.lt
|
+--------------------------------------------------------+
| v7 upgrade by tabux
| www.tabux.projektas.lt
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }
if (file_exists(INFUSIONS.\"online_users_panel/locale/\".$settings['locale'].\".php\")) {
   include INFUSIONS.\"online_users_panel/locale/\".$settings['locale'].\".php\";
} else {
   include INFUSIONS.\"online_users_panel/locale/Lithuanian.php\";
}
if (!defined(\"IN_FUSION\")) { header(\"Location: ../../index.php\"); exit; }

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).\"\");

openside($locale['OUP01']);
   $result = dbquery(
      \"SELECT ton.*, tu.user_id,user_name FROM \".$db_prefix.\"online ton
      LEFT JOIN \".$db_prefix.\"users tu ON ton.online_user=tu.user_id\"
   );
   $guests = 0; $members = array();
   while ($data = dbarray($result)) {
      if ($data['online_user'] == \"0\") {
         $guests++;
      } else {
         array_push($members, array($data['user_id'], $data['user_name']));
      }
   }
   echo \"'' \".$locale['OUP02'].$guests.\"
\n\";
   if (count($members) > 0) {
      $i = 1;
      echo \"'' \".$locale['OUP03'];
      while (list($key, $member) = each($members)) {
         echo \"\".$member[1].\"\";
         if ($i != count($members)) echo \", \";
         $i++;
      }
      echo \"
\n\";
   } else {
      echo $locale['OUP15'].\"
\n\";
   }
   echo \"
'' \".$locale['OUP04'].number_format(dbcount(\"(user_id)\", \"\".$db_prefix.\"users\", \"user_status<='1'\")).\"
\n\";
   //if ($settings['admin_activation'] == \"1\") echo \"'' \".$locale['015'].dbcount(\"(user_id)\", \"\".$db_prefix.\"users\", \"user_status='2'\").\"
\n\";
   $data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".$db_prefix.\"users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1\"));
   echo \"'' \".$locale['OUP05'].\"\".$data['user_name'].\"
\n\";

echo \"
''\".$locale['OUP06'].\"

\";
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9\");
echo \"\";
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 = \"'Prisijungk8;s'\";
      } elseif ($lastseen < 360){
         $lastseen=\"''\";
      } elseif ($iW > 0){
         if ($iW == 1) { $text = $locale['OUP07']; } else { $text = $locale['OUP08']; }
         $lastseen = $iW.\" \".$text;
      } elseif ($iD > 0){
         if ($iD == 1) { $text = $locale['OUP09']; } else { $text = $locale['OUP10']; }
         $lastseen = $iD.\" \".$text;
      } else {
         $lastseen = $iH.\":\".$iM.\":\".$iS;
      }
      echo \"\n\n\n\";

   }
}
echo \"
\".THEME_BULLET.\"\n\";
      if($data['user_level'] == 103){ $color=\"\";
      $color2=\"
\";}
      if($data['user_level'] == 102){ $color=\"\";
      $color2=\"
\";}
      if($data['user_level'] == 101){ $color=\"\";
      $color2=\"\";}
      if($data['user_level'] == 103){ $pavadinimas=$locale['OUP12'];}
      if($data['user_level'] == 102){ $pavadinimas=$locale['OUP13'];}
      if($data['user_level'] == 101){ $pavadinimas=$locale['OUP14'];}
      echo \"\n\";

      echo $color.trimlink($data['user_name'], 15).$color2.\"
\".$lastseen.\"
\";
   closeside();
}
?>



 
PM
Night_lord
#2 Spausdinti pranešimą
parašyta 2010-03-14 07:27
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 40
Įstojo: 2008-02-23

Ir isidk paveiksliuk (VIP) (images/vip.gif

$vip = "'VIP'"; //VIP paveiksliukas
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Version: 1.00
| Author: http://phpfusion.lt
|
+--------------------------------------------------------+
| v7 upgrade by tabux
| www.tabux.projekt...
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."online_users_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."online_users_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."online_users_panel/locale/Lithuanian.php";
}
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

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)."");

openside($locale['OUP01']);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "'' ".$locale['OUP02'].$guests."
n";
if (count($members) > 0) {
$i = 1;
echo "'' ".$locale['OUP03'];
while (list($key, $member) = each($members)) {
echo "".$member[1]."";
if ($i != count($members)) echo ", ";
$i++;
}
echo "
n";
} else {
echo $locale['OUP15']."
n";
}
echo "
'' ".$locale['OUP04'].number_format(dbcount("(user_id)", "".$db_prefix."users", "user_status<='1'"))."
n";
//if ($settings['admin_activation'] == "1") echo "'' ".$locale['015'].dbcount("(user_id)", "".$db_prefix."users", "user_status='2'")."
n";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "'' ".$locale['OUP05']."".$data['user_name']."
n";

echo "
''".$locale['OUP06']."

";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9");
echo "";
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 = "'Prisijungs'";
} elseif ($lastseen < 360){
$lastseen="''";
} elseif ($iW > 0){
if ($iW == 1) { $text = $locale['OUP07']; } else { $text = $locale['OUP08']; }
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = $locale['OUP09']; } else { $text = $locale['OUP10']; }
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "n";

}
}
echo "
".THEME_BULLET."n";
if($data['user_level'] == 103){ $color="";
$color2="
";}
if($data['user_level'] == 102){ $color="";
$color2="
";}
if($data['user_level'] == 101){ $color="";
$color2="";}
if($data['user_level'] == 103){ $pavadinimas=$locale['OUP12'];}
if($data['user_level'] == 102){ $pavadinimas=$locale['OUP13'];}
if($data['user_level'] == 101){ $pavadinimas=$locale['OUP14'];}
echo "n";
echo $color.trimlink($data['user_name'],15).$color2."
".($data['user_vip'] >= time() ? $vip : "")."
".$lastseen."
";
closeside();
}
?>
 
PM
reyon
#3 Spausdinti pranešimą
parašyta 2010-03-14 07:43
Pradinukas



Reputacija: 0

Pranešimai: 25
Įstojo: 2009-08-26

O kodl prad?ioje kiekvieno nick para?o nn? Ir ne tik nick'o
img189.imageshack.us/img189/7627/snapshot035609.jpg
Redagavo reyon 2010-03-14 07:52
 
PM
em1SsS
#4 Spausdinti pranešimą
parašyta 2010-03-14 08:46
Vartotojo avataras

Apšylantis



Reputacija: 0

Pranešimai: 65
Įstojo: 2010-03-12

Pagal kod taisyk klaidas.
 
PM
Wyciokazz
#5 Spausdinti pranešimą
parašyta 2010-03-14 08:56
Vartotojo avataras

Administratorius



Reputacija: 1

Pranešimai: 2108
Įstojo: 2008-02-27

Idek cia blyn koda mes tau patvarkysim kitaip neziuesim.
Kam kurti tai kas jau sukurta.

Nesu ekstrasensas ar dar koks čigonas tad iš nieko negaliu suprast kur bėda.

[img]http://27.media.tumblr.com/tumblr_m3hdwudgjG1rteofuo1_500.gif[/img]
 
PM
reyon
#6 Spausdinti pranešimą
parašyta 2010-03-14 09:02
Pradinukas



Reputacija: 0

Pranešimai: 25
Įstojo: 2009-08-26

Download source  Code

$vip = \"'VIP'\"; //VIP paveiksliukas
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Version: 1.00
| Author: http://phpfusion.lt
|
+--------------------------------------------------------+
| v7 upgrade by tabux
| www.tabux.projekt...
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }
if (file_exists(INFUSIONS.\"online_users_panel/locale/\".$settings['locale'].\".php\")) {
include INFUSIONS.\"online_users_panel/locale/\".$settings['locale'].\".php\";
} else {
include INFUSIONS.\"online_users_panel/locale/Lithuanian.php\";
}
if (!defined(\"IN_FUSION\")) { header(\"Location: ../../index.php\"); exit; }

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).\"\");

openside($locale['OUP01']);
$result = dbquery(
\"SELECT ton.*, tu.user_id,user_name FROM \".$db_prefix.\"online ton
LEFT JOIN \".$db_prefix.\"users tu ON ton.online_user=tu.user_id\"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == \"0\") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo \"'' \".$locale['OUP02'].$guests.\"
n\";
if (count($members) > 0) {
$i = 1;
echo \"'' \".$locale['OUP03'];
while (list($key, $member) = each($members)) {
echo \"\".$member[1].\"\";
if ($i != count($members)) echo \", \";
$i++;
}
echo \"
n\";
} else {
echo $locale['OUP15'].\"
n\";
}
echo \"
'' \".$locale['OUP04'].number_format(dbcount(\"(user_id)\", \"\".$db_prefix.\"users\", \"user_status<='1'\")).\"
n\";
//if ($settings['admin_activation'] == \"1\") echo \"'' \".$locale['015'].dbcount(\"(user_id)\", \"\".$db_prefix.\"users\", \"user_status='2'\").\"
n\";
$data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".$db_prefix.\"users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1\"));
echo \"'' \".$locale['OUP05'].\"\".$data['user_name'].\"
n\";

echo \"
''\".$locale['OUP06'].\"

\";
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9\");
echo \"\";
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 = \"'Prisijungs'\";
} elseif ($lastseen < 360){
$lastseen=\"''\";
} elseif ($iW > 0){
if ($iW == 1) { $text = $locale['OUP07']; } else { $text = $locale['OUP08']; }
$lastseen = $iW.\" \".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = $locale['OUP09']; } else { $text = $locale['OUP10']; }
$lastseen = $iD.\" \".$text;
} else {
$lastseen = $iH.\":\".$iM.\":\".$iS;
}
echo \"n\";

}
}
echo \"
\".THEME_BULLET.\"n\";
if($data['user_level'] == 103){ $color=\"\";
$color2=\"
\";}
if($data['user_level'] == 102){ $color=\"\";
$color2=\"
\";}
if($data['user_level'] == 101){ $color=\"\";
$color2=\"\";}
if($data['user_level'] == 103){ $pavadinimas=$locale['OUP12'];}
if($data['user_level'] == 102){ $pavadinimas=$locale['OUP13'];}
if($data['user_level'] == 101){ $pavadinimas=$locale['OUP14'];}
echo \"n\";
echo $color.trimlink($data['user_name'],15).$color2.\"
\".($data['user_vip'] >= time() ? $vip : \"\").\"
\".$lastseen.\"
\";
closeside();
}
?>


 
PM
em1SsS
#7 Spausdinti pranešimą
parašyta 2010-03-14 09:02
Vartotojo avataras

Apšylantis



Reputacija: 0

Pranešimai: 65
Įstojo: 2010-03-12

va tau tas j kodas..
Redagavo em1SsS 2010-03-14 09:03
 
PM
kLeptO
#8 Spausdinti pranešimą
parašyta 2010-03-14 09:07
Vartotojo avataras

Naujokas



Reputacija: 0

Pranešimai: 24
Įstojo: 2008-05-23

Download source  Code
$vip = \"'VIP'\"; //VIP paveiksliukas
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Version: 1.00
| Author: http://phpfusion.lt
|
+--------------------------------------------------------+
| v7 upgrade by tabux
| www.tabux.projekt...
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }
if (file_exists(INFUSIONS.\"online_users_panel/locale/\".$settings['locale'].\".php\")) {
include INFUSIONS.\"online_users_panel/locale/\".$settings['locale'].\".php\";
} else {
include INFUSIONS.\"online_users_panel/locale/Lithuanian.php\";
}
if (!defined(\"IN_FUSION\")) { header(\"Location: ../../index.php\"); exit; }

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).\"\");

openside($locale['OUP01']);
$result = dbquery(
\"SELECT ton.*, tu.user_id,user_name FROM \".$db_prefix.\"online ton
LEFT JOIN \".$db_prefix.\"users tu ON ton.online_user=tu.user_id\"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == \"0\") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo \"'' \".$locale['OUP02'].$guests.\"
\n\";
if (count($members) > 0) {
$i = 1;
echo \"'' \".$locale['OUP03'];
while (list($key, $member) = each($members)) {
echo \"\".$member[1].\"\";
if ($i != count($members)) echo \", \";
$i++;
}
echo \"
n\";
} else {
echo $locale['OUP15'].\"
\n\";
}
echo \"
'' \".$locale['OUP04'].number_format(dbcount(\"(user_id)\", \"\".$db_prefix.\"users\", \"user_status<='1'\")).\"
\n\";
//if ($settings['admin_activation'] == \"1\") echo \"'' \".$locale['015'].dbcount(\"(user_id)\", \"\".$db_prefix.\"users\", \"user_status='2'\").\"
n\";
$data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".$db_prefix.\"users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1\"));
echo \"'' \".$locale['OUP05'].\"\".$data['user_name'].\"
\n\";

echo \"
''\".$locale['OUP06'].\"

\";
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9\");
echo \"\";
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 = \"'Prisijungs'\";
} elseif ($lastseen < 360){
$lastseen=\"''\";
} elseif ($iW > 0){
if ($iW == 1) { $text = $locale['OUP07']; } else { $text = $locale['OUP08']; }
$lastseen = $iW.\" \".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = $locale['OUP09']; } else { $text = $locale['OUP10']; }
$lastseen = $iD.\" \".$text;
} else {
$lastseen = $iH.\":\".$iM.\":\".$iS;
}
echo \"n\";

}
}
echo \"
\".THEME_BULLET.\"\n\";
if($data['user_level'] == 103){ $color=\"\";
$color2=\"
\";}
if($data['user_level'] == 102){ $color=\"\";
$color2=\"
\";}
if($data['user_level'] == 101){ $color=\"\";
$color2=\"\";}
if($data['user_level'] == 103){ $pavadinimas=$locale['OUP12'];}
if($data['user_level'] == 102){ $pavadinimas=$locale['OUP13'];}
if($data['user_level'] == 101){ $pavadinimas=$locale['OUP14'];}
echo \"\n\";
echo $color.trimlink($data['user_name'],15).$color2.\"
\".($data['user_vip'] >= time() ? $vip : \"\").\"
\".$lastseen.\"
\";
closeside();
}
?>


 
PM
reyon
#9 Spausdinti pranešimą
parašyta 2010-03-14 09:09
Pradinukas



Reputacija: 0

Pranešimai: 25
Įstojo: 2009-08-26

Vistiek yra bet ne tiek daug kaip buvo ://
img718.imageshack.us/img718/2201/snapshot031011.jpg
Redagavo reyon 2010-03-14 09:13
 
PM
kLeptO
#10 Spausdinti pranešimą
parašyta 2010-03-14 09:57
Vartotojo avataras

Naujokas



Reputacija: 0

Pranešimai: 24
Įstojo: 2008-05-23

Download source  Code
$vip = \"'VIP'\"; //VIP paveiksliukas
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Version: 1.00
| Author: http://phpfusion.lt
|
+--------------------------------------------------------+
| v7 upgrade by tabux
| www.tabux.projekt...
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }
if (file_exists(INFUSIONS.\"online_users_panel/locale/\".$settings['locale'].\".php\")) {
include INFUSIONS.\"online_users_panel/locale/\".$settings['locale'].\".php\";
} else {
include INFUSIONS.\"online_users_panel/locale/Lithuanian.php\";
}
if (!defined(\"IN_FUSION\")) { header(\"Location: ../../index.php\"); exit; }

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).\"\");

openside($locale['OUP01']);
$result = dbquery(
\"SELECT ton.*, tu.user_id,user_name FROM \".$db_prefix.\"online ton
LEFT JOIN \".$db_prefix.\"users tu ON ton.online_user=tu.user_id\"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == \"0\") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo \"'' \".$locale['OUP02'].$guests.\"
\n\";
if (count($members) > 0) {
$i = 1;
echo \"'' \".$locale['OUP03'];
while (list($key, $member) = each($members)) {
echo \"\".$member[1].\"\";
if ($i != count($members)) echo \", \";
$i++;
}
echo \"
\n\";
} else {
echo $locale['OUP15'].\"
\n\";
}
echo \"
'' \".$locale['OUP04'].number_format(dbcount(\"(user_id)\", \"\".$db_prefix.\"users\", \"user_status<='1'\")).\"
\n\";
$data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".$db_prefix.\"users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1\"));
echo \"'' \".$locale['OUP05'].\"\".$data['user_name'].\"
\n\";

echo \"
''\".$locale['OUP06'].\"

\";
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9\");
echo \"\";
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 = \"'Prisijungs'\";
} elseif ($lastseen < 360){
$lastseen=\"''\";
} elseif ($iW > 0){
if ($iW == 1) { $text = $locale['OUP07']; } else { $text = $locale['OUP08']; }
$lastseen = $iW.\" \".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = $locale['OUP09']; } else { $text = $locale['OUP10']; }
$lastseen = $iD.\" \".$text;
} else {
$lastseen = $iH.\":\".$iM.\":\".$iS;
}
echo \"n\";

}
}
echo \"
\".THEME_BULLET.\"\n\";
if($data['user_level'] == 103){ $color=\"\";
$color2=\"
\";}
if($data['user_level'] == 102){ $color=\"\";
$color2=\"
\";}
if($data['user_level'] == 101){ $color=\"\";
$color2=\"\";}
if($data['user_level'] == 103){ $pavadinimas=$locale['OUP12'];}
if($data['user_level'] == 102){ $pavadinimas=$locale['OUP13'];}
if($data['user_level'] == 101){ $pavadinimas=$locale['OUP14'];}
echo \"\n\";
echo $color.trimlink($data['user_name'],15).$color2.\"
\".($data['user_vip'] >= time() ? $vip : \"\").\"
\".$lastseen.\"
\";
closeside();
}
?>



 
PM
reyon
#11 Spausdinti pranešimą
parašyta 2010-03-14 10:30
Pradinukas



Reputacija: 0

Pranešimai: 25
Įstojo: 2009-08-26

Liko tik vir? vard :D "nnnnnnnnn"
 
PM
em1SsS
#12 Spausdinti pranešimą
parašyta 2010-03-14 10:44
Vartotojo avataras

Apšylantis



Reputacija: 0

Pranešimai: 65
Įstojo: 2010-03-12

Kiek laiko dirbi su php-f ? :o
 
PM
Night_lord
#13 Spausdinti pranešimą
parašyta 2010-03-14 13:55
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 40
Įstojo: 2008-02-23

$vip = "'VIP'"; //VIP paveiksliukas
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Version: 1.00
| Author: http://phpfusion.lt
|
+--------------------------------------------------------+
| v7 upgrade by tabux
| www.tabux.projekt...
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."online_users_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."online_users_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."online_users_panel/locale/Lithuanian.php";
}
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }

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)."");

openside($locale['OUP01']);
$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
array_push($members, array($data['user_id'], $data['user_name']));
}
}
echo "'' ".$locale['OUP02'].$guests."
\n";
if (count($members) > 0) {
$i = 1;
echo "'' ".$locale['OUP03'];
while (list($key, $member) = each($members)) {
echo "".$member[1]."";
if ($i != count($members)) echo ", ";
$i++;
}
echo "
\n";
} else {
echo $locale['OUP15']."
\n";
}
echo "
'' ".$locale['OUP04'].number_format(dbcount("(user_id)", "".$db_prefix."users", "user_status<='1'"))."
\n";
$data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "'' ".$locale['OUP05']."".$data['user_name']."
\n";

echo "
''".$locale['OUP06']."

";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9");
echo "";
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 = "'Prisijungs'";
} elseif ($lastseen < 360){
$lastseen="''";
} elseif ($iW > 0){
if ($iW == 1) { $text = $locale['OUP07']; } else { $text = $locale['OUP08']; }
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = $locale['OUP09']; } else { $text = $locale['OUP10']; }
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "";

}
}
echo "
".THEME_BULLET."\n";
if($data['user_level'] == 103){ $color="";
$color2="
";}
if($data['user_level'] == 102){ $color="";
$color2="
";}
if($data['user_level'] == 101){ $color="";
$color2="";}
if($data['user_level'] == 103){ $pavadinimas=$locale['OUP12'];}
if($data['user_level'] == 102){ $pavadinimas=$locale['OUP13'];}
if($data['user_level'] == 101){ $pavadinimas=$locale['OUP14'];}
echo "\n";
echo $color.trimlink($data['user_name'],15).$color2."
".($data['user_vip'] >= time() ? $vip : "")."
".$lastseen."
";
closeside();
}
?>
 
PM
Peršokti į forumą: