Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,953
Naujausias narys: Quwqkibor

Naujausi straipsniai

Paskutiniai nariai

Memento Mori 2 savaitės
ozzWANTED 3 savaitės
Quwqkibor 5 savaitės
asirija 9 savaitės
tomeem11 savaitės
Reikalas12 savaitės
weberiz14 savaitės
mRokass16 savaitės
kartoonas17 savaitės
iaescortsmap18 savaitės
grunskiz20 savaitės
Bruksnys21 savaitės
illusion21 savaitės
ordo22 savaitės
Jurgaila22 savaitės
originalcs1622 savaitės
Rytis23 savaitės
halis25 savaitės
junkus27 savaitės
morlis28 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 18.118.12.70
Naujienų: 529
Straipsnių: 235
Temų: 52,585
Postų: 522,523
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.

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

Žmogus
2023 Rugs. 7 21:09:14
O gal BloodKiller pasijungs?

Apocal
2023 Rugs. 2 18:09:23
Nu davai nuveikiam kažką akinanti šypsen. Prisijungti kada visi čia akinanti šypsen.

Apocal
2023 Rugs. 2 00:09:18
Šiaip atėjau pažiūrėti ar dar lopas nesby yra ar koks ten buvo.

Š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
Online user
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: lajanas Peržiūrų: 1949      Spausdinti temą
2010 Kov. 20 23:03:41          1 žinutė iš 10
Spausdinti pranešimą
Sveiki, na sita tema manau skirta tik profams :D
man reikia kad nebutu tu tarpu po kiekvienu nicku.

Kodas:
<?php
/*-------------------------------------------------------+
| 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.mes
+--------------------------------------------------------+
| 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('Statistika');
   $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 "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP02'].$guests."<br>\n";
   if (count($members) > 0) {
      $i = 1;
      echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP03'];
      while (list($key, $member) = each($members)) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
         if ($i != count($members)) echo ", ";
         $i++;
      }
      echo "<br>\n";
   } else {
      echo $locale['OUP15']."<br>\n";
   }
   echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP04'].number_format(dbcount("(user_id)", "".$db_prefix."users", "user_status<='1'"))."<br>\n";
   //if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "".$db_prefix."users", "user_status='2'")."<br>\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 "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP05']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='tbl1'>".$data['user_name']."</a>\n";

echo "<br><img src='".THEME."images/bullet.gif' alt=''>".$locale['OUP06']."<br><br>";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9");
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
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 = "<b><small><font color='green'>[Prisijungęs]</font></small></b>";
      } elseif ($lastseen < 360){
         $lastseen="<b><small><font color='red'>[Atsijungęs]</font></small></b>";
      } 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 "<tr>\n<td class='tbl1' align='left'>".THEME_BULLET."\n";
      if($data['user_level'] == 103){ $color="<font color='red'>";
      $color2="</font>";}
      if($data['user_level'] == 102){ $color="<font color='green'>";
      $color2="</font>";}
      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 "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$pavadinimas."' class='side'>\n";
      echo $color.trimlink($data['user_name'], 15).$color2."</a></td><td class='tbl1' align='right'>".$lastseen."</td>\n</tr>\n";

   }
}
echo "</table>";
   closeside();
}
?>



2010 Kov. 21 00:03:10          2 žinutė iš 10
Spausdinti pranešimą
Jei neklystu (galiu ir klysti) turėtu būti taip:

<?php
/*-------------------------------------------------------+
| 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.mes
+--------------------------------------------------------+
| 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('Statistika');
   $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 "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP02'].$guests."<br>\n";
   if (count($members) > 0) {
      $i = 1;
      echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP03'];
      while (list($key, $member) = each($members)) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
         if ($i != count($members)) echo ", ";
         $i++;
      }
      echo "<br>\n";
   } else {
      echo $locale['OUP15']."<br>\n";
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP04'].number_format(dbcount("(user_id)", "".$db_prefix."users", "user_status<='1'"))."\n";
   //if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$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 "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP05']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='tbl1'>".$data['user_name']."</a>\n";

echo "<img src='".THEME."images/bullet.gif' alt=''>".$locale['OUP06']."<br>";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9");
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
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 = "<b><small><font color='green'>[Prisijungęs]</font></small></b>";
      } elseif ($lastseen < 360){
         $lastseen="<b><small><font color='red'>[Atsijungęs]</font></small></b>";
      } 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 "<tr>\n<td class='tbl1' align='left'>".THEME_BULLET."\n";
      if($data['user_level'] == 103){ $color="<font color='red'>";
      $color2="</font>";}
      if($data['user_level'] == 102){ $color="<font color='green'>";
      $color2="</font>";}
      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 "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$pavadinimas."' class='side'>\n";
      echo $color.trimlink($data['user_name'], 15).$color2."</a></td><td class='tbl1' align='right'>".$lastseen."</td>\n</tr>\n";

   }
}
echo "</table>";
   closeside();
}
?>




www.Skanumas.lt - Receptai, Kulinarija, konditerija
www.syntax.lt
Redagavo Apocal 2010 Kov. 21 00:03:46
2010 Kov. 21 10:03:51          3 žinutė iš 10
Spausdinti pranešimą
ne, nujemiai bereikalingus br ir tiek, niekas nepasikeite...
2010 Kov. 21 11:03:18          4 žinutė iš 10
Spausdinti pranešimą
pabandyk nuimti bereikalingus /n

2010 Kov. 21 11:03:20          5 žinutė iš 10
Spausdinti pranešimą
lajanas parašė:
ne, nujemiai bereikalingus br ir tiek, niekas nepasikeite...


Duok visą modą ar kas čia
Taip patogiau tvarkyti ir sutvarkysiu.

Np.
2010 Kov. 21 11:03:13          6 žinutė iš 10
Spausdinti pranešimą
prisegu as ta online_user panel prie posto, uzknisa tie 60 simboliu..


lajanas prisegtu failu:
online_users_panel_2.rar
2010 Kov. 21 11:03:31          7 žinutė iš 10
Spausdinti pranešimą
lajanas parašė:
prisegu as ta online_user panel prie posto, uzknisa tie 60 simboliu..


Error`ų nemažai. be žado

Np.
2010 Kov. 21 13:03:12          8 žinutė iš 10
Spausdinti pranešimą
tai flap nebus istaisyto kodo, nes kazkaip nesmagiai kai tie br buna.
2010 Kov. 21 13:03:57          9 žinutė iš 10
Spausdinti pranešimą
<?php
/*-------------------------------------------------------+
| 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.mes
+--------------------------------------------------------+
| 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('Statistika');
   $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 "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP02'].$guests."<br>\n";
   if (count($members) > 0) {
      $i = 1;
      echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP03'];
      while (list($key, $member) = each($members)) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
         if ($i != count($members)) echo ", ";
         $i++;
      }
      echo "<br>\n";
   } else {
      echo $locale['OUP15']."<br>\n";
   }
   echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP04'].number_format(dbcount("(user_id)", "".$db_prefix."users", "user_status<='1'"))."<br>\n";
   //if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "".$db_prefix."users", "user_status='2'")."<br>\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 "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['OUP05']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='tbl1'>".$data['user_name']."</a>\n";

echo "<br><img src='".THEME."images/bullet.gif' alt=''>".$locale['OUP06']."<br><br>";
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,9");
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
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 = "<b><small><font color='green'>[Prisijungęs]</font></small></b>";
      } elseif ($lastseen < 360){
         $lastseen="<b><small><font color='red'>[Atsijungęs]</font></small></b>";
      } 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 "<tr>\n<td  align='left'>".THEME_BULLET."\n";
      if($data['user_level'] == 103){ $color="<font color='red'>";
      $color2="</font>";}
      if($data['user_level'] == 102){ $color="<font color='green'>";
      $color2="</font>";}
      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 "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$pavadinimas."' class='side'>\n";
      echo $color.trimlink($data['user_name'], 15).$color2."</a></td><td  align='right'>".$lastseen."</td>\n</tr>\n";

   }
}
echo "</table>";
   closeside();
}
?>




2010 Kov. 21 14:03:59          10 žinutė iš 10
Spausdinti pranešimą
ShadoVw - aciu veikia. ! šypsosi .
Peršokti į forumą: