PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 39454
Šiandien: 26
Prisijungę nariai
» Svečių: 7
» 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ą
?aukykla
SkyWings
#1 Spausdinti pranešimą
parašyta 2009-11-27 14:04
Vartotojo avataras

Apšylantis



Reputacija: 0

Pranešimai: 79
Įstojo: 2009-06-13

Reikia sutvarkyt i? tokio:
Netinkamas paveiksliukas

tok:
Netinkamas paveiksliukas

Panls kodas:

Download source  Code
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright 2002 - 2006 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
+----------------------------------------------------+
| Shoutbox 5.00 - Modded by Shedrock/Xandra 2007
+----------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { header(\"Location: ../../index.php\"); exit; }

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

require_once INFUSIONS.\"shoutbox_panel/parser.php\";
require_once INFUSIONS.\"shoutbox_panel/functions.php\";

/*******************************************************************
* Set minimum and maximum shouts you want displayed on each level
* and color of the boxover tips used for user info.
*******************************************************************/

$min = 6;   // minimum visible shouts in first level.
$max = 1;   // maximum number of shouts in second level (hidden).
$textcolor = \"#244A60\";   // sets miscellaneous text in the boxover tips.

/******************************************************************/

echo \"
\";

$sb_action = isset($sb_action) ? stripinput($sb_action) : \"\";

switch($sb_action) {

   case \"delete\":
      if (isNum($shout_id) && checkrights(\"S\") && $aid == iAUTH) {
         $result = dbquery(\"DELETE FROM \".$db_prefix.\"shoutbox WHERE shout_id='$shout_id'\");
      }
      break;

   case \"ban\":
      $aid = stripinput($aid);
      $user_id = isNum($uid) ? $uid : 0;
      if (!empty($user_id) && $user_id != 1 && checkrights(\"S\") && $aid == iAUTH) {
         $result = dbquery(\"UPDATE \".$db_prefix.\"users SET user_status='1'
            WHERE user_id='$user_id' AND user_id!='\".$userdata['user_id'].\"' AND user_level!='103'\"
         );
      }
      break;

   case \"unban\":
      $aid = stripinput($aid);
      $user_id = isNum($uid) ? $uid : 0;
      if (!empty($user_id) && $user_id != 1 && checkrights(\"S\") && $aid == iAUTH) {
         $result = dbquery(\"UPDATE \".$db_prefix.\"users SET user_status='0' WHERE user_id='$user_id'\");
      }
      break;
}

openside($locale['120']);

if (iMEMBER || $settings['guestposts'] == \"1\") {
   if (isset($_POST['shout_message'])) {
      $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 = \"\"; }
      }
      $shout_message = str_replace(\"\n\", \" \", $_POST['shout_message']);
      $shout_message = preg_replace(\"/^(.{200}).*$/\", \"$1\", $shout_message);
      $shout_message = preg_replace(\"/([^\s]{45})/\", \"$1\n\", $shout_message);
      $shout_message = trim(stripinput(censorwords($shout_message)));
      $shout_message = str_replace(\"\n\", \"
\", $shout_message);

      // Added by Yuras. Scan for links in the shout. If there is, replace it with [URL]

      $i = 0; $ShoutNew = \"\";
      $ShoutArray = explode(\" \",$shout_message);
      foreach($ShoutArray as $ShoutPart) {
         $ShoutPart =    str_replace(\"
\", \"\", $ShoutPart);
         if (eregi(\"http:\/\/\", $ShoutPart)) {
            // fix for users adding text to the beginning of links: HACKhttp://www.website.com
            $ShoutPartL = strtolower($ShoutPart);
            $spot = strpos($ShoutPartL,\"http://\");
            if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
            $ShoutNew[$i] = \"[Nuoroda!]\";
         } elseif (eregi(\"ftp:\/\/\", $ShoutPart)) {
            $ShoutPartL = strtolower($ShoutPart);
            $spot = strpos($ShoutPartL,\"ftp://\");
            if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
            $ShoutNew[$i] = \"[FTP]\";
         } elseif (eregi(\"irc:\/\/\", $ShoutPart)) {
            $ShoutPartL = strtolower($ShoutPart);
            $spot = strpos($ShoutPartL,\"irc://\");
            if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
            $ShoutNew[$i] = \"[IRC]\";
         } elseif (eregi(\"teamspeak:\/\/\", $ShoutPart)) {
            $ShoutPartL = strtolower($ShoutPart);
            $spot = strpos($ShoutPartL,\"teamspeak://\");
            if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
            $ShoutNew[$i] = \"[TeamSpeak]\";
         } elseif (eregi(\"aim:goim\", $ShoutPart)) {
            $ShoutPartL = strtolower($ShoutPart);
            $spot = strpos($ShoutPartL,\"aim:goim\");
            if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
            $ShoutNew[$i] = \"[AIM]\";
         } elseif (eregi(\"gopher:\/\/\", $ShoutPart)) {
            $ShoutPartL = strtolower($ShoutPart);
            $spot = strpos($ShoutPartL,\"gopher://\");
            if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
            $ShoutNew[$i] = \"[Gopher]\";
         } elseif (eregi(\"mailto:\", $ShoutPart)) {
            $ShoutPartL = strtolower($ShoutPart);
            $spot = strpos($ShoutPartL,\"mailto:\");
            if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
            $ShoutNew[$i] = \"[E-Mail]\";
         } elseif (eregi(\"www\.\", $ShoutPart)) {
            $ShoutPartL = strtolower($ShoutPart);
            $spot = strpos($ShoutPartL,\"www.\");
            if ($spot > 0) { $ShoutPart = substr($ShoutPart, $spot); }
            $ShoutPart = \"http://\" . $ShoutPart;
            $ShoutNew[$i] = \"[Nuoroda]\";
         } elseif ((eregi(\"\.com\", $ShoutPart)) OR (eregi(\"\.net\", $ShoutPart)) OR (eregi(\"\.org\", $ShoutPart)) OR (eregi(\"\.mil\", $ShoutPart)) OR (eregi(\"\.gov\", $ShoutPart)) OR (eregi(\"\.info\", $ShoutPart)) OR (eregi(\"\.us\", $ShoutPart)) OR (eregi(\"\.biz\", $ShoutPart)) OR (eregi(\"\.tv\", $ShoutPart)) OR (eregi(\"\.cc\", $ShoutPart)) OR (eregi(\"\.ws\", $ShoutPart)) OR (eregi(\"\.name\", $ShoutPart)) OR (eregi(\"\.pro\", $ShoutPart)) OR (eregi(\"\.co\.uk\", $ShoutPart)) OR (eregi(\"\.ca\", $ShoutPart)) OR (eregi(\"\.de\", $ShoutPart)) OR (eregi(\"\.jp\", $ShoutPart)) OR (eregi(\"\.ro\", $ShoutPart)) OR (eregi(\"\.be\", $ShoutPart)) OR (eregi(\"\.fm\", $ShoutPart)) OR (eregi(\"\.ms\", $ShoutPart)) OR (eregi(\"\.tc\", $ShoutPart)) OR (eregi(\"\.co\.za\", $ShoutPart)) OR (eregi(\"\.co\.nz\", $ShoutPart)) OR (eregi(\"\.ph\", $ShoutPart)) OR (eregi(\"\.dk\", $ShoutPart)) OR (eregi(\"\.st\", $ShoutPart)) OR (eregi(\"\.ac\", $ShoutPart)) OR (eregi(\"\.gs\", $ShoutPart)) OR (eregi(\"\.vg\", $ShoutPart)) OR (eregi(\"\.sh\", $ShoutPart)) OR (eregi(\"\.kz\", $ShoutPart)) OR (eregi(\"\.as\", $ShoutPart)) OR (eregi(\"\.lt\", $ShoutPart)) OR (eregi(\"\.to\", $ShoutPart)) OR (eregi(\"\.co\.il\", $ShoutPart))) {
            $ShoutPart = \"http://\" . $ShoutPart;
            $ShoutNew[$i] = \"[Nuoroda]\";
         } elseif (strlen($ShoutPart) > 45) {
            $ShoutNew[$i] = wordwrap($ShoutPart, 45, \" \", 1);
         } else { $ShoutNew[$i] = $ShoutPart; }
         $i++;
      }
      $shout_message = implode(\" \",$ShoutNew);
      // End

      if ($shout_name != \"\" && $shout_message != \"\") {
         $result = dbquery(\"SELECT MAX(shout_datestamp) AS last_shout FROM \".$db_prefix.\"shoutbox WHERE shout_ip='\".USER_IP.\"'\");
         if (!iSUPERADMIN && dbrows($result) != 0) {
            $data = dbarray($result);
            if ((time() - $data['last_shout']) < $settings['flood_interval']) {
               $flood = true;
               $result = dbquery(\"INSERT INTO \".$db_prefix.\"flood_control (flood_ip, flood_timestamp) VALUES ('\".USER_IP.\"', '\".time().\"')\");
               if (dbcount(\"(flood_ip)\", \"flood_control\", \"flood_ip='\".USER_IP.\"'\") > 4) {
                  if (iMEMBER) {
                     $result = dbquery(\"UPDATE \".$db_prefix.\"users SET user_status='1' WHERE user_id='\".$userdata['user_id'].\"'\");
                  }
               }
            }
         }
         if (!$flood) {
            $result = dbquery(\"INSERT INTO \".$db_prefix.\"shoutbox (shout_name, shout_message, shout_datestamp, shout_ip)
               VALUES ('$shout_name', '$shout_message', '\".time().\"', '\".USER_IP.\"')\"
            );
         }
      }
      fallback(FUSION_SELF.(FUSION_QUERY ? \"?\".FUSION_QUERY : \"\"));
   }
   echo \"



\".$locale['fb_001'].\"








\n\";
   if (iGUEST) {
      echo $locale['121'].\"


\".$locale['122'].\"
\n\";
   }
   echo \"
>


>  >

>\".$locale['fb_003'].\" |

\".displaysmileys(\"shout_message\", \"shout_smiley\", \"shoutform\").\"

','');\\" style='text-decoration:none; font-size:9px; font-weight:normal;'>\".$locale['fb_004'].\" |
>\".$locale['fb_005'].\" |
\";
colorPalette(\"v\", IMAGES, 10, 7);
echo \"

\".$locale['fb_016'].\"] body=[\".phpentities($locale['fb_017']).\"] delay=[0] fade=[on]\\">\".$locale['fb_018'].\"





\n\";

} else {
   echo \"
\".$locale['125'].\"

\n\";
}
echo \"
\";
$shout_counter = 0;
$result = dbquery(\"SELECT * FROM \".$db_prefix.\"shoutbox LEFT JOIN \".$db_prefix.\"users
   ON shout_name=user_id ORDER BY shout_datestamp DESC LIMIT \".($min + $max)
);
$numrows = dbrows($result);
if ($numrows != 0) {
   $i = 0;
   while ($data = dbarray($result)) {

/*******************************************************************
* Begin show more feature.
********************************************************************/

      if ($shout_counter == $min) {
         echo \"\";
      }

/*******************************************************************
* End show more feature.
********************************************************************/

/*******************************************************************
* Modded for user ban display names, send private message and member homepage.
*******************************************************************/

      if (iMEMBER) {
         if ($data['user_id'] == $userdata['user_id']) {
            echo \"'' \";
         } elseif ($data['user_status'] != 1) {
            if (!isset($data['user_id']) || $data['user_id'] != $userdata['user_id']) {
               echo \">@\".(isset($data['user_name']) ? $data['user_name'] : $data['shout_name']).\": - ','');\\" style='cursor:pointer;'> \".$locale['fb_006'].\"] body=[\".phpentities($locale['fb_034']).\"] delay=[0] fade=[on]\\" alt='' border='0'> \";
            }
            if (isset($data['user_id']) && $data['user_id'] != $userdata['user_id']) {
               echo \" \".$locale['fb_007'].\"] body=[\".phpentities($locale['fb_035']).\"] delay=[0] fade=[on]\\" alt='' border='0'> \";
            }
            if ($data['user_web']) {
               if (!strstr($data['user_web'], \"http://\")) { $urlprefix = \"http://\"; } else { $urlprefix = \"\"; }
               echo \"'' \".$locale['fb_013'].\"] body=[\".phpentities($locale['fb_037']).\"] delay=[0] fade=[on]\\" border='0'> \";
            }
         } elseif ($data['user_status'] == 1) {
            echo \"'' \".$locale['fb_012'].\"] body=[\".phpentities($locale['fb_038']).\"] delay=[0] fade=[on]\\">\";
         }
      } else {
         if ($data['user_status'] == 1) {
            echo \"'' \".$locale['fb_012'].\"] body=[\".phpentities($locale['fb_038']).\"] delay=[0] fade=[on]\\">\";
         } else { echo \"'' \"; }
      }

/*******************************************************************
* End ban display names.
*******************************************************************/

/*******************************************************************
* Modded for colored names.
*******************************************************************/

      $shoutcount = dbcount(\"(shout_id)\", \"shoutbox\", \"shout_name='\".$data['user_id'].\"'\");
      if ($data['user_level'] == \"103\") { $userx = \"\".$data['user_name'].\"\"; }
      elseif ($data['user_level'] == \"102\") { $userx = \"\".$data['user_name'].\"\"; }
      elseif ($data['user_level'] == \"101\") { $userx = \"\".$data['user_name'].\"\"; }
      if ($data['user_status'] == 1) { $userx = \"\".$data['user_name'].\"\"; }

/*******************************************************************
* End color mod.
*******************************************************************/

      $lastseen = time() - $data['user_lastvisit'];
      if ($lastseen < 60) {
         $lastseen = \" \".$locale['fb_014'].\"] body=[\".phpentities($data['user_name'].\", \".$locale['fb_040']).\"] delay=[0] fade=[on]\\" alt='' style='vertical-align: middle;'>\";
      } else {
         $lastseen = \" \".$locale['fb_015'].\"] body=[\".phpentities($data['user_name'].\", \".$locale['fb_041']).\"] delay=[0] fade=[on]\\" alt='' style='vertical-align: middle;'>\";
      }
      if ($data['user_status'] == 1) {
         echo \"\".$locale['fb_033'].\"] body=[\".rawurlencode(\"



\".$locale['fb_025'].\"\".$data['user_name'].\" - \".$locale['fb_026'].\"


\".$locale['fb_027'].\"\".$locale['fb_028'].\"


\".$locale['fb_029'].\"\".showdate(\"shortdate\", $data['user_joined']).\"


\".$locale['fb_030'].\"\".showdate(\"shortdate\", $data['user_lastvisit']).\"


\".$locale['fb_031'].\"$shoutcount \".$locale['fb_032'].\"\").\"] delay=[0] fade=[on]\\">
>$userx
- \".$locale['fb_022'].\"\";
      } else {
         if ($data['user_name']) {
            if ($data['user_avatar'] != \"\") { $avatar = \"\"; }
            else { $avatar = \"\"; }
            echo \"$avatar


\".$locale['fb_025'].\"$userx


Vieta: \".$data['user_location'].\"


Gimimo data: \".$data['user_birthdate'].\"\").\"] delay=[0] fade=[on]\\">
$userx
 $lastseen\";
         } else { echo $data['shout_name'].\"\n\"; }
      }
      echo \"
\n\".showdate(\"shortdate\", $data['shout_datestamp']).\"\";
      if (iADMIN && checkrights(\"S\")) {
         echo \"
\n[>\".$locale['048'].\" - >\".$locale['fb_043'].\"] \";
         if ($data['user_status'] == \"1\") {
            echo \"[>\".$locale['fb_009'].\"]\";
         } elseif ($data['user_status'] == \"0\" && $data['user_level'] != \"103\" && $data['user_id'] != $userdata['user_id']) {
echo \"[>\".$locale['fb_010'].\"]\";
         }
         echo \"
\".$locale['fb_011'].$data['user_ip'].\"
\";
      } else { echo \"
\n\"; }
      echo \"\".parseshoutubb(parseubb(parsesmileys($data['shout_message']))).\"
\n\";
      if ($i != $numrows) { echo \"
\n\"; }
      $shout_counter ++;
   }
} else { echo \"
\".$locale['127'].\"
\n\"; }
if (iMEMBER){
echo \"
\";} else { echo \"
\"; }
if ($shout_counter > $min) { echo \"
\"; }
if (iMEMBER) {
   echo \"

'' 
\".$locale['126'].\" 
''
\n\";
}

closeside();
?>




Pads kas nors?
Redagavo SkyWings 2009-11-28 23:09
 
PM
Peršokti į forumą: