Navigacija

Vartotojų tinkle

Prisijungusių svečių: 241
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: 3.14.250.187
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
Centrine panele
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: disqo Peržiūrų: 1037      Spausdinti temą
2010 Sau. 3 04:01:03          1 žinutė iš 2
Spausdinti pranešimą

Kaip padaryti kad sonine panele atrodytu kaip centrine?
Stai kodas:

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
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";
}

if (iMEMBER) {
   openside($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   if ($msg_count) echo "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><img border='0' alt='".$locale['on108'].$userdata['user_name']."' title='".$locale['on108'].$userdata['user_name']."' src='".BASEDIR."infusions/user_info_panel/images/newpm.gif'></a></b></center><br>\n";

   echo"<center><b>".$userdata['user_name']."</b>, ".$locale['on129']."<br>[<b>";
   echo"<a href='".BASEDIR."messages.php?folder=inbox' class='side'>";
   //echo dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_folder='0'");
   echo "".sprintf($locale['on132'], $msg_count).($msg_count == 1 ? $locale['on134'] : $locale['on135'])."</a></b>] ".$locale['on130']."";


   // Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
   $limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
   $limit_inbox = $limit['pm_inbox'];

   // Set display of top bar
   if ($limit_inbox != "0") { $inbox_display = " <span class='small'>".$locale['on133']." [<b>".$limit_inbox."</b>]</span>"; } else { $inbox_display = " (".$cnt_inbox.")"; }
   echo " <b><a href='".BASEDIR."messages.php?folder=inbox'>".$locale['on131']."</a></b>, <b>".$inbox_display."</b></center>";

   // popup on new PM mod by Ragsman
   if (!isset($_COOKIE['fusion_privmessages'])) {
   $_COOKIE['fusion_privmessages']=0;}
   if ($_COOKIE['fusion_privmessages'] > $msg_count){
   $cookievalue=$msg_count;
   setcookie("fusion_privmessages", "$cookievalue", time() + 3600, "/", "", "0");
}
   if ($_COOKIE['fusion_privmessages'] < $msg_count){
   echo "<script>window.open('".BASEDIR."privmessages.php','PrivateMessages','toolbar=0,scrollbars=0,menubar=0,resizable=0,width=340,height=230')</script>";
   $cookievalue=$msg_count;
   setcookie("fusion_privmessages", "$cookievalue", time() + 3600, "/", "", "0");
}
   // end popup on new pm

   if ($userdata['user_avatar'] != "") {
   echo "<hr><center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center><hr>\n";
      } else {
   echo "<br><center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".INFUSIONS."user_info_panel/images/noimage.gif'></center><br><hr>\n";
}
echo "<b><img src='".BASEDIR."/infusions/user_info_panel/images/4.gif'>Statistika:</b><br>";
   $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 "<span class='small'>°</span> ".$locale['on117']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a><br />\n";
   $tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "° Naujø nariø vakar: ".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."<br>";
echo "° Naujø nariø &#240;iandien: ".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."<br>";
echo "<span class='small'>°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
   $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 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 "<span class='small'>°</span> ".$locale['on101'].dbrows($result)."<br />\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'"
   );

   $members = dbrows($result);
   if ($members != 0) {
      $i = 1;
   echo "<span class='small'>°</span> <b>".$locale['on102'];
      while($data = dbarray($result)) {
   echo "</b><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a>";
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}

   echo "<span class='small'><img src='".BASEDIR."/infusions/user_info_panel/images/7.gif'><b>".$locale['on105']."</b></span><br />";
   echo "<span class='small'>°</span> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['on119']."</a><br>";
   echo "<span class='small'>°</span> <a href='".BASEDIR."messages.php' class='side'>".$locale['on120']."</a><br>";
   echo "<span class='small'>°</span> <a href='".BASEDIR."members.php' class='side'>".$locale['on121']."</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'>".$locale['083']."</a><br>\n";
   }
   echo "<span class='small'>°</span> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['on113']."</a><br>\n";
} else {
   openside($locale['on122']);
   echo "<center>&nbsp;<img src='".BASEDIR."/infusions/user_info_panel/images/svx.gif'> <font class='menu'><br><b>Sveikas, Sve&#232;ias</b><br></font><br></center>";
   echo "<br>";
      echo "<center>&nbsp;<font class='menu'>Nariai turi daugiau privilegijø!</font><br></center>";
      echo "<br>";
echo "<center><img src='".BASEDIR."/infusions/user_info_panel/images/2.gif'> <a href='".BASEDIR."register.php'><b>Registruotis</b></a><br></center>";
echo "<br>";
      echo "<hr>";
      echo "&nbsp;<img src='".BASEDIR."infusions/user_info_panel/images/3.gif'> <font class='menu'><b>Prisijungimo Zona</b></font><br>";
echo "<br>";
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['on123']."<br>";
   echo "<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['on124']."<br>";
   echo "<input type='password' name='user_pass' class='textbox' style='width:100px'><br>";
   echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['on125']."' style='vertical-align:middle;'>";
   echo "<input type='submit' name='login' value='".$locale['on126']."' class='button'><br></form><br>\n";
if ($settings['enable_registration'])
   echo $locale['on128']."</div>\n";

echo "&nbsp;<img src='".BASEDIR."infusions/user_info_panel/images/4.gif'> <font class='menu'><b>Statistika</b></font><br><hr>";
$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 "<span class='small'>°</span> ".$locale['on117']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a><br />\n";
   $tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "° Naujø nariø vakar: ".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."<br>";
echo "° Naujø nariø &#240;iandien: ".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."<br>";
echo "<span class='small'>°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
   $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 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 "<span class='small'>°</span> ".$locale['on101'].dbrows($result)."<br />\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'"
   );

   $members = dbrows($result);
   if ($members != 0) {
      $i = 1;
   echo "<span class='small'>°</span> <b>".$locale['on102'];
      while($data = dbarray($result)) {
   echo "</b><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a>";
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}
}
closeside();
?>




2010 Sau. 3 04:01:16          2 žinutė iš 2
Spausdinti pranešimą
Še. Jeigu tiap spratau.

<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
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";
}

if (iMEMBER) {
   opentable($userdata['user_name']);
   $msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
   if ($msg_count) echo "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><img border='0' alt='".$locale['on108'].$userdata['user_name']."' title='".$locale['on108'].$userdata['user_name']."' src='".BASEDIR."infusions/user_info_panel/images/newpm.gif'></a></b></center><br>\n";

   echo"<center><b>".$userdata['user_name']."</b>, ".$locale['on129']."<br>[<b>";
   echo"<a href='".BASEDIR."messages.php?folder=inbox' class='side'>";
   //echo dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_folder='0'");
   echo "".sprintf($locale['on132'], $msg_count).($msg_count == 1 ? $locale['on134'] : $locale['on135'])."</a></b>] ".$locale['on130']."";


   // Get folder size restrictions (room for future option to restrict number of pm's for a specific user)
   $limit = dbarray(dbquery("SELECT * FROM ".$db_prefix."messages_options WHERE user_id='0'"));
   $limit_inbox = $limit['pm_inbox'];

   // Set display of top bar
   if ($limit_inbox != "0") { $inbox_display = " <span class='small'>".$locale['on133']." [<b>".$limit_inbox."</b>]</span>"; } else { $inbox_display = " (".$cnt_inbox.")"; }
   echo " <b><a href='".BASEDIR."messages.php?folder=inbox'>".$locale['on131']."</a></b>, <b>".$inbox_display."</b></center>";

   // popup on new PM mod by Ragsman
   if (!isset($_COOKIE['fusion_privmessages'])) {
   $_COOKIE['fusion_privmessages']=0;}
   if ($_COOKIE['fusion_privmessages'] > $msg_count){
   $cookievalue=$msg_count;
   setcookie("fusion_privmessages", "$cookievalue", time() + 3600, "/", "", "0");
}
   if ($_COOKIE['fusion_privmessages'] < $msg_count){
   echo "<script>window.open('".BASEDIR."privmessages.php','PrivateMessages','toolbar=0,scrollbars=0,menubar=0,resizable=0,width=340,height=230')</script>";
   $cookievalue=$msg_count;
   setcookie("fusion_privmessages", "$cookievalue", time() + 3600, "/", "", "0");
}
   // end popup on new pm

   if ($userdata['user_avatar'] != "") {
   echo "<hr><center><img border='0' alt='".$locale['on106']."' title='".$locale['on106']."' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."'></center><hr>\n";
      } else {
   echo "<br><center><img border='0' alt='".$locale['on107']."' title='".$locale['on107']."' src='".INFUSIONS."user_info_panel/images/noimage.gif'></center><br><hr>\n";
}
echo "<b><img src='".BASEDIR."/infusions/user_info_panel/images/4.gif'>Statistika:</b><br>";
   $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 "<span class='small'>°</span> ".$locale['on117']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a><br />\n";
   $tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "° Naujø nariø vakar: ".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."<br>";
echo "° Naujø nariø &#240;iandien: ".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."<br>";
echo "<span class='small'>°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
   $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 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 "<span class='small'>°</span> ".$locale['on101'].dbrows($result)."<br />\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'"
   );

   $members = dbrows($result);
   if ($members != 0) {
      $i = 1;
   echo "<span class='small'>°</span> <b>".$locale['on102'];
      while($data = dbarray($result)) {
   echo "</b><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a>";
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}

   echo "<span class='small'><img src='".BASEDIR."/infusions/user_info_panel/images/7.gif'><b>".$locale['on105']."</b></span><br />";
   echo "<span class='small'>°</span> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['on119']."</a><br>";
   echo "<span class='small'>°</span> <a href='".BASEDIR."messages.php' class='side'>".$locale['on120']."</a><br>";
   echo "<span class='small'>°</span> <a href='".BASEDIR."members.php' class='side'>".$locale['on121']."</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'>".$locale['083']."</a><br>\n";
   }
   echo "<span class='small'>°</span> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['on113']."</a><br>\n";
} else {
   opentable($locale['on122']);
   echo "<center>&nbsp;<img src='".BASEDIR."/infusions/user_info_panel/images/svx.gif'> <font class='menu'><br><b>Sveikas, Sve&#232;ias</b><br></font><br></center>";
   echo "<br>";
      echo "<center>&nbsp;<font class='menu'>Nariai turi daugiau privilegijø!</font><br></center>";
      echo "<br>";
echo "<center><img src='".BASEDIR."/infusions/user_info_panel/images/2.gif'> <a href='".BASEDIR."register.php'><b>Registruotis</b></a><br></center>";
echo "<br>";
      echo "<hr>";
      echo "&nbsp;<img src='".BASEDIR."infusions/user_info_panel/images/3.gif'> <font class='menu'><b>Prisijungimo Zona</b></font><br>";
echo "<br>";
   echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['on123']."<br>";
   echo "<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['on124']."<br>";
   echo "<input type='password' name='user_pass' class='textbox' style='width:100px'><br>";
   echo "<input type='checkbox' name='remember_me' value='y' title='".$locale['on125']."' style='vertical-align:middle;'>";
   echo "<input type='submit' name='login' value='".$locale['on126']."' class='button'><br></form><br>\n";
if ($settings['enable_registration'])
   echo $locale['on128']."</div>\n";

echo "&nbsp;<img src='".BASEDIR."infusions/user_info_panel/images/4.gif'> <font class='menu'><b>Statistika</b></font><br><hr>";
$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 "<span class='small'>°</span> ".$locale['on117']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a><br />\n";
   $tag1= date('d');
$tag1= date('d');
$monat1= date('m');
$jahr1= date('Y');
$hanfang = mktime(0,0,0,$monat1,$tag1,$jahr1);
$hende = mktime(23,59,59,$monat1,$tag1,$jahr1);
$ganfang = mktime(0,0,0,$monat1,$tag1-1,$jahr1);
$gende = mktime(23,59,59,$monat1,$tag1-1,$jahr1);
echo "° Naujø nariø vakar: ".dbcount("(user_id)", "users", "user_joined >='".$ganfang."' AND user_joined <='".$gende."'")."<br>";
echo "° Naujø nariø &#240;iandien: ".dbcount("(user_id)", "users", "user_joined >='".$hanfang."' AND user_joined <='".$hende."'")."<br>";
echo "<span class='small'>°</span> ".$locale['on100'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br />\n";
   $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 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 "<span class='small'>°</span> ".$locale['on101'].dbrows($result)."<br />\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'"
   );

   $members = dbrows($result);
   if ($members != 0) {
      $i = 1;
   echo "<span class='small'>°</span> <b>".$locale['on102'];
      while($data = dbarray($result)) {
   echo "</b><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' title='".$data['user_name']."'>".trimlink($data['user_name'], 12)."</a>";
   if ($i != $members) echo ", ";
         $i++;
      }
   echo "<br /><br />\n";
   } else {
   echo $locale['on118']."<br /><br />\n";
}
}
closetable();
?>






Redagavo shit- 2010 Sau. 3 04:01:24
Peršokti į forumą: