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?
Turiu tokià problema jog noriu idëti VIP paveiksliukà á comments_include.php failà.Èia tam kad para?ius komentarà matytusi ar narys yra VIP ar ne.
Dedu ?ituos kodus taèiau ka?kodël nerodo man,nors narys ir yra VIP.
if ($post1 == \"3\") {
if (isset($_POST['post_comment'])) {
if (iMEMBER) {
if (!check_captcha_cods($_POST['captcha_encode'], $_POST['captcha_code'])) {
$error .= $locale['c108'].\" \n\";
} else {
//$error = \"\";
//$error = $locale['c108'].\" \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 = 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.\"')\");
paygold($userdata['user_name'],$userdata['user_id'],1);
} redirect($clink);
tablebreak();
}
}
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 \"
\n\";
while ($data = dbarray($result)) {
if ($data['enable_avatar'] == \"1\") {
if ($data['user_avatar'] != \"\") {
$avatar = \"
Dabar jau nebagaliu perdaryti á grupæ ,nes kitur yra ir pana?iai padaryta, o vël persidaryti viskà u?imtø nema?ai laiko.Tad reiktø kad kasnors padëtø i?spræsti ?ià problemà ??
http://topwarez.lt