PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 38943
Šiandien: 17
Prisijungę nariai
» Svečių: 9
» Narių: 0

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

Prisijungimų istorija:
tabux21:19:44
sanpernepamenu
Zbigniew@nepamenu
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-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

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

Shoutbox Archive
Peržiūrėti temą








bei mano comments_include

Download source  Code
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright 2002 - 2006 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
|Digimonas valdo je je je
+----------------------------------------------------*/
if (!defined(\"IN_FUSION\")) { header(\"Location:../index.php\"); exit; }

include LOCALE.LOCALESET.\"comments.php\";

function showcomments($ctype,$cdb,$ccol,$cid,$clink) {

   global $settings,$locale,$userdata,$aidlink,$edit,$delete,$db_prefix;
   
      $deldata=dbarray(dbquery(\"SELECT * FROM \".$db_prefix.\"comments WHERE comment_id='\".$delete.\"'\"));
      $editdata=dbarray(dbquery(\"SELECT * FROM \".$db_prefix.\"comments WHERE comment_id='\".$edit.\"'\"));
      
      if (iMEMBER && isset($delete)) {
      if (checkrights(\"C\") || $userdata['user_id'] == $deldata['comment_name']) {
      $result=dbquery(\"DELETE FROM \".$db_prefix.\"comments WHERE comment_id='\".$delete.\"'\");
      redirect($clink);
      } else {
      redirect($clink);
      }
      }

      if (iMEMBER && (checkrights(\"C\") || $userdata['user_id'] == $editdata['comment_name']) && isset($_POST['edit_comment'])) {
      $comment_message = trim(stripinput(censorwords($_POST['comment_message'])));
      $comment_smileys = isset($_POST['disable_smileys']) ? \"0\" : \"1\";
      if ($comment_message != \"\") {
      $result = dbquery(\"UPDATE \".$db_prefix.\"comments SET comment_message='$comment_message', comment_smileys='$comment_smileys' WHERE comment_id='\".$edit.\"'\");
      }
      redirect($clink);
      } elseif ((iMEMBER || $settings['guestposts'] == \"1\") && isset($_POST['post_comment'])) {
      $flood = false;
      if (dbrows(dbquery(\"SELECT $ccol FROM \".DB_PREFIX.\"$cdb WHERE $ccol='$cid'\"))==0) {
         fallback(BASEDIR.\"index.php\");
      }
      if (iMEMBER) {
         $comment_name = $userdata['user_id'];
      } elseif ($settings['guestposts'] == \"1\") {
         $comment_name = trim(stripinput($_POST['comment_name']));
         $comment_name = preg_replace(\"(^[0-9]*)\", \"\", $comment_name);
         if (isNum($comment_name)) $comment_name=\"\";
      }
      $comment_message = trim(stripinput(censorwords($_POST['comment_message'])));
      $comment_smileys = isset($_POST['disable_smileys']) ? \"0\" : \"1\";
      if ($comment_name != \"\" && $comment_message != \"\") {
         $result = dbquery(\"SELECT MAX(comment_datestamp) AS last_comment FROM \".DB_PREFIX.\"comments WHERE comment_ip='\".USER_IP.\"'\");
         if (!iSUPERADMIN || dbrows($result) > 0) {
            $data = dbarray($result);
            if ((time() - $data['last_comment']) < $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.\"comments (comment_item_id, comment_type, comment_name, comment_message, comment_smileys, comment_datestamp, comment_ip) VALUES ('$cid', '$ctype', '$comment_name', '$comment_message', '$comment_smileys', '\".time().\"', '\".USER_IP.\"')\");
      }
      redirect($clink);
   }
   tablebreak();
   opentable($locale['c100']);
   $result = dbquery(
      \"SELECT tcm.*,user_name,user_avatar FROM \".DB_PREFIX.\"comments tcm
      LEFT JOIN \".DB_PREFIX.\"users tcu ON tcm.comment_name=tcu.user_id
      WHERE comment_item_id='$cid' AND comment_type='$ctype'
      ORDER BY comment_datestamp ASC\"
   );
   if (dbrows($result) != 0) {
      $i = 0;
      echo \"
 Spausdinti temą
bbcode
vytaz
#1 Spausdinti pranešimą
parašyta 2008-08-04 20:58
Vartotojo avataras

Apšylantis



Reputacija: 0

Pranešimai: 94
Įstojo: 2007-08-02

Kaip si koda ikist i coment_include kad eitu nes kai idetu si bbcode vietoj orginalo raso klaida arba tokia ';' arba tokia ':' tai vat duodu koda

Download source  Code



>
 >
 >

 >
 >
 >
 >
 >
 >
 >
 >
 
>

>
>
>
>
>
>
>
>
\n\";
      while ($data = dbarray($result)) {
         echo \"
\n
         

         
\n\n\";
         $i++;
      }
      if (checkrights(\"C\")) echo \"
\n\n\n\";
      echo \"

         ''
         
\n\";
         if ($data['user_name']) {
            echo \"\".$data['user_name'].\"\";
         } else {
            echo $data['comment_name'];
         }
         if ($data['comment_smileys'] == \"1\") {
            $comment_message = parsesmileys($data['comment_message']);
         } else {
            $comment_message = $data['comment_message'];
         }
         $comment_message = nl2br(parseubb($comment_message));
         echo \"
\n\".$locale['041'].showdate(\"longdate\", $data['comment_datestamp']).\"\";
         
         if (checkrights(\"C\") || $userdata['user_id'] == $data['comment_name']) {
         echo \" Redaguoti | >Trinti\";
         }
         echo \"
\n\";
         echo $comment_message.\"
\".$locale['c106'].\"
\n\";
   } else {
      echo $locale['c101'].\"\n\";
   }
   closetable();
   tablebreak();
   opentable($locale['c102']);
   

      
   if (iMEMBER || $settings['guestposts'] == \"1\") {
   $dta = dbarray(dbquery(\"SELECT * FROM \".$db_prefix.\"comments WHERE comment_id='\".$edit.\"'\"));
   if (isset($edit)) { $action=\"&edit=$edit\"; $but=\"edit_comment\"; $but2=\"I?saugoti\"; $value=$dta['comment_message']; } else { $action=\"\"; $but=\"post_comment\"; $but2=$locale['c102']; $value=\"\"; }
      
      echo \"

\n\";
      if (iGUEST) {
         echo \"




\n\";
      }
      
      
      echo \"




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


>', '');\\">
>', '');\\">
>', '');\\">
>
>
>
>
>', '');\\">
>
Download source  Code
', '


');\\">
>', '');\\">



\".displaysmileys(\"comment_message\").\"
\".$locale['c107'].\"



\n\";
   } else {
      echo $locale['c105'].\"\n\";
   }
   closetable();
}
?>




jeigu reikia dar maicore tia mano yra orginalas todel nepridedu ce jo :)  
PM
bronka
#2 Spausdinti pranešimą
parašyta 2008-08-04 21:19
Vartotojo avataras

Savekas



Reputacija: 0

Pranešimai: 119
Įstojo: 2007-05-28

baik viena kart nuo kitu saitu kopint, pimpaburni
[img]www/mp3s.lt/images/468xgif[/img]  
PM
vytaz
#3 Spausdinti pranešimą
parašyta 2008-08-05 17:09
Vartotojo avataras

Apšylantis



Reputacija: 0

Pranešimai: 94
Įstojo: 2007-08-02

patilek kol dar vieno ispejimo negavai  
PM
Peršokti į forumą: