C:\xampp\htdocs\landing\wp-content\plugins\antispam-bee\inc\gui.class.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
<?php
/**
 * The Antispam Bee GUI
 *
 * @package Antispam Bee
 */

defined'ABSPATH' ) || exit;

/**
 * Antispam_Bee_GUI
 *
 * @since  2.4
 */
class Antispam_Bee_GUI extends Antispam_Bee {

    
/**
     * Save the GUI
     *
     * @since   0.1
     * @change  2.7.0
     */
    
public static function save_changes() {
        if ( empty( 
$_POST ) ) {
            
wp_dieesc_html__'Cheatin&#8217; uh?''antispam-bee' ) );
        }

        if ( ! 
current_user_can'manage_options' ) ) {
            
wp_dieesc_html__'Cheatin&#8217; uh?''antispam-bee' ) );
        }

        
check_admin_referer'_antispam_bee__settings_nonce' );

        
$selected_languages_raw wp_unslashself::get_key$_POST'ab_translate_lang' ) );
        if ( ! 
is_array$selected_languages_raw ) ) {
            
$selected_languages_raw = array();
        }
        
$selected_languages = array();
        
$lang               self::get_allowed_translate_languages();
        
$lang               array_keys$lang );
        foreach ( 
$selected_languages_raw as $value ) {
            if ( ! 
in_array$value$langtrue ) ) {
                continue;
            }
            
$selected_languages[] = $value;
        }
        
$options = array(
            
'flag_spam'                => (int) ( ! empty( $_POST['ab_flag_spam'] ) ),
            
'email_notify'             => (int) ( ! empty( $_POST['ab_email_notify'] ) ),
            
'cronjob_enable'           => (int) ( ! empty( $_POST['ab_cronjob_enable'] ) ),
            
'cronjob_interval'         => (int) self::get_key$_POST'ab_cronjob_interval' ),

            
'no_notice'                => (int) ( ! empty( $_POST['ab_no_notice'] ) ),

            
'dashboard_count'          => (int) ( ! empty( $_POST['ab_dashboard_count'] ) ),
            
'dashboard_chart'          => (int) ( ! empty( $_POST['ab_dashboard_chart'] ) ),
            
'regexp_check'             => (int) ( ! empty( $_POST['ab_regexp_check'] ) ),
            
'spam_ip'                  => (int) ( ! empty( $_POST['ab_spam_ip'] ) ),
            
'already_commented'        => (int) ( ! empty( $_POST['ab_already_commented'] ) ),
            
'time_check'               => (int) ( ! empty( $_POST['ab_time_check'] ) ),
            
'always_allowed'           => (int) ( ! empty( $_POST['ab_always_allowed'] ) ),

            
'ignore_pings'             => (int) ( ! empty( $_POST['ab_ignore_pings'] ) ),
            
'ignore_filter'            => (int) ( ! empty( $_POST['ab_ignore_filter'] ) ),
            
'ignore_type'              => (int) self::get_key$_POST'ab_ignore_type' ),

            
'reasons_enable'           => (int) ( ! empty( $_POST['ab_reasons_enable'] ) ),
            
'ignore_reasons'           => (array) self::get_key$_POST'ab_ignore_reasons' ),

            
'bbcode_check'             => (int) ( ! empty( $_POST['ab_bbcode_check'] ) ),
            
'gravatar_check'           => (int) ( ! empty( $_POST['ab_gravatar_check'] ) ),
            
'country_code'             => (int) ( ! empty( $_POST['ab_country_code'] ) ),
            
'country_black'            => sanitize_text_fieldwp_unslashself::get_key$_POST'ab_country_black' ) ) ),
            
'country_white'            => sanitize_text_fieldwp_unslashself::get_key$_POST'ab_country_white' ) ) ),

            
'translate_api'            => (int) ( ! empty( $_POST['ab_translate_api'] ) ),
            
'translate_lang'           => $selected_languages,

            
'delete_data_on_uninstall' => (int) ( ! empty( $_POST['delete_data_on_uninstall'] ) ),

        );

        foreach ( 
$options['ignore_reasons'] as $key => $val ) {
            if ( ! isset( 
self::$defaults['reasons'][ $val ] ) ) {
                unset( 
$options['ignore_reasons'][ $key ] );
            }
        }

        if ( empty( 
$options['cronjob_interval'] ) ) {
            
$options['cronjob_enable'] = 0;
        }

        if ( empty( 
$options['translate_lang'] ) ) {
            
$options['translate_api'] = 0;
        }

        if ( empty( 
$options['reasons_enable'] ) ) {
            
$options['ignore_reasons'] = array();
        }

        if ( ! empty( 
$options['country_black'] ) ) {
            
$options['country_black'] = preg_replace(
                
'/[^A-Z ,;]/',
                
'',
                
strtoupper$options['country_black'] )
            );
        }

        if ( ! empty( 
$options['country_white'] ) ) {
            
$options['country_white'] = preg_replace(
                
'/[^A-Z ,;]/',
                
'',
                
strtoupper$options['country_white'] )
            );
        }

        if ( empty( 
$options['country_black'] ) && empty( $options['country_white'] ) ) {
            
$options['country_code'] = 0;
        }

        if ( 
$options['cronjob_enable'] && ! self::get_option'cronjob_enable' ) ) {
            
self::init_scheduled_hook();
        } elseif ( ! 
$options['cronjob_enable'] && self::get_option'cronjob_enable' ) ) {
            
self::clear_scheduled_hook();
        }

        
self::update_options$options );

        
wp_safe_redirect(
            
add_query_arg(
                array(
                    
'updated' => 'true',
                ),
                
wp_get_referer()
            )
        );

        die();
    }

    
/**
     * Generation of a selectbox
     *
     * @since   2.4.5
     * @change  2.4.5
     *
     * @param   string $name      Name of the Selectbox.
     * @param   array  $data      Array with values.
     * @param   string $selected  Selected value.
     * @return  string  $html     Generated HTML.
     */
    
private static function _build_select$name$data$selected ) {
        
$html '<select name="' esc_attr$name ) . '">';
        foreach ( 
$data as $k => $v ) {
            
$html .= '<option value="' esc_attr$k ) . '" ' selected$selected$kfalse ) . '>' esc_html$v ) . '</option>';
        }
        
$html .= '</select>';

        return 
$html;
    }


    
/**
     * Display the GUI
     *
     * @since   0.1
     * @change  2.7.0
     */
    
public static function options_page() { ?>
        <div class="wrap" id="ab_main">
            <h2>
                Antispam Bee
            </h2>

            <form action="<?php echo esc_urladmin_url'admin-post.php' ) ); ?>" method="post">
                <input type="hidden" name="action" value="ab_save_changes" />

                <?php wp_nonce_field'_antispam_bee__settings_nonce' ); ?>

                <?php $options self::get_options(); ?>
                <div class="ab-wrap">
                    <!--[if lt IE 9]>
                        <p class="browsehappy">
                            <a href="http://browsehappy.com">Browse Happy</a>
                        </p>
                    <![endif]-->

                    <div class="ab-column ab-arrow">
                        <h3 class="icon">
                            <?php esc_html_e'Antispam filter''antispam-bee' ); ?>
                        </h3>
                        <h6>
                            <?php esc_html_e'Filter in the execution order''antispam-bee' ); ?>
                        </h6>

                        <ul>
                            <li>
                                <input type="checkbox" name="ab_already_commented" id="ab_already_commented" value="1" <?php checked$options['already_commented'], ); ?> />
                                <label for="ab_already_commented">
                                    <?php esc_html_e'Trust approved commenters''antispam-bee' ); ?>
                                    <span><?php esc_html_e'No review of already commented users''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <?php if ( === (int) get_option'show_avatars') ) : ?>
                            <li>
                                <input type="checkbox" name="ab_gravatar_check" id="ab_gravatar_check" value="1" <?php checked$options['gravatar_check'], ); ?> />
                                <label for="ab_gravatar_check">
                                    <?php esc_html_e'Trust commenters with a Gravatar''antispam-bee' ); ?>
                                    <span>
                                    <?php
                                    $link1 
sprintf(
                                        
'<a href="%s" target="_blank" rel="noopener noreferrer">',
                                        
esc_url(
                                            
__'https://antispambee.pluginkollektiv.org/documentation#gravatar''antispam-bee' ),
                                            
'https'
                                        
)
                                    );
                                        
printf(
                                            
/* translators: 1: opening <a> tag with link to documentation. 2: closing </a> tag */
                                            
esc_html__'Check if commenter has a Gravatar image. Please note the %1$sprivacy notice%2$s for this option.''antispam-bee' ),
                                            
wp_kses_post$link1 ),
                                            
'</a>'
                                        
);
                                    
?>
                                    </span>
                                </label>
                            </li>
                            <?php endif; ?>

                            <li>
                                <input type="checkbox" name="ab_time_check" id="ab_time_check" value="1" <?php checked$options['time_check'], ); ?> />
                                <label for="ab_time_check">
                                    <?php esc_html_e'Consider the comment time''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Not recommended when using page caching''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li>
                                <input type="checkbox" name="ab_bbcode_check" id="ab_bbcode_check" value="1" <?php checked$options['bbcode_check'], ); ?> />
                                <label for="ab_bbcode_check">
                                    <?php esc_html_e'BBCode links are spam''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Review the comment contents for BBCode links''antispam-bee' ); ?></span>
                                </label>
                            </li>


                            <li>
                                <input type="checkbox" name="ab_regexp_check" id="ab_regexp_check" value="1" <?php checked$options['regexp_check'], ); ?> />
                                <label for="ab_regexp_check">
                                    <?php esc_html_e'Use regular expressions''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Predefined and custom patterns by plugin hook''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li>
                                <input type="checkbox" name="ab_spam_ip" id="ab_spam_ip" value="1" <?php checked$options['spam_ip'], ); ?> />
                                <label for="ab_spam_ip">
                                    <?php esc_html_e'Look in the local spam database''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Check for spam data on your own blog''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li>
                                <input type="checkbox" name="ab_country_code" id="ab_country_code" value="1" <?php checked$options['country_code'], ); ?> />
                                <label for="ab_country_code">
                                    <?php esc_html_e'Block or allow comments from specific countries''antispam-bee' ); ?>
                                    <span>
                                    <?php
                                    $link1 
sprintf(
                                        
'<a href="%s" target="_blank" rel="noopener noreferrer">',
                                        
esc_url(
                                            
__'https://antispambee.pluginkollektiv.org/documentation#country''antispam-bee' ),
                                            
'https'
                                        
)
                                    );
                                        
printf(
                                            
/* translators: 1: opening <a> tag with link to documentation. 2: closing </a> tag. */
                                            
esc_html__'Filtering the requests depending on country. Please note the %1$sprivacy notice%2$s for this option.''antispam-bee' ),
                                            
wp_kses_post$link1 ), '</a>'
                                        
);
                                    
?>
                                    </span>
                                </label>

                                <ul>
                                    <?php
                                    $iso_codes_link 
sprintf(
                                        
'<a href="%s" target="_blank" rel="noopener noreferrer">',
                                        
esc_url(
                                            
__'https://www.iso.org/iso/country_names_and_code_elements''antispam-bee' ),
                                            
'https'
                                        
)
                                    );
                                    
?>
                                    <li>
                                        <textarea name="ab_country_black" id="ab_country_black" class="ab-medium-field code" placeholder="<?php esc_attr_e'e.g. BF, SG, YE''antispam-bee' ); ?>"><?php echo esc_attr$options['country_black'] ); ?></textarea>
                                        <label for="ab_country_black">
                                            <span>
                                            <?php
                                                printf
(
                                                    
/* translators: 1: opening <a> tag with link to ISO codes reference. 2: closing </a> tag. */
                                                    
esc_html__'Denied  %1$sISO country codes%2$s for this option.''antispam-bee' ),
                                                    
wp_kses_post$iso_codes_link ),
                                                    
'</a>'
                                                
);
                                            
?>
                                            </span>
                                        </label>
                                    </li>
                                    <li>
                                        <textarea name="ab_country_white" id="ab_country_white" class="ab-medium-field code" placeholder="<?php esc_attr_e'e.g. BF, SG, YE''antispam-bee' ); ?>"><?php echo esc_attr$options['country_white'] ); ?></textarea>
                                        <label for="ab_country_white">
                                            <span>
                                            <?php
                                                printf
(
                                                    
/* translators: 1: opening <a> tag with link to ISO codes reference. 2: closing </a> tag. */
                                                    
esc_html__'Allowed  %1$sISO country codes%2$s for this option.''antispam-bee' ),
                                                    
wp_kses_post$iso_codes_link ),
                                                    
'</a>'
                                                
);
                                            
?>
                                            </span>
                                        </label>
                                    </li>
                                </ul>
                            </li>

                            <li>
                                <input type="checkbox" name="ab_translate_api" id="ab_translate_api" value="1" <?php checked$options['translate_api'], ); ?> />
                                <label for="ab_translate_api">
                                    <?php esc_html_e'Allow comments only in certain language''antispam-bee' ); ?>
                                    <span>
                                    <?php
                                        $link1 
sprintf(
                                            
'<a href="%s" target="_blank" rel="noopener noreferrer">',
                                            
esc_url(
                                                
__'https://antispambee.pluginkollektiv.org/documentation#language''antispam-bee' ),
                                                
'https'
                                            
)
                                        );

                                        
printf(
                                            
/* translators: 1: opening <a> tag with link to documentation. 2: closing </a> tag. */
                                            
esc_html__'Detect and approve only the specified language. Please note the %1$sprivacy notice%2$s for this option.''antispam-bee' ),
                                            
wp_kses_post$link1 ),
                                            
'</a>'
                                        
);
                                    
?>
                                        </span>
                                </label>

                                <ul>
                                    <li>
                                        <select multiple name="ab_translate_lang[]">
                                            <?php
                                            $lang               
self::get_allowed_translate_languages();
                                            
$selected_languages = (array) $options['translate_lang'];
                                            foreach ( 
$lang as $k => $v ) {
                                                
?>
                                                <option <?php echo in_array$k$selected_languagestrue ) ? 'selected="selected"' ''?> value="<?php echo esc_attr$k ); ?>"><?php echo esc_html$v ); ?></option>

                                            <?php ?>
                                        </select>
                                        <label for="ab_translate_lang">
                                            <?php esc_html_e'Language''antispam-bee' ); ?>
                                        </label>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>

                    <div class="ab-column ab-join">
                        <h3 class="icon advanced">
                            <?php esc_html_e'Advanced''antispam-bee' ); ?>
                        </h3>
                        <h6>
                            <?php esc_html_e'Other antispam tools''antispam-bee' ); ?>
                        </h6>

                        <ul>
                            <li>
                                <input type="checkbox" name="ab_flag_spam" id="ab_flag_spam" value="1" <?php checked$options['flag_spam'], ); ?> />
                                <label for="ab_flag_spam">
                                    <?php esc_html_e'Mark as spam, do not delete''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Keep the spam in my blog.''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li class="ab_flag_spam_child">
                                <input type="checkbox" name="ab_email_notify" id="ab_email_notify" value="1" <?php checked$options['email_notify'], ); ?> />
                                <label for="ab_email_notify">
                                    <?php esc_html_e'Spam-Notification by email''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Notify admins by e-mail about incoming spam''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li class="ab_flag_spam_child">
                                <input type="checkbox" name="ab_no_notice" id="ab_no_notice" value="1" <?php checked$options['no_notice'], ); ?> />
                                <label for="ab_no_notice">
                                    <?php esc_html_e'Do not save the spam reason''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Spam reason as a table column in the spam overview''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li class="ab_flag_spam_child">
                                <input type="checkbox" name="ab_cronjob_enable" id="ab_cronjob_enable" value="1" <?php checked$options['cronjob_enable'], ); ?> />
                                <label for="ab_cronjob_enable">
                                    <?php
                                    
echo sprintf(
                                        
// translators: $s is an input field containing the number of days.
                                        
esc_html__'Delete existing spam after %s days''antispam-bee' ),
                                        
'<input type="number" min="0" name="ab_cronjob_interval" value="' esc_attr$options['cronjob_interval'] ) . '" class="ab-mini-field" />'
                                    
)
                                    
?>
                                    <span><?php esc_html_e'Cleaning up the database from old entries''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li class="ab_flag_spam_child">
                                <input type="checkbox" name="ab_ignore_filter" id="ab_ignore_filter" value="1" <?php checked$options['ignore_filter'], ); ?> />
                                <label for="ab_ignore_filter">
                                    <?php
                                    
echo sprintf(
                                        
// phpcs:disable WordPress.XSS.EscapeOutput.OutputNotEscaped
                                        // Output gets escaped in _build_select()
                                        // translators: %s is the select field.
                                        
esc_html__'Limit approval to %s''antispam-bee' ),
                                        
self::_build_select(
                                            
'ab_ignore_type',
                                            array(
                                                
=> esc_attr__'Comments''antispam-bee' ),
                                                
=> esc_attr__'Pings''antispam-bee' ),
                                            ),
                                            
$options['ignore_type']
                                        )
                                        
// phpcs:enable _build_select
                                    
);
                                    
?>
                                    <span><?php esc_html_e'Other types of spam will be deleted immediately''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li class="ab_flag_spam_child">
                                <input type="checkbox" name="ab_reasons_enable" id="ab_reasons_enable" value="1" <?php checked$options['reasons_enable'], ); ?> />
                                <label for="ab_reasons_enable">
                                    <?php esc_html_e'Delete comments by spam reasons''antispam-bee' ); ?>
                                    <span><?php esc_html_e'For multiple selections press Ctrl/CMD''antispam-bee' ); ?></span>
                                </label>

                                <ul>
                                    <li>
                                        <label for="ab_ignore_reasons">
                                            <?php esc_html_e'Spam Reason''antispam-bee' ); ?>
                                        </label>
                                        <select name="ab_ignore_reasons[]" id="ab_ignore_reasons" size="5" multiple>
                                            <?php foreach ( self::$defaults['reasons'] as $k => $v ) { ?>
                                                <option <?php selectedin_array$k$options['ignore_reasons'], true ), true ); ?> value="<?php echo esc_attr$k ); ?>"><?php echo esc_html$v ); ?></option>
                                            <?php ?>
                                        </select>
                                    </li>
                                </ul>
                            </li>

                            <li class="delete_data_on_uninstall">
                                <input type="checkbox" name="delete_data_on_uninstall" id="delete_data_on_uninstall" value="1" <?php checked$options['delete_data_on_uninstall'], ); ?> />
                                <label for="delete_data_on_uninstall">
                                    <?php esc_html_e'Delete Antispam Bee data when uninstalling''antispam-bee' ); ?>
                                    <span><?php esc_html_e'If checked, you will delete all data Antispam Bee creates, when uninstalling the plugin.''antispam-bee' ); ?></span>
                                </label>
                            </li>
                        </ul>

                    </div>


                    <div class="ab-column ab-diff">
                        <h3 class="icon more">
                            <?php esc_html_e'More''antispam-bee' ); ?>
                        </h3>
                        <h6>
                            <?php esc_html_e'Various options''antispam-bee' ); ?>
                        </h6>

                        <ul>
                            <li>
                                <input type="checkbox" name="ab_dashboard_chart" id="ab_dashboard_chart" value="1" <?php checked$options['dashboard_chart'], ); ?> />
                                <label for="ab_dashboard_chart">
                                    <?php esc_html_e'Generate statistics as a dashboard widget''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Daily updates of spam detection rate''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li>
                                <input type="checkbox" name="ab_dashboard_count" id="ab_dashboard_count" value="1" <?php checked$options['dashboard_count'], ); ?> />
                                <label for="ab_dashboard_count">
                                    <?php esc_html_e'Spam counter on the dashboard''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Amount of identified spam comments''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li>
                                <input type="checkbox" name="ab_ignore_pings" id="ab_ignore_pings" value="1" <?php checked$options['ignore_pings'], ); ?> />
                                <label for="ab_ignore_pings">
                                    <?php esc_html_e'Do not check trackbacks / pingbacks''antispam-bee' ); ?>
                                    <span><?php esc_html_e'No spam check for link notifications''antispam-bee' ); ?></span>
                                </label>
                            </li>

                            <li>
                                <input type="checkbox" name="ab_always_allowed" id="ab_always_allowed" value="1" <?php checked$options['always_allowed'], ); ?> />
                                <label for="ab_always_allowed">
                                    <?php esc_html_e'Comment form used outside of posts''antispam-bee' ); ?>
                                    <span><?php esc_html_e'Check for comment forms on archive pages''antispam-bee' ); ?></span>
                                </label>
                            </li>
                        </ul>
                    </div>

                    <div class="ab-column ab-column--submit-service">
                        <p>
                            <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TD4AMD2D8EMZW" target="_blank" rel="noopener noreferrer"><?php esc_html_e'Donate''antispam-bee' ); ?></a>
                        </p>
                        <p>
                            <a href="<?php echo esc_url__'https://wordpress.org/plugins/antispam-bee/faq/''antispam-bee' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e'FAQ''antispam-bee' ); ?></a>
                        </p>
                        <p>
                            <a href="<?php echo esc_url__'https://antispambee.pluginkollektiv.org/documentation''antispam-bee' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e'Manual''antispam-bee' ); ?></a>
                        </p>
                        <p>
                            <a href="<?php echo esc_url__'https://wordpress.org/support/plugin/antispam-bee''antispam-bee' ) ); ?>" target="_blank" rel="noopener noreferrer"><?php esc_html_e'Support''antispam-bee' ); ?></a>
                        </p>

                        <input type="submit" class="button button-primary" value="<?php esc_html_e'Save Changes''antispam-bee' ); ?>" />
                    </div>
                </div>
            </form>
        </div>
        <?php
    
}

    
/**
     * Get the languages, which are selectable to restrict the comment language to.
     *
     * @since 2.7.1
     * @return array $lang
     */
    
private static function get_allowed_translate_languages() {

        
$lang = array(
            
'de' => __'German''antispam-bee' ),
            
'en' => __'English''antispam-bee' ),
            
'fr' => __'French''antispam-bee' ),
            
'it' => __'Italian''antispam-bee' ),
            
'es' => __'Spanish''antispam-bee' ),
        );

        
/**
         * Filter the possible languages for the language spam test
         *
         * @since 2.7.1
         * @param (array) $lang The languages
         * @return (array)
         */
        
return apply_filters'ab_get_allowed_translate_languages'$lang );
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586