".$fdata['forum_name'].""; $result = dbquery("UPDATE ".$db_prefix."threads SET thread_views=thread_views+1 WHERE thread_id='$thread_id'"); if (iMEMBER && $can_post && isset($_POST['postquickreply'])) { $flood = false; $message = stripinput(censorwords($_POST['message'])); if ($message != "") { $result = dbquery("SELECT MAX(post_datestamp) AS last_post FROM ".$db_prefix."posts WHERE post_author='".$userdata['user_id']."'"); if (dbrows($result) > 0) { $data = dbarray($result); if ((time() - $data['last_post']) < $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) { $result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='".$userdata['user_id']."'"); } fallback("viewforum.php?forum_id=$forum_id"); } } if (!$flood) { $sig = ($userdata['user_sig'] ? '1' :'0'); $smileys = isset($_POST['disable_smileys']) ? "0" : "1"; $subject = "RE: ".$tdata['thread_subject']; $result = dbquery("UPDATE ".$db_prefix."forums SET forum_lastpost='".time()."', forum_lastuser='".$userdata['user_id']."' WHERE forum_id='$forum_id'"); $result = dbquery("UPDATE ".$db_prefix."threads SET thread_lastpost='".time()."', thread_lastuser='".$userdata['user_id']."' WHERE thread_id='$thread_id'"); $result = dbquery("INSERT INTO ".$db_prefix."posts (forum_id, thread_id, post_subject, post_message, post_showsig, post_smileys, post_author, post_datestamp, post_ip, post_edituser, post_edittime) VALUES ('$forum_id', '$thread_id', '$subject', '$message', '$sig', '$smileys', '".$userdata['user_id']."', '".time()."', '".USER_IP."', '0', '0')"); $newpost_id = mysql_insert_id(); $result = dbquery("UPDATE ".$db_prefix."users SET user_posts=user_posts+1 WHERE user_id='".$userdata['user_id']."'"); redirect("postify.php?post=reply&error=0&forum_id=$forum_id&thread_id=$thread_id&post_id=$newpost_id"); } } } opentable($locale['500']); echo "
".$settings['sitename']." | $caption | \n"; if (iMEMBER && $can_post) { echo "\n"; if (!$tdata['thread_locked']) { echo "\n"; } echo " | \n"; } echo "
".$locale['501']." | ".$data['post_subject']." |
".$data['user_name']." ".($is_mod ? $locale['userf1'] : getuserlevel($data['user_level']))." \n"; if ($data['user_avatar'] != "") { echo " \n"; $height = "185"; } else { $height = "70"; } echo "".$locale['502']." ".$data['user_posts']." \n"; if ($data['user_location']) echo "".$locale['503']." ".$data['user_location']." \n"; echo "".$locale['504']." ".showdate("%d.%m.%y", $data['user_joined'])." |
|
$message";
if ($data['attach_id']) {
if (in_array($data['attach_ext'], $imagetypes) && @getimagesize(FORUM."attachments/".$data['attach_name'])) {
echo " \n".$data['user_name'].$locale['506']." \n"; } else { echo " \n".$data['user_name'].$locale['507']." \n".$data['attach_name'].""; } } if ($data['post_edittime'] != "0") { echo " \n".$locale['508'].$edituser.$locale['509']."$edittime"; } echo " |
|
\n"; if ($data['user_aim'] && file_exists(THEME."forum/aim.gif")) { echo " "; } if ($data['user_icq']) { echo " "; } if ($data['user_msn']) { echo " "; } if ($data['user_yahoo']) { echo " "; } if ($data['user_web']) { if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; } echo " "; } echo " |
".$locale['540']." | \n";
if (iMEMBER && $can_post) {
if (iMOD || iSUPERADMIN) {
echo "
"; if (dbcount("(thread_id)", "thread_notify", "thread_id='$thread_id' AND notify_user='".$userdata['user_id']."'")) { $result = dbquery("UPDATE ".$db_prefix."thread_notify SET notify_datestamp='".time()."', notify_status='1' WHERE thread_id='$thread_id' AND notify_user='".$userdata['user_id']."'"); $notify_link = "".$locale['515'].""; } else { $notify_link = "".$locale['516'].""; } echo "$notify_link | \n"; } if ($can_post) { echo ""; if (!$tdata['thread_locked']) { echo "\n"; } echo "\n"; echo " | \n"; } echo "