Navigacija

Vartotojų tinkle

Prisijungusių svečių: 584
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.147.71.175
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
Klaida komentaruose
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Expert PHP, MySQL klausimai

Autorius: Pamišęs dėl ozz Peržiūrų: 1949      Spausdinti temą
2009 Spa. 3 17:10:36          1 žinutė iš 7
Spausdinti pranešimą
Taigi atsitiko klaida komentaruose. Komentarai susitrejino. Ta prasme komentaruose pradėjo atvaizduoti iš eilės tris tuos pačius komenatarus. va taip:

krakomas July 19 2009 09:42:10
tai galetu taip ir but smileysmiley
krakomas July 19 2009 09:42:10
tai galetu taip ir but smileysmiley
krakomas July 19 2009 09:42:10
tai galetu taip ir but smileysmiley
Admin July 19 2009 10:51:34
Viską daro laikas. smiley
Admin July 19 2009 10:51:34
Viską daro laikas. smiley
Admin July 19 2009 10:51:34
Viską daro laikas. smiley

Pakeičiau INCLUDES/comments_include.php failą į default, viskas gerai.

Tai vat prisegu failą tą failą, kuriame klaida. Gal kas nors suprasit ir pasakysit kame bėda?

<?php

if (!defined("IN_FUSION")) { header("Location:../index.php"); exit; }

include LOCALE.LOCALESET."comments.php";

$items_per_page = 6;

function make_codes0_captcha() {
   global $settings;
   srand((double)microtime() * 1000000);
   $temp_num = md5(rand(0,9999));
   $captcha_string = substr($temp_num, 17, 5);
   $captcha_encode = md5($temp_num);
   $result = mysql_query("INSERT INTO ".DB_PREFIX."captcha (captcha_datestamp, captcha_ip, captcha_encode, captcha_string) VALUES('".time()."', '".USER_IP."', '$captcha_encode', '$captcha_string')");
   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);
if ($data['code1'] == "0") {
      return "<input type='hidden' name='captcha_encode' value='".$captcha_encode."'><img src='".INCLUDES."captcha_include.php?captcha_code=".$captcha_encode."' alt='' />\n";
   } else {
      return "<input type='hidden' name='captcha_encode' value='".$captcha_encode."'><strong>".$captcha_string."</strong>\n";
   }
}
function check_captcha_cods($captchs_encode, $captcha_string) {
   if (preg_match("/^[0-9a-z]+$/", $captchs_encode) && preg_match("/^[0-9a-z]+$/", $captcha_string)) {
      $result = dbquery("SELECT * FROM ".DB_PREFIX."captcha WHERE captcha_ip='".USER_IP."' AND captcha_encode='".$captchs_encode."' AND captcha_string='".$captcha_string."'");
      if (dbrows($result)) {
         $result = dbquery("DELETE FROM ".DB_PREFIX."captcha WHERE captcha_ip='".USER_IP."' AND captcha_encode='".$captchs_encode."' AND captcha_string='".$captcha_string."'");
         return true;
      } else {
         return false;
      }
   } else {
      return false;
   }
}



   //$result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   ////$data = dbarray($result);   
   //$enable_post = $data['enable_post'];
   //$enable_kod = $data['enable_kod'];
   //$post1 = $data['post1'];
function showcomments($ctype,$cdb,$ccol,$cid,$clink) {

   global $settings,$locale,$userdata,$aidlink;

   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);   
   $enable_post = $data['enable_post'];
   $enable_kod = $data['enable_kod'];
   $post1 = $data['post1'];
if ($enable_kod == "1") {

if (iGUEST) {
if (isset($_POST['post_comment'])) {
if (!check_captcha_cods($_POST['captcha_encode'], $_POST['captcha_code'])) {
         $error .= $locale['c108']."<br />\n";
      }  else {

$error = "";
      $flood = false;
if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }

$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();

}
}
}
   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);   
   $enable_post = $data['enable_post'];
   $enable_kod = $data['enable_kod'];
   $post1 = $data['post1'];
if ($post1 == "0") {
if (isset($_POST['post_comment'])) {
if (iMEMBER) {
$error = "";
//$error = $locale['c108']."<br />\n";
      $flood = false;
if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }
$comment_name = $userdata['user_id'];
//$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();
}
}
}
   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);   
   $enable_post = $data['enable_post'];
   $enable_kod = $data['enable_kod'];
   $post1 = $data['post1'];
if ($post1 == "1") {
if (isset($_POST['post_comment'])) {
if (iMEMBER && !iADMIN) {
if (!check_captcha_cods($_POST['captcha_encode'], $_POST['captcha_code'])) {
         $error .= $locale['c108']."<br />\n";
      }  else {

//$error = "";
//$error = $locale['c108']."<br />\n";
      $flood = false;
if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }
$comment_name = $userdata['user_id'];
//$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();

}
} else if (iADMIN) {

      $flood = false;
if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }
$comment_name = $userdata['user_id'];
//$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();

}
}
}




   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);   
   $enable_post = $data['enable_post'];
   $enable_kod = $data['enable_kod'];
   $post1 = $data['post1'];
if ($post1 == "2") {
if (isset($_POST['post_comment'])) {
if (iMEMBER && !iSUPERADMIN) {
if (!check_captcha_cods($_POST['captcha_encode'], $_POST['captcha_code'])) {
         $error .= $locale['c108']."<br />\n";
      }  else {

//$error = "";
//$error = $locale['c108']."<br />\n";
      $flood = false;
if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }
$comment_name = $userdata['user_id'];
//$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();

}
} else if (iSUPERADMIN) {

      $flood = false;
if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }
$comment_name = $userdata['user_id'];
//$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();

}
}
}




   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);   
   $enable_post = $data['enable_post'];
   $enable_kod = $data['enable_kod'];
   $post1 = $data['post1'];

if ($post1 == "3") {
if (isset($_POST['post_comment'])) {
if (iMEMBER) {
if (!check_captcha_cods($_POST['captcha_encode'], $_POST['captcha_code'])) {
         $error .= $locale['c108']."<br />\n";
      }  else {

//$error = "";
//$error = $locale['c108']."<br />\n";
      $flood = false;
if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }
$comment_name = $userdata['user_id'];
//$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();

}
}
}
}




} else {
if (isset($_POST['post_comment'])) {
      $flood = false;
if (dbrows(dbquery("SELECT $ccol FROM ".DB_PREFIX."$cdb WHERE $ccol='$cid'"))==0) {
         fallback(BASEDIR."index.php");
      }
if (iGUEST) {

$comment_name = trim(stripinput($_POST['comment_name']));
      
         $comment_name = preg_replace("(^[0-9]*)", "", $comment_name);
if (isNum($comment_name)) $comment_name="";
} else {
$comment_name = $userdata['user_id'];
}
      $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();

}
}

   if ($rows > $items_per_page) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$items_per_page,$rows,3)."\n</div>\n";

   opentable($locale['c100']);
   $result = dbquery(
      "SELECT tcm.*,user_name,user_avatar,enable_kod,enable_post,enable_avatar,post1,code1 FROM ".DB_PREFIX."comments tcm
      LEFT JOIN ".DB_PREFIX."users tcu ON tcm.comment_name=tcu.user_id
      LEFT JOIN ".DB_PREFIX."comments_settings ON
enable_kod=enable_kod
AND enable_post=enable_post
AND enable_avatar=enable_avatar
AND post1=post1
AND code1=code1
      WHERE comment_item_id='$cid' AND comment_type='$ctype'
      ORDER BY comment_datestamp ASC"
   );


   if (dbrows($result) != 0) {
      $i = 0;
      echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border'>\n";
      while ($data = dbarray($result)) {

         if ($data['enable_avatar'] == "1") {
         if ($data['user_avatar'] != "") {
            $avatar = "<td class='".($i% 2==0?"tbl1":"tbl2")."' width='1'><center><a href='".BASEDIR."profile.php?lookup=".$data['comment_name']."'><img src='".IMAGES."avatars/".$data['user_avatar']."' height='40'></center></td>\n";
         } else {
            $avatar = "<td class='".($i% 2==0?"tbl1":"tbl2")."' width='1'> </td>";
         }
         echo "<tr>".$avatar."<td class='".($i% 2==0?"tbl1":"tbl2")."' valign='top'><span class='comment-name'>\n";
} else {
echo "<tr><td class='".($i% 2==0?"tbl1":"tbl2")."' valign='top'><span class='comment-name'>\n";
}
         if ($data['user_name']) {
            echo "<a href='".BASEDIR."profile.php?lookup=".$data['comment_name']."'>".$data['user_name']."</a>";
         } 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 "</span>\n<span class='small'>".$locale['041'].showdate("longdate", $data['comment_datestamp'])."</span><br>\n";
         echo $comment_message."</td>\n</tr>\n";
         $i++;
      }
//align='right'
      if (checkrights("C")) {
echo "<tr>\n<td class='".($i% 2==0?"tbl1":"tbl2")."' colspan=2><div align='right'><a href='".ADMIN."comments.php".$aidlink."&amp;ctype=$ctype&amp;cid=$cid'>".$locale['c106']."</a><br>".$locale['copy']."</div></td>\n</tr>\n";
   } else {
echo "<tr>\n<td class='".($i% 2==0?"tbl1":"tbl2")."' colspan=2>".$locale['copy']."</td>\n</tr>\n";
}
   echo "</table>\n";
   } else {
      echo $locale['c101']."\n";
   }
   closetable();
   tablebreak();
   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);
   $enable_post = $data['enable_post'];
   opentable($locale['c102']);
//if ($enable_post == "1") {
   if (iMEMBER || $enable_post == "1") {
      echo "<form name='inputform' method='post' action='$clink'>
<table align='center' cellspacing='0' cellpadding='0' class='tbl'>\n";
      if (iGUEST) {
         echo "<tr>
<td>".$locale['c103']."</td>
</tr>
<tr>
<td><input type='text' name='comment_name' maxlength='30' class='textbox' style='width:100%;'></td>
</tr>\n";
}
   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);
   $enable_post = $data['enable_post'];
   $enable_kod = $data['enable_kod'];
         if ($enable_kod == "1") {
   $result = dbquery("SELECT * FROM ".DB_PREFIX."comments_settings");
   $data = dbarray($result);
   $enable_post = $data['enable_post'];
   $enable_kod = $data['enable_kod'];
echo "<center><span style='color:#ff0000'>".$error."</span></center>";

if (iGUEST) {

      echo "<tr>\n<td class='tbl'>".$locale['c109'].": ";
      echo make_codes0_captcha();
      echo "<span style='color:#ff0000'>*</span><input type='text' name='captcha_code' class='textbox' style='width:100px'></td></tr>";
} if ($data['post1'] == "1") {
if (iMEMBER && !iADMIN) {

      echo "<tr>\n<td class='tbl'>".$locale['c109'].": ";
      echo make_codes0_captcha();
      echo "<span style='color:#ff0000'>*</span><input type='text' name='captcha_code' class='textbox' style='width:100px'></td></tr>";
}
} if ($data['post1'] == "2") {
if (iMEMBER && !iSUPERADMIN) {

      echo "<tr>\n<td class='tbl'>".$locale['c109'].": ";
      echo make_codes0_captcha();
      echo "<span style='color:#ff0000'>*</span><input type='text' name='captcha_code' class='textbox' style='width:100px'></td></tr>";
}
} if ($data['post1'] == "3") {
if (iMEMBER) {
      echo "<tr>\n<td class='tbl'>".$locale['c109'].": ";
      echo make_codes0_captcha();
      echo "<span style='color:#ff0000'>*</span><input type='text' name='captcha_code' class='textbox' style='width:100px'></td></tr>";
}}



}
$home = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

echo "<tr><img src='images/neburnok_72x55.gif' alt='neburnok.lt' border='0' align='right'height='50'>
<style type='text/css'>
<!--
textarea{ background-image:url(images/textareabg.jpeg); color:ff0000; }
//-->
</style>
<textarea name='comment_message' rows='6' class='textbox' style='width:440px'></textarea><br>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='url' class='button' style='width:30px;' onClick=\"addText('comment_message', '[url]', '[/url]');\">
<input type='button' value='mail' class='button' style='width:35px;' onClick=\"addText('comment_message', '[mail]', '[/mail]');\">
<input type='button' value='img' class='button' style='width:30px;' onClick=\"addText('comment_message', '[img]', '[/img]');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('comment_message', '
', '
');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('comment_message', '', '');\">
<input type='button' value='code' class='button' style='width:40px;' onClick=\"addText('comment_message', '
', '


');\">
<input type='button' value='quote' class='button' style='width:45px;' onClick=\"addText('comment_message', '
', '
');\">
<br><br>
".displaysmileys("comment_message")."
</tr>
<tr>
<td align='center'><input type='checkbox' name='disable_smileys' value='1'>".$locale['c107']."<br><br>
<form name='reportform' method='post' action='".$home."'><input type='submit' name='post_comment' value='".$locale['c102']."' class='button'></td></form>
</tr>
</table>
</form><br>";

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

?>



2009 Spa. 3 17:10:36          2 žinutė iš 7
Spausdinti pranešimą
čia visur taip ar tik vienoje vietoje ?

www.thesport.sx | www.themusiclt.com | www.zippymusic.lt |
2009 Spa. 3 17:10:31          3 žinutė iš 7
Spausdinti pranešimą
Visur. ir naujienose ir pridėtiniuose puslapiuose
2009 Spa. 3 18:10:37          4 žinutė iš 7
Spausdinti pranešimą
bandyk šitai šioje vietoje kur yra
$comment_message = parsesmileys($data['comment_message']);
         } else {
            $comment_message = $data['comment_message'];
         }
         $comment_message = nl2br(parseubb($comment_message));





mažint tų $comment_message

www.thesport.sx | www.themusiclt.com | www.zippymusic.lt |
2009 Spa. 3 18:10:11          5 žinutė iš 7
Spausdinti pranešimą
Rolisj ka tu cia nusisnekejai? akinanti šypsen
2009 Spa. 3 18:10:59          6 žinutė iš 7
Spausdinti pranešimą
nežinau akinanti šypsen šnd galva nedirba iš po vakar nustebęs

www.thesport.sx | www.themusiclt.com | www.zippymusic.lt |
2009 Spa. 3 19:10:51          7 žinutė iš 7
Spausdinti pranešimą
nea bet rimtai kas per vėjas pučia pučia
Peršokti į forumą: