Щракнете на бутона! Tab/Enter не приема коментара.
Ако сте щракнали на бутонa, значи вашият браузър не приема бисквитки (coocies) и/или не позволява изпълнението на java script.
"); exit; } //END TruBar if($_SERVER['REQUEST_METHOD'] != "POST"){ wp_die("ЗАБРАНЕНО действие!"); exit; } $comment_post_ID = (int) $_POST['comment_post_ID']; $status = $wpdb->get_row("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = '$comment_post_ID'"); if ( empty($status->comment_status) ) { do_action('comment_id_not_found', $comment_post_ID); exit; } elseif ( 'closed' == $status->comment_status ) { do_action('comment_closed', $comment_post_ID); wp_die( __("Съжаляваме, но коментарите са затворени за тази публикация") ); } elseif ( 'draft' == $status->post_status ) { do_action('comment_on_draft', $comment_post_ID); exit; } $comment_author = trim($_POST['author']); $comment_author_email = trim($_POST['email']); $comment_author_url = trim($_POST['url']); $comment_content = trim($_POST['comment']); // If the user is logged in $user = wp_get_current_user(); if ( $user->ID ) { $comment_author = $wpdb->escape($user->display_name); $comment_author_email = $wpdb->escape($user->user_email); $comment_author_url = $wpdb->escape($user->user_url); if ( current_user_can('unfiltered_html') ) { if ( wp_create_nonce('unfiltered-html-comment_' . $comment_post_ID) != $_POST['wp_unfiltered_html_comment'] ) { kses_remove_filters(); // start with a clean slate kses_init_filters(); // set up the filters } } } else { if ( get_option('comment_registration') ) wp_die( __("Съжаляваме, но анонимните коментари са забранени.") ); } $comment_type = ''; if ( get_option('require_name_email') && !$user->ID ) { if ( 6 > strlen($comment_author_email) || '' == $comment_author ){ setcookie('TrBr', sucker, time()-30000000, COOKIEPATH, COOKIE_DOMAIN); wp_die( __("ГРЕШКА: Моля попълнете полетата Име и Е-Поща") ); } elseif ( !is_email($comment_author_email)) { setcookie('TrBr', sucker, time()-30000000, COOKIEPATH, COOKIE_DOMAIN); wp_die( __("ГРЕШКА: Моля въведета валиден email") ); } } if ( '' == $comment_content ){ setcookie('TrBr', sucker, time()-30000000, COOKIEPATH, COOKIE_DOMAIN); wp_die( __("ГРЕШКА: Не сте написали коментар") ); } // Defend against SPAM Words: $badStrings = array("-online", "4u", "[/url]", "[/URL]", "adipex", "advicer", "ambien", "baccarrat", "blackjack", "bllogspot", "booker", "byob", "car-rental-e-site", "car-rentals-e-site", "carisoprodol", "carb", "casino", "casinos", "chatroom", "cialis", "credit-report-4u", "cwas", "cyclen", "cyclobenzaprine", "dating-e-site", "day-trading", "debt-consolidation-consultant", "drug", "discreetordering", "duty-free", "dutyfree", "fioricet", "flowers-leading-site", "freenet-shopping", "freenet", "gambling", "health-insurancedeals-4u", "holdem", "holdempoker", "holdemsoftware", "holdemtexasturbowilson", "hotel-dealse-site", "hotele-site", "hotelse-site", "incest", "insurance-quotesdeals-4u", "insurancedeals-4u", "jrcreations", "levitra", "loan", "macinstruct", "meridia", "mortgage-4-u", "online-gambling", "onlinegambling-4u", "ottawavalleyag", "ownsthis", "palm-texas-holdem-game", "paxil", "penis", "pharmacy", "phentermine", "poker", "poker-chip", "poze", "rental-car-e-site", "ringtone", "roulette", "shemale", "slot-machine", "slot", "soma", "taboo", "teen", "texas-holdem", "thorcarlson", "top-site", "top-e-site", "tramadol", "trim-spa", "ultram", "valeofglamorganconservatives", "viagra", "vaigra", "viarga", "vyagra", "cyalis", "cailis", "vioxx", "xanax", "zolus"); foreach($_POST as $k => $v){ foreach($badStrings as $v2){ if(strpos($v, $v2) !== false){ setcookie('TrBr', sucker, time()-30000000, COOKIEPATH, COOKIE_DOMAIN); wp_die( __("ГРЕШКА: Думата \"".$v2."\" е отбелязана като СПАМ. Изхвърлете я от речника си!") ); exit; } } } unset($k, $v, $v2, $badStrings); setcookie('TrBr', sucker, time()-30000000, COOKIEPATH, COOKIE_DOMAIN); $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'user_ID'); $comment_id = wp_new_comment( $commentdata ); $comment = get_comment($comment_id); if ( !$user->ID ) : setcookie('comment_author_' . COOKIEHASH, $comment->comment_author, time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); setcookie('comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); setcookie('comment_author_url_' . COOKIEHASH, clean_url($comment->comment_author_url), time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); endif; $location = ( empty($_POST['redirect_to']) ? get_permalink($comment_post_ID) : $_POST['redirect_to'] ) . '#comment-' . $comment_id; $location = apply_filters('comment_post_redirect', $location, $comment); wp_redirect($location); ?>