PluginProbe ʕ •ᴥ•ʔ
SiteGuard WP Plugin / 1.0.0
SiteGuard WP Plugin v1.0.0
1.8.7 1.8.6 1.8.6-beta1 1.8.6-beta2 1.8.4 1.8.5 1.8.3 1.8.2 1.8.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.4.3 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.7.0 1.7.1 1.7.10 1.7.11 1.7.12 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.0-beta1 1.8.0-beta2 1.8.0-beta3 1.8.0-beta4
siteguard / admin / siteguard-menu-disable-pingback.php
siteguard / admin Last commit date
siteguard-login-history-table.php 11 years ago siteguard-menu-admin-filter.php 11 years ago siteguard-menu-captcha.php 11 years ago siteguard-menu-dashboard.php 11 years ago siteguard-menu-disable-pingback.php 11 years ago siteguard-menu-fail-once.php 11 years ago siteguard-menu-init.php 11 years ago siteguard-menu-login-lock.php 11 years ago siteguard-menu-rename-login.php 11 years ago siteguard-menu-same-error.php 11 years ago siteguard-menu-waf-tuning-support.php 11 years ago siteguard-waf-exclude-rule-table.php 11 years ago
siteguard-menu-disable-pingback.php
68 lines
1 <?php
2
3 class SiteGuard_Menu_Disable_Pingback extends SiteGuard_Base {
4 function __construct( ) {
5 $this->render_page( );
6 }
7 function render_page( ) {
8 global $config;
9
10 $opt_name_feature = 'disable_pingback_enable';
11 $opt_val_feature = $config->get( $opt_name_feature );
12 if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-disable-pingback-submit' ) ) {
13 $error = false;
14 if ( false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
15 echo '<div class="error settings-error"><p><strong>';
16 esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
17 echo '</strong></p></div>';
18 $error = true;
19 }
20 if ( false == $error ) {
21 $opt_val_feature = $_POST[ $opt_name_feature ];
22 $config->set( $opt_name_feature, $opt_val_feature );
23 $config->update( );
24 ?>
25 <div class="updated"><p><strong><?php esc_html_e( 'Options saved.', 'siteguard' ); ?></strong></p></div>
26 <?php
27 }
28 }
29
30 echo '<div class="wrap">';
31 echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
32 echo '<h2>' . esc_html__( 'Disable Pingback', 'siteguard' ) . '</h2>';
33 ?>
34 <form name="form1" method="post" action="">
35
36 <table class="form-table">
37 <tr>
38 <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
39 <td>
40 <ul class="siteguard-radios">
41 <li>
42 <input type="radio" name="<?php echo $opt_name_feature ?>" id="<?php echo $opt_name_feature.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_feature ? 'checked' : '') ?> >
43 <label for="<?php echo $opt_name_feature.'_on' ?>"><?php echo esc_html_e( 'ON', 'siteguard' ) ?></label>
44 </li><li>
45 <input type="radio" name="<?php echo $opt_name_feature ?>" id="<?php echo $opt_name_feature.'_off' ?>" value="0" <?php echo ( '0' == $opt_val_feature ? 'checked' : '') ?> >
46 <label for="<?php echo $opt_name_feature.'_off' ?>"><?php echo esc_html_e( 'OFF', 'siteguard' ) ?></label>
47 </li>
48 </ul>
49 </td>
50 </tr>
51 </table>
52 <input type="hidden" name="update" value="Y">
53 <div class="siteguard-description">
54 <?php esc_html_e( 'The pingback function is disabled and its abuse is prevented.', 'siteguard' ) ?>
55 </div>
56 <hr />
57 <?php
58 wp_nonce_field( 'siteguard-menu-disable-pingback-submit' );
59 submit_button( );
60 ?>
61 </form>
62 </div>
63 <?php
64 }
65 }
66
67 ?>
68