Exemplo n.º 1
0
/**
 * Check referring servers
 */
if ($referring_server != '' and !mail_input_validation::referrer($referring_server)) {
    $error_message = $txt['txt_wrong_referrer'];
    if ($show_error_messages == 'yes') {
        $error_message .= ' ' . $txt['txt_wrong_referrer_admin'];
    }
    $limit_message[] = array('message' => $error_message, 'fields' => '');
    unset($display_form);
}
// -----------------------------------------------------------------------------
/**
 * Check banned ip addresses
 */
if (isset($_POST) and sizeof($_POST) > 0 and $ip_banlist != '' and mail_input_validation::ip_address($ip_banlist)) {
    if ($show_limit_errors == 'yes') {
        $limit_message[] = array('message' => $txt['txt_wrong_ip_address'], 'fields' => '');
    } else {
        $limit_message[] = array('message' => '', 'fields' => '');
    }
    unset($display_form);
}
// -----------------------------------------------------------------------------
/**
 * Check user agent
 */
if (isset($_POST) and sizeof($_POST) > 0 and $configuration['check_user_agent'] == true and !mail_input_validation::user_agent()) {
    if ($show_limit_errors == 'yes') {
        $limit_message[] = array('message' => $txt['txt_error_user_agent'], 'fields' => '');
    } else {