PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 39454
Šiandien: 23
Prisijungę nariai
» Svečių: 2
» 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ą
shoutbox_panel
reyon
#1 Spausdinti pranešimą
parašyta 2010-03-06 18:15
Pradinukas



Reputacija: 0

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

Sveiki, gal galyt padt padaryt kad super administratoriai ir administratoriai ?aukykloi nick bt kitokios spalvos?
Va mano shoutbox_panel:
Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: shoutbox_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| 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\"); }

$link = FUSION_SELF.(FUSION_QUERY ? \"?\".FUSION_QUERY : \"\");
$link = preg_replace(\"^(&|\?)s_action=(edit|delete)&shout_id=\d*^\", \"\", $link);
$sep = stristr($link, \"?\") ? \"&\" : \"?\";

if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == \"delete\") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
   if ((iADMIN && checkrights(\"S\")) || (iMEMBER && dbcount(\"(shout_id)\", DB_SHOUTBOX, \"shout_id='\".$_GET['shout_id'].\"' AND shout_name='\".$userdata['user_id'].\"'\"))) {
      $result = dbquery(\"DELETE FROM \".DB_SHOUTBOX.\" WHERE shout_id='\".$_GET['shout_id'].\"'\".(iADMIN ? \"\" : \" AND shout_name='\".$userdata['user_id'].\"'\"));
   }
   redirect($link);
}

function sbwrap($text) {
   
   $i = 0; $tags = 0; $chars = 0; $res = \"\";
   
   $str_len = strlen($text);
   
   for ($i = 0; $i < $str_len; $i++) {
      $chr = substr($text, $i, 1);
      if ($chr == \"<\") {
         if (substr($text, ($i + 1), 6) == \"a href\" || substr($text, ($i + 1), 3) == \"img\") {
            $chr = \" \".$chr;
            $chars = 0;
         }
         $tags++;
      } elseif ($chr == \"&\") {
         if (substr($text, ($i + 1), 5) == \"quot;\") {
            $chars = $chars - 5;
         } elseif (substr($text, ($i + 1), 4) == \"amp;\" || substr($text, ($i + 1), 4) == \"#39;\" || substr($text, ($i + 1), 4) == \"#92;\") {
            $chars = $chars - 4;
         } elseif (substr($text, ($i + 1), 3) == \"lt;\" || substr($text, ($i + 1), 3) == \"gt;\") {
            $chars = $chars - 3;
         }
      } elseif ($chr == \">\") {
         $tags--;
      } elseif ($chr == \" \") {
         $chars = 0;
      } elseif (!$tags) {
         $chars++;
      }
      
      if (!$tags && $chars == 18) {
         $chr .= \"
\";
         $chars = 0;
      }
      $res .= $chr;
   }
   
   return $res;
}

openside($locale['global_150']);
if (iMEMBER || $settings['guestposts'] == \"1\") {
   include_once INCLUDES.\"bbcode_include.php\";
   if (isset($_POST['post_shout'])) {
      $flood = false;
      if (iMEMBER) {
         $shout_name = $userdata['user_id'];
      } elseif ($settings['guestposts'] == \"1\") {
         $shout_name = trim(stripinput($_POST['shout_name']));
         $shout_name = preg_replace(\"(^[0-9]*)\", \"\", $shout_name);
         if (isnum($shout_name)) { $shout_name = \"\"; }
         include_once INCLUDES.\"securimage/securimage.php\";
         $securimage = new Securimage();
         if (!isset($_POST['sb_captcha_code']) || $securimage->check($_POST['sb_captcha_code']) == false) { redirect($link); }
      }
      $shout_message = str_replace(\"\n\", \" \", $_POST['shout_message']);
      $shout_message = preg_replace(\"/^(.{255}).*$/\", \"$1\", $shout_message);
      $shout_message = trim(stripinput(censorwords($shout_message)));
      if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == \"edit\") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
         $comment_updated = false;
         if ((iADMIN && checkrights(\"S\")) || (iMEMBER && dbcount(\"(shout_id)\", DB_SHOUTBOX, \"shout_id='\".$_GET['shout_id'].\"' AND shout_name='\".$userdata['user_id'].\"'\"))) {
            if ($shout_message) {
               $result = dbquery(\"UPDATE \".DB_SHOUTBOX.\" SET shout_message='$shout_message' WHERE shout_id='\".$_GET['shout_id'].\"'\".(iADMIN ? \"\" : \" AND shout_name='\".$userdata['user_id'].\"'\"));
            }
         }
         redirect($link);
      } elseif ($shout_name && $shout_message) {
         require_once INCLUDES.\"flood_include.php\";
         if (!flood_control(\"shout_datestamp\", DB_SHOUTBOX, \"shout_ip='\".USER_IP.\"'\")) {
            $result = dbquery(\"INSERT INTO \".DB_SHOUTBOX.\" (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '\".time().\"', '\".USER_IP.\"')\");
         }
      }
      redirect($link);
   }
   if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == \"edit\") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
      $esresult = dbquery(
         \"SELECT ts.*, tu.user_id, tu.user_name FROM \".DB_SHOUTBOX.\" ts
         LEFT JOIN \".DB_USERS.\" tu ON ts.shout_name=tu.user_id
         WHERE ts.shout_id='\".$_GET['shout_id'].\"'\"
      );
      if (dbrows($esresult)) {
         $esdata = dbarray($esresult);
         if ((iADMIN && checkrights(\"S\")) || (iMEMBER && $esdata['shout_name'] == $userdata['user_id'] && isset($esdata['user_name']))) {
            if ((isset($_GET['s_action']) && $_GET['s_action'] == \"edit\") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
               $edit_url = $sep.\"s_action=edit&shout_id=\".$esdata['shout_id'];
            } else {
               $edit_url = \"\";
            }
            $shout_link = $link.$edit_url;
            $shout_message = $esdata['shout_message'];
         }
      } else {
         $shout_link = $link;
         $shout_message = \"\";
      }
   } else {
      $shout_link = $link;
      $shout_message = \"\";
   }
   
   echo \"\n\";
   echo \"
\n\";
   if (iGUEST) {
      echo $locale['global_151'].\"
\n\";
      echo \"
\n\";
      echo $locale['global_152'].\"
\n\";
   }
   echo \"
\n\";
   echo display_bbcodes(\"150px;\", \"shout_message\", \"shout_form\", \"smiley|b|u|url|color\").\"\n\";
   if (iGUEST) {
      echo $locale['global_158'].\"
\n\";
      echo \"''
\n\";
    echo \"''\n\";
    echo \">''
\n\";
      echo $locale['global_159'].\"
\n
\n\";
   }
   echo \"
\n\";
   echo \"
\n
\n\";
} else {
   echo \"
\".$locale['global_154'].\"

\n\";
}
$numrows = dbcount(\"(shout_id)\", DB_SHOUTBOX);
$result = dbquery(
   \"SELECT ts.*, tu.user_id, tu.user_name FROM \".DB_SHOUTBOX.\" ts
   LEFT JOIN \".DB_USERS.\" tu ON ts.shout_name=tu.user_id
   ORDER BY ts.shout_datestamp DESC LIMIT 0,\".$settings['numofshouts']
);
if (dbrows($result)) {
   $i = 0;
   while ($data = dbarray($result)) {
      echo \"
\";
      if ($data['user_name']) {
         echo \"\".$data['user_name'].\"\n\";
      } else {
         echo $data['shout_name'].\"\n\";
      }
      echo \"
\n\";
      echo \"
\".showdate(\"shortdate\", $data['shout_datestamp']).\"
\";
      echo \"
\".sbwrap(parseubb(parsesmileys($data['shout_message']), \"b|i|u|url|color\")).\"
\n\";
      if ((iADMIN && checkrights(\"S\")) || (iMEMBER && $data['shout_name'] == $userdata['user_id'] && isset($data['user_name']))) {
         echo \"[\".$locale['global_076'].\"]\n\";
         echo \"[\".$locale['global_157'].\"]
\n\";
      }
      $i++;
      if ($i != $numrows) { echo \"
\n\"; }
   }
   if ($numrows > $settings['numofshouts']) {
      echo \"\n\";
   }
} else {
   echo \"
\".$locale['global_156'].\"
\n\";
}
closeside();
?>



 
PM
Bamas
#2 Spausdinti pranešimą
parašyta 2010-03-06 18:18
Vartotojo avataras

Draugas



Reputacija: 0

Pranešimai: 492
Įstojo: 2009-06-18

Siuskis kita shoutbox'a cia nera atrodo.
www.topfilmai.lt
 
PM
reyon
#3 Spausdinti pranešimą
parašyta 2010-03-06 18:21
Pradinukas



Reputacija: 0

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

?inau kad nra, todl man ir reik padaryt :)
 
PM
Niko
#4 Spausdinti pranešimą
parašyta 2010-03-06 18:26
Apšylantis



Reputacija: 0

Pranešimai: 59
Įstojo: 2010-02-06

Tai siuskis nauja ir siuntiniu kur yra.
 
PM
Rinas
#5 Spausdinti pranešimą
parašyta 2010-03-06 18:27
Administratorius



Reputacija: 0

Pranešimai: 204
Įstojo: 2009-06-10

Download source  Code
//Spalvu nustatymai
$sa_spalva = \"900\"; //Super admino
$a_spalva = \"090\"; //Admino

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: shoutbox_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| 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\"); }

$link = FUSION_SELF.(FUSION_QUERY ? \"?\".FUSION_QUERY : \"\");
$link = preg_replace(\"^(&|\?)s_action=(edit|delete)&shout_id=\d*^\", \"\", $link);
$sep = stristr($link, \"?\") ? \"&\" : \"?\";

if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == \"delete\") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
   if ((iADMIN && checkrights(\"S\")) || (iMEMBER && dbcount(\"(shout_id)\", DB_SHOUTBOX, \"shout_id='\".$_GET['shout_id'].\"' AND shout_name='\".$userdata['user_id'].\"'\"))) {
      $result = dbquery(\"DELETE FROM \".DB_SHOUTBOX.\" WHERE shout_id='\".$_GET['shout_id'].\"'\".(iADMIN ? \"\" : \" AND shout_name='\".$userdata['user_id'].\"'\"));
   }
   redirect($link);
}

function sbwrap($text) {
   
   $i = 0; $tags = 0; $chars = 0; $res = \"\";
   
   $str_len = strlen($text);
   
   for ($i = 0; $i < $str_len; $i++) {
      $chr = substr($text, $i, 1);
      if ($chr == \"<\") {
         if (substr($text, ($i + 1), 6) == \"a href\" || substr($text, ($i + 1), 3) == \"img\") {
            $chr = \" \".$chr;
            $chars = 0;
         }
         $tags++;
      } elseif ($chr == \"&\") {
         if (substr($text, ($i + 1), 5) == \"quot;\") {
            $chars = $chars - 5;
         } elseif (substr($text, ($i + 1), 4) == \"amp;\" || substr($text, ($i + 1), 4) == \"#39;\" || substr($text, ($i + 1), 4) == \"#92;\") {
            $chars = $chars - 4;
         } elseif (substr($text, ($i + 1), 3) == \"lt;\" || substr($text, ($i + 1), 3) == \"gt;\") {
            $chars = $chars - 3;
         }
      } elseif ($chr == \">\") {
         $tags--;
      } elseif ($chr == \" \") {
         $chars = 0;
      } elseif (!$tags) {
         $chars++;
      }
     
      if (!$tags && $chars == 18) {
         $chr .= \"
\";
         $chars = 0;
      }
      $res .= $chr;
   }
   
   return $res;
}

openside($locale['global_150']);
if (iMEMBER || $settings['guestposts'] == \"1\") {
   include_once INCLUDES.\"bbcode_include.php\";
   if (isset($_POST['post_shout'])) {
      $flood = false;
      if (iMEMBER) {
         $shout_name = $userdata['user_id'];
      } elseif ($settings['guestposts'] == \"1\") {
         $shout_name = trim(stripinput($_POST['shout_name']));
         $shout_name = preg_replace(\"(^[0-9]*)\", \"\", $shout_name);
         if (isnum($shout_name)) { $shout_name = \"\"; }
         include_once INCLUDES.\"securimage/securimage.php\";
         $securimage = new Securimage();
         if (!isset($_POST['sb_captcha_code']) || $securimage->check($_POST['sb_captcha_code']) == false) { redirect($link); }
      }
      $shout_message = str_replace(\"\n\", \" \", $_POST['shout_message']);
      $shout_message = preg_replace(\"/^(.{255}).*$/\", \"$1\", $shout_message);
      $shout_message = trim(stripinput(censorwords($shout_message)));
      if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == \"edit\") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
         $comment_updated = false;
         if ((iADMIN && checkrights(\"S\")) || (iMEMBER && dbcount(\"(shout_id)\", DB_SHOUTBOX, \"shout_id='\".$_GET['shout_id'].\"' AND shout_name='\".$userdata['user_id'].\"'\"))) {
            if ($shout_message) {
               $result = dbquery(\"UPDATE \".DB_SHOUTBOX.\" SET shout_message='$shout_message' WHERE shout_id='\".$_GET['shout_id'].\"'\".(iADMIN ? \"\" : \" AND shout_name='\".$userdata['user_id'].\"'\"));
            }
         }
         redirect($link);
      } elseif ($shout_name && $shout_message) {
         require_once INCLUDES.\"flood_include.php\";
         if (!flood_control(\"shout_datestamp\", DB_SHOUTBOX, \"shout_ip='\".USER_IP.\"'\")) {
            $result = dbquery(\"INSERT INTO \".DB_SHOUTBOX.\" (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '\".time().\"', '\".USER_IP.\"')\");
         }
      }
      redirect($link);
   }
   if (iMEMBER && (isset($_GET['s_action']) && $_GET['s_action'] == \"edit\") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
      $esresult = dbquery(
         \"SELECT ts.*, tu.user_id, tu.user_name FROM \".DB_SHOUTBOX.\" ts
         LEFT JOIN \".DB_USERS.\" tu ON ts.shout_name=tu.user_id
         WHERE ts.shout_id='\".$_GET['shout_id'].\"'\"
      );
      if (dbrows($esresult)) {
         $esdata = dbarray($esresult);
         if ((iADMIN && checkrights(\"S\")) || (iMEMBER && $esdata['shout_name'] == $userdata['user_id'] && isset($esdata['user_name']))) {
            if ((isset($_GET['s_action']) && $_GET['s_action'] == \"edit\") && (isset($_GET['shout_id']) && isnum($_GET['shout_id']))) {
               $edit_url = $sep.\"s_action=edit&shout_id=\".$esdata['shout_id'];
            } else {
               $edit_url = \"\";
            }
            $shout_link = $link.$edit_url;
            $shout_message = $esdata['shout_message'];
         }
      } else {
         $shout_link = $link;
         $shout_message = \"\";
      }
   } else {
      $shout_link = $link;
      $shout_message = \"\";
   }
   
   echo \"\n\";
   echo \"
\n\";
   if (iGUEST) {
      echo $locale['global_151'].\"
\n\";
      echo \"
\n\";
      echo $locale['global_152'].\"
\n\";
   }
   echo \"
\n\";
   echo display_bbcodes(\"150px;\", \"shout_message\", \"shout_form\", \"smiley|b|u|url|color\").\"\n\";
   if (iGUEST) {
      echo $locale['global_158'].\"
\n\";
      echo \"''
\n\";
    echo \"''\n\";
    echo \">''
\n\";
      echo $locale['global_159'].\"
\n
\n\";
   }
   echo \"
\n\";
   echo \"
\n
\n\";
} else {
   echo \"
\".$locale['global_154'].\"

\n\";
}
$numrows = dbcount(\"(shout_id)\", DB_SHOUTBOX);
$result = dbquery(
   \"SELECT ts.*, tu.user_id, tu.user_name, tu.user_level FROM \".DB_SHOUTBOX.\" ts
   LEFT JOIN \".DB_USERS.\" tu ON ts.shout_name=tu.user_id
   ORDER BY ts.shout_datestamp DESC LIMIT 0,\".$settings['numofshouts']
);
if (dbrows($result)) {
   $i = 0;
   while ($data = dbarray($result)) {
      echo \"
\";
      if ($data['user_name']) {
if ($data['user_level'] == 103) {
     $spalva = $sa_spalva;
} elseif ($data['user_level'] == 102) {
     $spalva = $a_spalva;
} else {
    $spalva = \"\";
}
         echo \"\".$data['user_name'].\"\n\";
      } else {
         echo $data['shout_name'].\"\n\";
      }
      echo \"
\n\";
      echo \"
\".showdate(\"shortdate\", $data['shout_datestamp']).\"
\";
      echo \"
\".sbwrap(parseubb(parsesmileys($data['shout_message']), \"b|i|u|url|color\")).\"
\n\";
      if ((iADMIN && checkrights(\"S\")) || (iMEMBER && $data['shout_name'] == $userdata['user_id'] && isset($data['user_name']))) {
         echo \"[\".$locale['global_076'].\"]\n\";
         echo \"[\".$locale['global_157'].\"]
\n\";
      }
      $i++;
      if ($i != $numrows) { echo \"
\n\"; }
   }
   if ($numrows > $settings['numofshouts']) {
      echo \"\n\";
   }
} else {
   echo \"
\".$locale['global_156'].\"
\n\";
}
closeside();
?>



 
PM
reyon
#6 Spausdinti pranešimą
parašyta 2010-03-06 18:34
Pradinukas



Reputacija: 0

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

Dkui rinas Valio
 
PM
Magvaidas
#7 Spausdinti pranešimą
parašyta 2010-03-06 19:58
Naujokas



Reputacija: 0

Pranešimai: 4
Įstojo: 2010-02-20

Geras dalykas
 
PM
xarnisx
#8 Spausdinti pranešimą
parašyta 2010-03-06 21:37
Pradinukas



Reputacija: 0

Pranešimai: 33
Įstojo: 2009-11-19

ia dkuj , nes ir man pravert :) Šypsosi gal dar eitu pasakyt kaip pakeist paprastu vartotoju spalva?
jei kam nesunku numeskit vieta kurioj reikia ra?yt koda spalvos (ia toj paioj panelej)

nebereikia, pasidariau pats :)
Redagavo xarnisx 2010-03-07 00:46
 
PM
reyon
#9 Spausdinti pranešimą
parašyta 2010-03-09 14:09
Pradinukas



Reputacija: 0

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

Ai dar jei nesunku gal gali padti ir online_user_panlel pakeist, bet ? kart pa?ymk ta vieta kad kita kart mokiau :)
Download source  Code

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Author: ptown67
| Website: http://pennerprofi.bplaced.net
+--------------------------------------------------------+
| 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\"); }

add_to_head(\"
   
   
   
   \");

$result = dbquery(\"SELECT * FROM \".DB_ONLINE.\" WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\"));
if (dbrows($result)) {
   $result = dbquery(\"UPDATE \".DB_ONLINE.\" SET online_lastactive='\".time().\"' WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\").\"\");
} else {
   $result = dbquery(\"INSERT INTO \".DB_ONLINE.\" (online_user, online_ip, online_lastactive) VALUES ('\".($userdata['user_level'] != 0 ? $userdata['user_id'] : \"0\").\"', '\".USER_IP.\"', '\".time().\"')\");
}
$result = dbquery(\"DELETE FROM \".DB_ONLINE.\" WHERE online_lastactive<\".(time()-600).\"\");

openside($locale['global_010']);
$result = dbquery(
   \"SELECT ton.*, tu.user_id,user_name FROM \".DB_ONLINE.\" ton
   LEFT JOIN \".DB_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 THEME_BULLET.\" \".$locale['global_011'].\": \".$guests.\"
\n\";
echo THEME_BULLET.\" \".$locale['global_012'].\": \".count($members).\"
\n\";
echo \"
\";

$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users ORDER BY user_lastvisit DESC LIMIT 0,10\");

   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 = \"'Online'\";
            } elseif ($lastseen < 600){
               $lastseen = \"'10Min'\";
            } else {
               $lastseen = \"'Offline'\";
            }
         
         if ($data['user_level'] == 103) $userlevel = \"Administrator\";
         if ($data['user_level'] == 102) $userlevel = \"CoAdmin\";
         if ($data['user_level'] == 101) $userlevel = \"Mitglied\";
         echo \"\n\";
      }
   }
   echo \"
\";
         echo trimlink($data['user_name'],15).\"
\".$lastseen.\"
\";

echo \"
\n\".THEME_BULLET.\" \".$locale['global_014'].\": \".number_format(dbcount(\"(user_id)\", DB_USERS, \"user_status<='1'\")).\"
\n\";
if (iADMIN && checkrights(\"M\") && $settings['admin_activation'] == \"1\") {
   echo THEME_BULLET.\" \".$locale['global_015'].\"\";
   echo \": \".dbcount(\"(user_id)\", DB_USERS, \"user_status='2'\").\"
\n\";
}
$data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".DB_USERS.\" WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1\"));
echo THEME_BULLET.\" \".$locale['global_016'].\": \".trimlink($data['user_name'],15).\"\n\";

closeside();
?>


 
PM
inhod
#10 Spausdinti pranešimą
parašyta 2010-04-10 11:35
Naujokas



Reputacija: 0

Pranešimai: 1
Įstojo: 2010-02-02

O ia v6 ar v7 , nes kai pakeitu visa ?ita teksta man ka?kodl neveikia.?
 
PM
beshell
#11 Spausdinti pranešimą
parašyta 2010-04-10 11:51
Pradinukas



Reputacija: 0

Pranešimai: 28
Įstojo: 2010-04-05

jei galit numeskit url sitos shoutbox... Buciau dekingas...
 
PM
Peršokti į forumą: