SiteGuard WP Plugin - Version 1.2.2

Version Description

  • Fix bug that XML-RPC access which doesn't need login is recorded as the nameless login history
  • Disabling the all functions when installed in multisite environment
  • Disabling the several functions when settings of .htaccess was eliminated
Download this release

Release Info

Developer jp-secure
Plugin Icon 128x128 SiteGuard WP Plugin
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

admin/siteguard-login-history-table.php CHANGED
@@ -45,7 +45,7 @@ class SiteGuard_LoginHistory_Table extends WP_List_Table {
45
  'time' => array( 'id', true ), //true means it's already sorted
46
  'operation' => array( 'operation', false ), //true means it's already sorted
47
  'login_name' => array( 'login_name', false ),
48
- 'ip_address' => array( 'ip_address', false )
49
  );
50
  return $sortable_columns;
51
  }
@@ -63,7 +63,7 @@ class SiteGuard_LoginHistory_Table extends WP_List_Table {
63
  return;
64
  }
65
 
66
- function usort_reorder( $a, $b ){
67
  $orderby = ( ! empty( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : 'id'; //If no sort, default to id
68
  $order = ( ! empty( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : 'desc'; //If no order, default to desc
69
  if ( 'id' == $orderby ) {
@@ -102,7 +102,7 @@ class SiteGuard_LoginHistory_Table extends WP_List_Table {
102
  $this->set_pagination_args( array(
103
  'total_items' => $total_items, //WE have to calculate the total number of items
104
  'per_page' => $per_page, //WE have to determine how many items to show on a page
105
- 'total_pages' => ceil( $total_items / $per_page ) //WE have to calculate the total number of pages
106
  ) );
107
  }
108
  }
45
  'time' => array( 'id', true ), //true means it's already sorted
46
  'operation' => array( 'operation', false ), //true means it's already sorted
47
  'login_name' => array( 'login_name', false ),
48
+ 'ip_address' => array( 'ip_address', false ),
49
  );
50
  return $sortable_columns;
51
  }
63
  return;
64
  }
65
 
66
+ function usort_reorder( $a, $b ) {
67
  $orderby = ( ! empty( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : 'id'; //If no sort, default to id
68
  $order = ( ! empty( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : 'desc'; //If no order, default to desc
69
  if ( 'id' == $orderby ) {
102
  $this->set_pagination_args( array(
103
  'total_items' => $total_items, //WE have to calculate the total number of items
104
  'per_page' => $per_page, //WE have to determine how many items to show on a page
105
+ 'total_pages' => ceil( $total_items / $per_page ), //WE have to calculate the total number of pages
106
  ) );
107
  }
108
  }
admin/siteguard-menu-admin-filter.php CHANGED
@@ -27,7 +27,14 @@ class SiteGuard_Menu_Admin_Filter extends SiteGuard_Base {
27
  $opt_val_exclude = $this->cvt_camma2ret( $config->get( $opt_name_exclude ) );
28
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-admin-filter-submit' ) ) {
29
  $error = false;
30
- if ( '1' == $_POST[ $opt_name_feature ] && false == $this->check_module( 'rewrite' ) ) {
 
 
 
 
 
 
 
31
  echo '<div class="error settings-error"><p><strong>';
32
  esc_html_e( 'To use this function, “mod_rewrite” should be loaded on Apache.', 'siteguard' );
33
  echo '</strong></p></div>';
@@ -37,7 +44,7 @@ class SiteGuard_Menu_Admin_Filter extends SiteGuard_Base {
37
  $admin_filter->feature_off( );
38
  $opt_val_feature = '0';
39
  }
40
- if ( false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
41
  echo '<div class="error settings-error"><p><strong>';
42
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
43
  echo '</strong></p></div>';
@@ -65,12 +72,19 @@ class SiteGuard_Menu_Admin_Filter extends SiteGuard_Base {
65
  echo '<div class="wrap">';
66
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
67
  echo '<h2>' . esc_html__( 'Admin Page IP Filter', 'siteguard' ) . '</h2>';
 
 
 
 
 
 
 
 
68
  ?>
69
  <form name="form1" method="post" action="">
70
  <table class="form-table">
71
  <tr>
72
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
73
- <td>
74
  <ul class="siteguard-radios">
75
  <li>
76
  <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' : '' ) ?> >
@@ -82,11 +96,17 @@ class SiteGuard_Menu_Admin_Filter extends SiteGuard_Base {
82
  </li>
83
  </ul>
84
  <?php
 
 
 
 
 
 
85
  echo '<p class="description">';
86
  esc_html_e( 'To use this function, “mod_rewrite” should be loaded on Apache.', 'siteguard' );
87
  echo '</p>';
88
  ?>
89
- </td>
90
  </tr><tr>
91
  <th scope="row"><label for="<?php echo $opt_name_exclude ?>"><?php echo esc_html_e( 'Exclude Path', 'siteguard' ) ?></label></th>
92
  <td><textarea name="<?php echo $opt_name_exclude ?>" id="<?php echo $opt_name_exclude ?>" col=40 rows=5 ><?php echo esc_textarea( $opt_val_exclude ) ?></textarea>
27
  $opt_val_exclude = $this->cvt_camma2ret( $config->get( $opt_name_exclude ) );
28
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-admin-filter-submit' ) ) {
29
  $error = false;
30
+ $errors = check_multisite( );
31
+ if ( is_wp_error( $errors ) ) {
32
+ echo '<div class="error settings-error"><p><strong>';
33
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
34
+ echo '</strong></p></div>';
35
+ $error = true;
36
+ }
37
+ if ( false == $error && '1' == $_POST[ $opt_name_feature ] && false == $this->check_module( 'rewrite' ) ) {
38
  echo '<div class="error settings-error"><p><strong>';
39
  esc_html_e( 'To use this function, “mod_rewrite” should be loaded on Apache.', 'siteguard' );
40
  echo '</strong></p></div>';
44
  $admin_filter->feature_off( );
45
  $opt_val_feature = '0';
46
  }
47
+ if ( false == $error && false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
48
  echo '<div class="error settings-error"><p><strong>';
49
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
50
  echo '</strong></p></div>';
72
  echo '<div class="wrap">';
73
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
74
  echo '<h2>' . esc_html__( 'Admin Page IP Filter', 'siteguard' ) . '</h2>';
75
+ echo '<div class="siteguard-description">'
76
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
77
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/admin_filter_en.html', 'siteguard' )
78
+ . '" target="_blank">'
79
+ . esc_html__( 'here', 'siteguard' )
80
+ . '</a>'
81
+ . esc_html__( '.', 'siteguard' )
82
+ . '</div>';
83
  ?>
84
  <form name="form1" method="post" action="">
85
  <table class="form-table">
86
  <tr>
87
+ <th scope="row" colspan="2">
 
88
  <ul class="siteguard-radios">
89
  <li>
90
  <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' : '' ) ?> >
96
  </li>
97
  </ul>
98
  <?php
99
+ $error = check_multisite( );
100
+ if ( is_wp_error( $error ) ) {
101
+ echo '<p class="description">';
102
+ echo $error->get_error_message( );
103
+ echo '</p>';
104
+ }
105
  echo '<p class="description">';
106
  esc_html_e( 'To use this function, “mod_rewrite” should be loaded on Apache.', 'siteguard' );
107
  echo '</p>';
108
  ?>
109
+ </th>
110
  </tr><tr>
111
  <th scope="row"><label for="<?php echo $opt_name_exclude ?>"><?php echo esc_html_e( 'Exclude Path', 'siteguard' ) ?></label></th>
112
  <td><textarea name="<?php echo $opt_name_exclude ?>" id="<?php echo $opt_name_exclude ?>" col=40 rows=5 ><?php echo esc_textarea( $opt_val_exclude ) ?></textarea>
admin/siteguard-menu-captcha.php CHANGED
@@ -26,7 +26,14 @@ class SiteGuard_Menu_CAPTCHA extends SiteGuard_Base {
26
  $opt_val_registuser = $config->get( $opt_name_registuser );
27
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-captcha-submit' ) ) {
28
  $error = false;
29
- if ( '1' == $_POST[ $opt_name_enable ] ) {
 
 
 
 
 
 
 
30
  $ret = $captcha->check_requirements( );
31
  if ( is_wp_error( $ret ) ) {
32
  echo '<div class="error settings-error"><p><strong>' . $ret->get_error_message( ) . '</strong></p></div>';
@@ -35,11 +42,12 @@ class SiteGuard_Menu_CAPTCHA extends SiteGuard_Base {
35
  $config->update( );
36
  }
37
  }
38
- if ( ( false == $this->is_switch_value( $_POST[ $opt_name_enable ] ) )
39
- || ( false == $this->is_captcha_switch_value( $_POST[ $opt_name_login ] ) )
40
- || ( false == $this->is_captcha_switch_value( $_POST[ $opt_name_comment ] ) )
41
- || ( false == $this->is_captcha_switch_value( $_POST[ $opt_name_lostpassword ] ) )
42
- || ( false == $this->is_captcha_switch_value( $_POST[ $opt_name_registuser ] ) ) ) {
 
43
  echo '<div class="error settings-error"><p><strong>';
44
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
45
  echo '</strong></p></div>';
@@ -66,12 +74,19 @@ class SiteGuard_Menu_CAPTCHA extends SiteGuard_Base {
66
  echo '<div class="wrap">';
67
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
68
  echo '<h2>' . esc_html__( 'CAPTCHA', 'siteguard' ) . '</h2>';
 
 
 
 
 
 
 
 
69
  ?>
70
  <form name="form1" method="post" action="">
71
  <table class="form-table">
72
  <tr>
73
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
74
- <td>
75
  <ul class="siteguard-radios">
76
  <li>
77
  <input type="radio" name="<?php echo $opt_name_enable ?>" id="<?php echo $opt_name_enable.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_enable ? 'checked' : '') ?> >
@@ -89,7 +104,7 @@ class SiteGuard_Menu_CAPTCHA extends SiteGuard_Base {
89
  echo '</p>';
90
  }
91
  ?>
92
- </td>
93
  </tr><tr>
94
  <th scope="row"><?php esc_html_e( 'Login page', 'siteguard' ); ?></th>
95
  <td>
26
  $opt_val_registuser = $config->get( $opt_name_registuser );
27
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-captcha-submit' ) ) {
28
  $error = false;
29
+ $errors = check_multisite( );
30
+ if ( is_wp_error( $errors ) ) {
31
+ echo '<div class="error settings-error"><p><strong>';
32
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
33
+ echo '</strong></p></div>';
34
+ $error = true;
35
+ }
36
+ if ( false == $error && '1' == $_POST[ $opt_name_enable ] ) {
37
  $ret = $captcha->check_requirements( );
38
  if ( is_wp_error( $ret ) ) {
39
  echo '<div class="error settings-error"><p><strong>' . $ret->get_error_message( ) . '</strong></p></div>';
42
  $config->update( );
43
  }
44
  }
45
+ if ( ( false == $error )
46
+ && ( ( false == $this->is_switch_value( $_POST[ $opt_name_enable ] ) )
47
+ || ( false == $this->is_captcha_switch_value( $_POST[ $opt_name_login ] ) )
48
+ || ( false == $this->is_captcha_switch_value( $_POST[ $opt_name_comment ] ) )
49
+ || ( false == $this->is_captcha_switch_value( $_POST[ $opt_name_lostpassword ] ) )
50
+ || ( false == $this->is_captcha_switch_value( $_POST[ $opt_name_registuser ] ) ) ) ) {
51
  echo '<div class="error settings-error"><p><strong>';
52
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
53
  echo '</strong></p></div>';
74
  echo '<div class="wrap">';
75
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
76
  echo '<h2>' . esc_html__( 'CAPTCHA', 'siteguard' ) . '</h2>';
77
+ echo '<div class="siteguard-description">'
78
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
79
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/captcha_en.html', 'siteguard' )
80
+ . '" target="_blank">'
81
+ . esc_html__( 'here', 'siteguard' )
82
+ . '</a>'
83
+ . esc_html__( '.', 'siteguard' )
84
+ . '</div>';
85
  ?>
86
  <form name="form1" method="post" action="">
87
  <table class="form-table">
88
  <tr>
89
+ <th scope="row" colspan="2">
 
90
  <ul class="siteguard-radios">
91
  <li>
92
  <input type="radio" name="<?php echo $opt_name_enable ?>" id="<?php echo $opt_name_enable.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_enable ? 'checked' : '') ?> >
104
  echo '</p>';
105
  }
106
  ?>
107
+ </th>
108
  </tr><tr>
109
  <th scope="row"><?php esc_html_e( 'Login page', 'siteguard' ); ?></th>
110
  <td>
admin/siteguard-menu-dashboard.php CHANGED
@@ -29,56 +29,62 @@ class SiteGuard_Menu_Dashboard extends SiteGuard_Base {
29
  . esc_html__( 'You can find docs, FAQ and more detailed information about SiteGuard WP Plugin on ', 'siteguard' )
30
  . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/index_en.html', 'siteguard' ) . '" target="_blank">' . esc_html__( 'SiteGuard WP Plugin Page', 'siteguard' ) . '</a>' . esc_html__( '.', 'siteguard' ) . '</div>';
31
  echo '<h3>' . esc_html__( 'Setting status', 'siteguard' ) . "</h3>\n";
 
 
 
 
 
 
32
  ?>
33
  <table class="siteguard-form-table">
34
  <tr>
35
  <th scpoe="row">
36
- <img src=<?php echo '"' . $img_path . ( $admin_filter_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
37
  <a href="?page=siteguard_admin_filter"><?php esc_html_e( 'Admin Page IP Filter', 'siteguard' ) ?></a></th>
38
  <td><?php esc_html_e( 'The management directory (/wp-admin/) is protected against the connection source which does not login.', 'siteguard' ) ?></td>
39
  </tr><tr>
40
  <th scpoe="row">
41
- <img src=<?php echo '"' . $img_path . ( $renamelogin_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
42
  <a href="?page=siteguard_rename_login"><?php esc_html_e( 'Rename Login', 'siteguard' ) ?></a></th>
43
  <td><?php esc_html_e( 'The login page name is changed.', 'siteguard' ) ?></td>
44
  </tr><tr>
45
  <th scpoe="row">
46
- <img src=<?php echo '"' . $img_path . ( $captcha_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
47
  <a href="?page=siteguard_captcha"><?php esc_html_e( 'CAPTCHA', 'siteguard' ) ?></a></th>
48
  <td><?php esc_html_e( 'CAPTCHA is added to the login page or comment post.', 'siteguard' ) ?></td>
49
  </tr><tr>
50
  <th scpoe="row">
51
- <img src=<?php echo '"' . $img_path . ( $same_error_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
52
  <a href="?page=siteguard_same_error"><?php esc_html_e( 'Same Login Error Message', 'siteguard' ) ?></a></th>
53
  <td><?php esc_html_e( 'Instead of the detailed error message at the login error, the single message is returned.', 'siteguard' ) ?></td>
54
  </tr><tr>
55
  <th scope="row">
56
- <img src=<?php echo '"' . $img_path . ( $loginlock_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
57
  <a href="?page=siteguard_login_lock"><?php esc_html_e( 'Login Lock', 'siteguard' ) ?></a></th>
58
  <td><?php esc_html_e( 'The connection source which repeats login failure is being locked within a certain period.', 'siteguard' ) ?></td>
59
  </tr><tr>
60
  <th scope="row">
61
- <img src=<?php echo '"' . $img_path . ( $loginalert_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
62
  <a href="?page=siteguard_login_alert"><?php esc_html_e( 'Login Alert', 'siteguard' ) ?></a></th>
63
  <td><?php esc_html_e( 'E-mail notifies that there was login.', 'siteguard' ) ?></td>
64
  </tr><tr>
65
  <th scope="row">
66
- <img src=<?php echo '"' . $img_path . ( $fail_once_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
67
  <a href="?page=siteguard_fail_once"><?php esc_html_e( 'Fail once', 'siteguard' ) ?></a></th>
68
  <td><?php esc_html_e( 'The first login must fail even if the input is correct.', 'siteguard' ) ?></td>
69
  </tr><tr>
70
  <th scpoe="row">
71
- <img src=<?php echo '"' . $img_path . ( $disable_pingback_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
72
  <a href="?page=siteguard_disable_pingback"><?php esc_html_e( 'Disable Pingback', 'siteguard' ) ?></a></th>
73
  <td><?php esc_html_e( 'The abuse of pingback is prevented.', 'siteguard' ) ?></td>
74
  </tr><tr>
75
  <th scpoe="row">
76
- <img src=<?php echo '"' . $img_path . ( $updates_notify_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
77
  <a href="?page=siteguard_updates_notify"><?php esc_html_e( 'Updates Notify', 'siteguard' ) ?></a></th>
78
  <td><?php esc_html_e( 'If WordPress core, plugins, and themes updates are needed , sends email to notify administrators.', 'siteguard' ) ?></td>
79
  </tr><tr>
80
  <th scpoe="row">
81
- <img src=<?php echo '"' . $img_path . ( $waf_exclude_rule_enable == '1' ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
82
  <a href="?page=siteguard_waf_tuning_support"><?php esc_html_e( 'WAF Tuning Support', 'siteguard' ) ?></a></th>
83
  <td><?php esc_html_e( 'The exclude rule for WAF (SiteGuard Lite) is created.', 'siteguard' ) ?></td>
84
  </tr>
29
  . esc_html__( 'You can find docs, FAQ and more detailed information about SiteGuard WP Plugin on ', 'siteguard' )
30
  . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/index_en.html', 'siteguard' ) . '" target="_blank">' . esc_html__( 'SiteGuard WP Plugin Page', 'siteguard' ) . '</a>' . esc_html__( '.', 'siteguard' ) . '</div>';
31
  echo '<h3>' . esc_html__( 'Setting status', 'siteguard' ) . "</h3>\n";
32
+ $error = check_multisite( );
33
+ if ( is_wp_error( $error ) ) {
34
+ echo '<p class="description">';
35
+ echo $error->get_error_message( );
36
+ echo '</p>';
37
+ }
38
  ?>
39
  <table class="siteguard-form-table">
40
  <tr>
41
  <th scpoe="row">
42
+ <img src=<?php echo '"' . $img_path . ( '1' == $admin_filter_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
43
  <a href="?page=siteguard_admin_filter"><?php esc_html_e( 'Admin Page IP Filter', 'siteguard' ) ?></a></th>
44
  <td><?php esc_html_e( 'The management directory (/wp-admin/) is protected against the connection source which does not login.', 'siteguard' ) ?></td>
45
  </tr><tr>
46
  <th scpoe="row">
47
+ <img src=<?php echo '"' . $img_path . ( '1' == $renamelogin_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
48
  <a href="?page=siteguard_rename_login"><?php esc_html_e( 'Rename Login', 'siteguard' ) ?></a></th>
49
  <td><?php esc_html_e( 'The login page name is changed.', 'siteguard' ) ?></td>
50
  </tr><tr>
51
  <th scpoe="row">
52
+ <img src=<?php echo '"' . $img_path . ( '1' == $captcha_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
53
  <a href="?page=siteguard_captcha"><?php esc_html_e( 'CAPTCHA', 'siteguard' ) ?></a></th>
54
  <td><?php esc_html_e( 'CAPTCHA is added to the login page or comment post.', 'siteguard' ) ?></td>
55
  </tr><tr>
56
  <th scpoe="row">
57
+ <img src=<?php echo '"' . $img_path . ( '1' == $same_error_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
58
  <a href="?page=siteguard_same_error"><?php esc_html_e( 'Same Login Error Message', 'siteguard' ) ?></a></th>
59
  <td><?php esc_html_e( 'Instead of the detailed error message at the login error, the single message is returned.', 'siteguard' ) ?></td>
60
  </tr><tr>
61
  <th scope="row">
62
+ <img src=<?php echo '"' . $img_path . ( '1' == $loginlock_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
63
  <a href="?page=siteguard_login_lock"><?php esc_html_e( 'Login Lock', 'siteguard' ) ?></a></th>
64
  <td><?php esc_html_e( 'The connection source which repeats login failure is being locked within a certain period.', 'siteguard' ) ?></td>
65
  </tr><tr>
66
  <th scope="row">
67
+ <img src=<?php echo '"' . $img_path . ( '1' == $loginalert_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
68
  <a href="?page=siteguard_login_alert"><?php esc_html_e( 'Login Alert', 'siteguard' ) ?></a></th>
69
  <td><?php esc_html_e( 'E-mail notifies that there was login.', 'siteguard' ) ?></td>
70
  </tr><tr>
71
  <th scope="row">
72
+ <img src=<?php echo '"' . $img_path . ( '1' == $fail_once_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
73
  <a href="?page=siteguard_fail_once"><?php esc_html_e( 'Fail once', 'siteguard' ) ?></a></th>
74
  <td><?php esc_html_e( 'The first login must fail even if the input is correct.', 'siteguard' ) ?></td>
75
  </tr><tr>
76
  <th scpoe="row">
77
+ <img src=<?php echo '"' . $img_path . ( '1' == $disable_pingback_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
78
  <a href="?page=siteguard_disable_pingback"><?php esc_html_e( 'Disable Pingback', 'siteguard' ) ?></a></th>
79
  <td><?php esc_html_e( 'The abuse of pingback is prevented.', 'siteguard' ) ?></td>
80
  </tr><tr>
81
  <th scpoe="row">
82
+ <img src=<?php echo '"' . $img_path . ( '1' == $updates_notify_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
83
  <a href="?page=siteguard_updates_notify"><?php esc_html_e( 'Updates Notify', 'siteguard' ) ?></a></th>
84
  <td><?php esc_html_e( 'If WordPress core, plugins, and themes updates are needed , sends email to notify administrators.', 'siteguard' ) ?></td>
85
  </tr><tr>
86
  <th scpoe="row">
87
+ <img src=<?php echo '"' . $img_path . ( '1' == $waf_exclude_rule_enable ? 'yes.png" alt="yes"' : 'yes_glay.png" alt="no"' ) ?>>
88
  <a href="?page=siteguard_waf_tuning_support"><?php esc_html_e( 'WAF Tuning Support', 'siteguard' ) ?></a></th>
89
  <td><?php esc_html_e( 'The exclude rule for WAF (SiteGuard Lite) is created.', 'siteguard' ) ?></td>
90
  </tr>
admin/siteguard-menu-disable-pingback.php CHANGED
@@ -11,7 +11,14 @@ class SiteGuard_Menu_Disable_Pingback extends SiteGuard_Base {
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>';
@@ -30,13 +37,20 @@ class SiteGuard_Menu_Disable_Pingback extends SiteGuard_Base {
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' : '') ?> >
@@ -46,7 +60,15 @@ class SiteGuard_Menu_Disable_Pingback extends SiteGuard_Base {
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">
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
+ $errors = check_multisite( );
15
+ if ( is_wp_error( $errors ) ) {
16
+ echo '<div class="error settings-error"><p><strong>';
17
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
18
+ echo '</strong></p></div>';
19
+ $error = true;
20
+ }
21
+ if ( false == $error && false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
22
  echo '<div class="error settings-error"><p><strong>';
23
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
24
  echo '</strong></p></div>';
37
  echo '<div class="wrap">';
38
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
39
  echo '<h2>' . esc_html__( 'Disable Pingback', 'siteguard' ) . '</h2>';
40
+ echo '<div class="siteguard-description">'
41
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
42
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/pingback_en.html', 'siteguard' )
43
+ . '" target="_blank">'
44
+ . esc_html__( 'here', 'siteguard' )
45
+ . '</a>'
46
+ . esc_html__( '.', 'siteguard' )
47
+ . '</div>';
48
  ?>
49
  <form name="form1" method="post" action="">
50
 
51
  <table class="form-table">
52
  <tr>
53
+ <th scope="row" colspan="2">
 
54
  <ul class="siteguard-radios">
55
  <li>
56
  <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' : '') ?> >
60
  <label for="<?php echo $opt_name_feature.'_off' ?>"><?php echo esc_html_e( 'OFF', 'siteguard' ) ?></label>
61
  </li>
62
  </ul>
63
+ <?php
64
+ $error = check_multisite( );
65
+ if ( is_wp_error( $error ) ) {
66
+ echo '<p class="description">';
67
+ echo $error->get_error_message( );
68
+ echo '</p>';
69
+ }
70
+ ?>
71
+ </th>
72
  </tr>
73
  </table>
74
  <input type="hidden" name="update" value="Y">
admin/siteguard-menu-fail-once.php CHANGED
@@ -14,7 +14,14 @@ class SiteGuard_Menu_Fail_Once extends SiteGuard_Base {
14
  $opt_val_admin_only = $config->get( $opt_name_admin_only );
15
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-fail-once-submit' ) ) {
16
  $error = false;
17
- if ( false == $this->is_switch_value( $_POST[ $opt_name_fail_once ] ) ) {
 
 
 
 
 
 
 
18
  echo '<div class="error settings-error"><p><strong>';
19
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
20
  echo '</strong></p></div>';
@@ -39,12 +46,19 @@ class SiteGuard_Menu_Fail_Once extends SiteGuard_Base {
39
  echo '<div class="wrap">';
40
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
41
  echo '<h2>' . esc_html__( 'Fail once', 'siteguard' ) . '</h2>';
 
 
 
 
 
 
 
 
42
  ?>
43
  <form name="form1" method="post" action="">
44
  <table class="form-table">
45
  <tr>
46
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
47
- <td>
48
  <ul class="siteguard-radios">
49
  <li>
50
  <input type="radio" name="<?php echo $opt_name_fail_once ?>" id="<?php echo $opt_name_fail_once.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_fail_once ? 'checked' : '') ?> >
@@ -54,7 +68,15 @@ class SiteGuard_Menu_Fail_Once extends SiteGuard_Base {
54
  <label for="<?php echo $opt_name_fail_once.'_off' ?>"><?php esc_html_e( 'OFF', 'siteguard' ) ?></label>
55
  </li>
56
  </ul>
57
- </td>
 
 
 
 
 
 
 
 
58
  <td>
59
  </tr><tr>
60
  <th scope="row"><?php esc_html_e( 'Target user', 'siteguard' ) ?></th>
14
  $opt_val_admin_only = $config->get( $opt_name_admin_only );
15
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-fail-once-submit' ) ) {
16
  $error = false;
17
+ $errors = check_multisite( );
18
+ if ( is_wp_error( $errors ) ) {
19
+ echo '<div class="error settings-error"><p><strong>';
20
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
21
+ echo '</strong></p></div>';
22
+ $error = true;
23
+ }
24
+ if ( false == $error && false == $this->is_switch_value( $_POST[ $opt_name_fail_once ] ) ) {
25
  echo '<div class="error settings-error"><p><strong>';
26
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
27
  echo '</strong></p></div>';
46
  echo '<div class="wrap">';
47
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
48
  echo '<h2>' . esc_html__( 'Fail once', 'siteguard' ) . '</h2>';
49
+ echo '<div class="siteguard-description">'
50
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
51
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/fail_once_en.html', 'siteguard' )
52
+ . '" target="_blank">'
53
+ . esc_html__( 'here', 'siteguard' )
54
+ . '</a>'
55
+ . esc_html__( '.', 'siteguard' )
56
+ . '</div>';
57
  ?>
58
  <form name="form1" method="post" action="">
59
  <table class="form-table">
60
  <tr>
61
+ <th scope="row" colspan="2">
 
62
  <ul class="siteguard-radios">
63
  <li>
64
  <input type="radio" name="<?php echo $opt_name_fail_once ?>" id="<?php echo $opt_name_fail_once.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_fail_once ? 'checked' : '') ?> >
68
  <label for="<?php echo $opt_name_fail_once.'_off' ?>"><?php esc_html_e( 'OFF', 'siteguard' ) ?></label>
69
  </li>
70
  </ul>
71
+ <?php
72
+ $error = check_multisite( );
73
+ if ( is_wp_error( $error ) ) {
74
+ echo '<p class="description">';
75
+ echo $error->get_error_message( );
76
+ echo '</p>';
77
+ }
78
+ ?>
79
+ </th>
80
  <td>
81
  </tr><tr>
82
  <th scope="row"><?php esc_html_e( 'Target user', 'siteguard' ) ?></th>
admin/siteguard-menu-login-alert.php CHANGED
@@ -18,7 +18,14 @@ class SiteGuard_Menu_Login_Alert extends SiteGuard_Base {
18
  $opt_val_admin = $config->get( $opt_name_admin );
19
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-login-alert-submit' ) ) {
20
  $error = false;
21
- if ( false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
 
 
 
 
 
 
 
22
  echo '<div class="error settings-error"><p><strong>';
23
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
24
  echo '</strong></p></div>';
@@ -47,12 +54,19 @@ class SiteGuard_Menu_Login_Alert extends SiteGuard_Base {
47
  echo '<div class="wrap">';
48
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
49
  echo '<h2>' . esc_html__( 'Login Alert', 'siteguard' ) . '</h2>';
 
 
 
 
 
 
 
 
50
  ?>
51
  <form name="form1" method="post" action="">
52
  <table class="form-table">
53
  <tr>
54
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
55
- <td>
56
  <ul class="siteguard-radios">
57
  <li>
58
  <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' : '') ?> >
@@ -62,7 +76,15 @@ class SiteGuard_Menu_Login_Alert extends SiteGuard_Base {
62
  <label for="<?php echo $opt_name_feature.'_off' ?>"><?php echo esc_html_e( 'OFF', 'siteguard' ) ?></label>
63
  </li>
64
  </ul>
65
- </td>
 
 
 
 
 
 
 
 
66
  </tr><tr>
67
  <th scope="row"><label for="<?php echo $opt_name_subject ?>"><?php esc_html_e( 'Subject', 'siteguard' ); ?></label></th>
68
  <td>
18
  $opt_val_admin = $config->get( $opt_name_admin );
19
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-login-alert-submit' ) ) {
20
  $error = false;
21
+ $errors = check_multisite( );
22
+ if ( is_wp_error( $errors ) ) {
23
+ echo '<div class="error settings-error"><p><strong>';
24
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
25
+ echo '</strong></p></div>';
26
+ $error = true;
27
+ }
28
+ if ( false == $error && false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
29
  echo '<div class="error settings-error"><p><strong>';
30
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
31
  echo '</strong></p></div>';
54
  echo '<div class="wrap">';
55
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
56
  echo '<h2>' . esc_html__( 'Login Alert', 'siteguard' ) . '</h2>';
57
+ echo '<div class="siteguard-description">'
58
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
59
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/login_alert_en.html', 'siteguard' )
60
+ . '" target="_blank">'
61
+ . esc_html__( 'here', 'siteguard' )
62
+ . '</a>'
63
+ . esc_html__( '.', 'siteguard' )
64
+ . '</div>';
65
  ?>
66
  <form name="form1" method="post" action="">
67
  <table class="form-table">
68
  <tr>
69
+ <th scope="row" colspan="2">
 
70
  <ul class="siteguard-radios">
71
  <li>
72
  <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' : '') ?> >
76
  <label for="<?php echo $opt_name_feature.'_off' ?>"><?php echo esc_html_e( 'OFF', 'siteguard' ) ?></label>
77
  </li>
78
  </ul>
79
+ <?php
80
+ $error = check_multisite( );
81
+ if ( is_wp_error( $error ) ) {
82
+ echo '<p class="description">';
83
+ echo $error->get_error_message( );
84
+ echo '</p>';
85
+ }
86
+ ?>
87
+ </th>
88
  </tr><tr>
89
  <th scope="row"><label for="<?php echo $opt_name_subject ?>"><?php esc_html_e( 'Subject', 'siteguard' ); ?></label></th>
90
  <td>
admin/siteguard-menu-login-lock.php CHANGED
@@ -36,10 +36,18 @@ class SiteGuard_Menu_Login_Lock extends SiteGuard_Base {
36
  $opt_val_locksec = $config->get( $opt_name_locksec );
37
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-login-lock-submit' ) ) {
38
  $error = false;
39
- if ( ( false == $this->is_switch_value( $_POST[ $opt_name_enable ] ) )
40
- || ( false == $this->is_interval_value( $_POST[ $opt_name_interval ] ) )
41
- || ( false == $this->is_threshold_value( $_POST[ $opt_name_threshold ] ) )
42
- || ( false == $this->is_locksec_value( $_POST[ $opt_name_locksec ] ) ) ) {
 
 
 
 
 
 
 
 
43
  echo '<div class="error settings-error"><p><strong>';
44
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
45
  echo '</strong></p></div>';
@@ -64,12 +72,19 @@ class SiteGuard_Menu_Login_Lock extends SiteGuard_Base {
64
  echo '<div class="wrap">';
65
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
66
  echo '<h2>' . esc_html__( 'Login Lock', 'siteguard' ) . '</h2>';
 
 
 
 
 
 
 
 
67
  ?>
68
  <form name="form1" method="post" action="">
69
  <table class="form-table">
70
  <tr>
71
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
72
- <td>
73
  <ul class="siteguard-radios">
74
  <li>
75
  <input type="radio" name="<?php echo $opt_name_enable ?>" id="<?php echo $opt_name_enable.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_enable ? 'checked' : '') ?> >
@@ -79,7 +94,15 @@ class SiteGuard_Menu_Login_Lock extends SiteGuard_Base {
79
  <label for="<?php echo $opt_name_enable.'_off' ?>"><?php esc_html_e( 'OFF', 'siteguard' ) ?></label>
80
  </li>
81
  </ul>
82
- </td>
 
 
 
 
 
 
 
 
83
  </tr><tr>
84
  <th scope="row"><?php esc_html_e( 'Interval', 'siteguard' ); ?></th>
85
  <td>
36
  $opt_val_locksec = $config->get( $opt_name_locksec );
37
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-login-lock-submit' ) ) {
38
  $error = false;
39
+ $errors = check_multisite( );
40
+ if ( is_wp_error( $errors ) ) {
41
+ echo '<div class="error settings-error"><p><strong>';
42
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
43
+ echo '</strong></p></div>';
44
+ $error = true;
45
+ }
46
+ if ( ( false == $error )
47
+ && ( ( false == $this->is_switch_value( $_POST[ $opt_name_enable ] ) )
48
+ || ( false == $this->is_interval_value( $_POST[ $opt_name_interval ] ) )
49
+ || ( false == $this->is_threshold_value( $_POST[ $opt_name_threshold ] ) )
50
+ || ( false == $this->is_locksec_value( $_POST[ $opt_name_locksec ] ) ) ) ) {
51
  echo '<div class="error settings-error"><p><strong>';
52
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
53
  echo '</strong></p></div>';
72
  echo '<div class="wrap">';
73
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
74
  echo '<h2>' . esc_html__( 'Login Lock', 'siteguard' ) . '</h2>';
75
+ echo '<div class="siteguard-description">'
76
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
77
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/login_lock_en.html', 'siteguard' )
78
+ . '" target="_blank">'
79
+ . esc_html__( 'here', 'siteguard' )
80
+ . '</a>'
81
+ . esc_html__( '.', 'siteguard' )
82
+ . '</div>';
83
  ?>
84
  <form name="form1" method="post" action="">
85
  <table class="form-table">
86
  <tr>
87
+ <th scope="row" colspan="2">
 
88
  <ul class="siteguard-radios">
89
  <li>
90
  <input type="radio" name="<?php echo $opt_name_enable ?>" id="<?php echo $opt_name_enable.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_enable ? 'checked' : '') ?> >
94
  <label for="<?php echo $opt_name_enable.'_off' ?>"><?php esc_html_e( 'OFF', 'siteguard' ) ?></label>
95
  </li>
96
  </ul>
97
+ <?php
98
+ $error = check_multisite( );
99
+ if ( is_wp_error( $error ) ) {
100
+ echo '<p class="description">';
101
+ echo $error->get_error_message( );
102
+ echo '</p>';
103
+ }
104
+ ?>
105
+ </th>
106
  </tr><tr>
107
  <th scope="row"><?php esc_html_e( 'Interval', 'siteguard' ); ?></th>
108
  <td>
admin/siteguard-menu-rename-login.php CHANGED
@@ -14,7 +14,14 @@ class SiteGuard_Menu_Rename_Login extends SiteGuard_Base {
14
  $opt_val_rename_login_path = $config->get( $opt_name_rename_login_path );
15
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-rename-login-submit' ) ) {
16
  $error = false;
17
- if ( '1' == $_POST[ $opt_name_feature ] && false == $this->check_module( 'rewrite' ) ) {
 
 
 
 
 
 
 
18
  echo '<div class="error settings-error"><p><strong>';
19
  esc_html_e( 'To use this function, “mod_rewrite” should be loaded on Apache.', 'siteguard' );
20
  echo '</strong></p></div>';
@@ -24,13 +31,13 @@ class SiteGuard_Menu_Rename_Login extends SiteGuard_Base {
24
  $rename_login->feature_off( );
25
  $opt_val_feature = '0';
26
  }
27
- if ( false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
28
  echo '<div class="error settings-error"><p><strong>';
29
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
30
  echo '</strong></p></div>';
31
  $error = true;
32
  }
33
- if ( '1' == $_POST[ $opt_name_feature ] ) {
34
  $incompatible_plugin = $rename_login->get_active_incompatible_plugin( );
35
  if ( null != $incompatible_plugin ) {
36
  echo '<div class="error settings-error"><p><strong>';
@@ -44,14 +51,14 @@ class SiteGuard_Menu_Rename_Login extends SiteGuard_Base {
44
  $opt_val_rename_login_path = stripslashes( $_POST[ $opt_name_rename_login_path ] );
45
  }
46
  }
47
- if ( 1 != preg_match( '/^[a-zA-Z0-9_-]+$/', $_POST[ $opt_name_rename_login_path ] ) ) {
48
  echo '<div class="error settings-error"><p><strong>';
49
  esc_html_e( 'It is only an alphanumeric character, a hyphen, and an underbar that can be used for New Login Path.', 'siteguard' );
50
  echo '</strong></p></div>';
51
  $opt_val_rename_login_path = stripslashes( $_POST[ $opt_name_rename_login_path ] );
52
  $error = true;
53
  }
54
- if ( 1 == preg_match( '/^(wp-admin|wp-login$|login$)/', $_POST[ $opt_name_rename_login_path ], $matches ) ) {
55
  echo '<div class="error settings-error"><p><strong>';
56
  echo esc_html( $matches[0] ) . esc_html__( ' can not be used for New Login Path.', 'siteguard' );
57
  echo '</strong></p></div>';
@@ -79,12 +86,19 @@ class SiteGuard_Menu_Rename_Login extends SiteGuard_Base {
79
  echo '<div class="wrap">';
80
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
81
  echo '<h2>' . esc_html__( 'Rename Login', 'siteguard' ) . '</h2>';
 
 
 
 
 
 
 
 
82
  ?>
83
  <form name="form1" method="post" action="">
84
  <table class="form-table">
85
  <tr>
86
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
87
- <td>
88
  <ul class="siteguard-radios">
89
  <li>
90
  <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' : '') ?> >
@@ -95,11 +109,17 @@ class SiteGuard_Menu_Rename_Login extends SiteGuard_Base {
95
  </li>
96
  </ul>
97
  <?php
 
 
 
 
 
 
98
  echo '<p class="description">';
99
  esc_html_e( 'To use this function, “mod_rewrite” should be loaded on Apache.', 'siteguard' );
100
  echo '</p>';
101
  ?>
102
- </td>
103
  </tr><tr>
104
  <th scope="row"><label for="<?php echo $opt_name_rename_login_path ?>"><?php esc_html_e( 'New Login Path', 'siteguard' ); ?></label></th>
105
  <td>
14
  $opt_val_rename_login_path = $config->get( $opt_name_rename_login_path );
15
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-rename-login-submit' ) ) {
16
  $error = false;
17
+ $errors = check_multisite( );
18
+ if ( is_wp_error( $errors ) ) {
19
+ echo '<div class="error settings-error"><p><strong>';
20
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
21
+ echo '</strong></p></div>';
22
+ $error = true;
23
+ }
24
+ if ( false == $error && '1' == $_POST[ $opt_name_feature ] && false == $this->check_module( 'rewrite' ) ) {
25
  echo '<div class="error settings-error"><p><strong>';
26
  esc_html_e( 'To use this function, “mod_rewrite” should be loaded on Apache.', 'siteguard' );
27
  echo '</strong></p></div>';
31
  $rename_login->feature_off( );
32
  $opt_val_feature = '0';
33
  }
34
+ if ( false == $error && false == $this->is_switch_value( $_POST[ $opt_name_feature ] ) ) {
35
  echo '<div class="error settings-error"><p><strong>';
36
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
37
  echo '</strong></p></div>';
38
  $error = true;
39
  }
40
+ if ( false == $error && '1' == $_POST[ $opt_name_feature ] ) {
41
  $incompatible_plugin = $rename_login->get_active_incompatible_plugin( );
42
  if ( null != $incompatible_plugin ) {
43
  echo '<div class="error settings-error"><p><strong>';
51
  $opt_val_rename_login_path = stripslashes( $_POST[ $opt_name_rename_login_path ] );
52
  }
53
  }
54
+ if ( false == $error && 1 != preg_match( '/^[a-zA-Z0-9_-]+$/', $_POST[ $opt_name_rename_login_path ] ) ) {
55
  echo '<div class="error settings-error"><p><strong>';
56
  esc_html_e( 'It is only an alphanumeric character, a hyphen, and an underbar that can be used for New Login Path.', 'siteguard' );
57
  echo '</strong></p></div>';
58
  $opt_val_rename_login_path = stripslashes( $_POST[ $opt_name_rename_login_path ] );
59
  $error = true;
60
  }
61
+ if ( false == $error && 1 == preg_match( '/^(wp-admin|wp-login$|login$)/', $_POST[ $opt_name_rename_login_path ], $matches ) ) {
62
  echo '<div class="error settings-error"><p><strong>';
63
  echo esc_html( $matches[0] ) . esc_html__( ' can not be used for New Login Path.', 'siteguard' );
64
  echo '</strong></p></div>';
86
  echo '<div class="wrap">';
87
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
88
  echo '<h2>' . esc_html__( 'Rename Login', 'siteguard' ) . '</h2>';
89
+ echo '<div class="siteguard-description">'
90
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
91
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/rename_login_en.html', 'siteguard' )
92
+ . '" target="_blank">'
93
+ . esc_html__( 'here', 'siteguard' )
94
+ . '</a>'
95
+ . esc_html__( '.', 'siteguard' )
96
+ . '</div>';
97
  ?>
98
  <form name="form1" method="post" action="">
99
  <table class="form-table">
100
  <tr>
101
+ <th scope="row" colspan="2">
 
102
  <ul class="siteguard-radios">
103
  <li>
104
  <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' : '') ?> >
109
  </li>
110
  </ul>
111
  <?php
112
+ $error = check_multisite( );
113
+ if ( is_wp_error( $error ) ) {
114
+ echo '<p class="description">';
115
+ echo $error->get_error_message( );
116
+ echo '</p>';
117
+ }
118
  echo '<p class="description">';
119
  esc_html_e( 'To use this function, “mod_rewrite” should be loaded on Apache.', 'siteguard' );
120
  echo '</p>';
121
  ?>
122
+ </th>
123
  </tr><tr>
124
  <th scope="row"><label for="<?php echo $opt_name_rename_login_path ?>"><?php esc_html_e( 'New Login Path', 'siteguard' ); ?></label></th>
125
  <td>
admin/siteguard-menu-same-error.php CHANGED
@@ -12,7 +12,14 @@ class SiteGuard_Menu_Same_Error extends SiteGuard_Base {
12
  $opt_val_enable = $config->get( $opt_name_enable );
13
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-same-error-submit' ) ) {
14
  $error = false;
15
- if ( '1' == $_POST[ $opt_name_enable ] ) {
 
 
 
 
 
 
 
16
  $ret = $captcha->check_requirements( );
17
  if ( is_wp_error( $ret ) ) {
18
  echo '<div class="error settings-error"><p><strong>' . $ret->get_error_message( ) . '</strong></p></div>';
@@ -21,7 +28,7 @@ class SiteGuard_Menu_Same_Error extends SiteGuard_Base {
21
  $config->update( );
22
  }
23
  }
24
- if ( false == $this->is_switch_value( $_POST[ $opt_name_enable ] ) ) {
25
  echo '<div class="error settings-error"><p><strong>';
26
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
27
  echo '</strong></p></div>';
@@ -40,12 +47,19 @@ class SiteGuard_Menu_Same_Error extends SiteGuard_Base {
40
  echo '<div class="wrap">';
41
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
42
  echo '<h2>' . esc_html__( 'Same Login Error Message', 'siteguard' ) . '</h2>';
 
 
 
 
 
 
 
 
43
  ?>
44
  <form name="form1" method="post" action="">
45
  <table class="form-table">
46
  <tr>
47
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
48
- <td>
49
  <ul class="siteguard-radios">
50
  <li>
51
  <input type="radio" name="<?php echo $opt_name_enable ?>" id="<?php echo $opt_name_enable.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_enable ? 'checked' : '') ?> >
@@ -55,7 +69,15 @@ class SiteGuard_Menu_Same_Error extends SiteGuard_Base {
55
  <label for="<?php echo $opt_name_enable.'_off' ?>"><?php esc_html_e( 'OFF', 'siteguard' ) ?></label>
56
  </li>
57
  </ul>
58
- </td>
 
 
 
 
 
 
 
 
59
  </tr>
60
  </table>
61
  <input type="hidden" name="update" value="Y">
12
  $opt_val_enable = $config->get( $opt_name_enable );
13
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-same-error-submit' ) ) {
14
  $error = false;
15
+ $errors = check_multisite( );
16
+ if ( is_wp_error( $errors ) ) {
17
+ echo '<div class="error settings-error"><p><strong>';
18
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
19
+ echo '</strong></p></div>';
20
+ $error = true;
21
+ }
22
+ if ( false == $error && '1' == $_POST[ $opt_name_enable ] ) {
23
  $ret = $captcha->check_requirements( );
24
  if ( is_wp_error( $ret ) ) {
25
  echo '<div class="error settings-error"><p><strong>' . $ret->get_error_message( ) . '</strong></p></div>';
28
  $config->update( );
29
  }
30
  }
31
+ if ( false == $error && false == $this->is_switch_value( $_POST[ $opt_name_enable ] ) ) {
32
  echo '<div class="error settings-error"><p><strong>';
33
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
34
  echo '</strong></p></div>';
47
  echo '<div class="wrap">';
48
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
49
  echo '<h2>' . esc_html__( 'Same Login Error Message', 'siteguard' ) . '</h2>';
50
+ echo '<div class="siteguard-description">'
51
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
52
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/same_error_en.html', 'siteguard' )
53
+ . '" target="_blank">'
54
+ . esc_html__( 'here', 'siteguard' )
55
+ . '</a>'
56
+ . esc_html__( '.', 'siteguard' )
57
+ . '</div>';
58
  ?>
59
  <form name="form1" method="post" action="">
60
  <table class="form-table">
61
  <tr>
62
+ <th scope="row" colspan="2">
 
63
  <ul class="siteguard-radios">
64
  <li>
65
  <input type="radio" name="<?php echo $opt_name_enable ?>" id="<?php echo $opt_name_enable.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_enable ? 'checked' : '') ?> >
69
  <label for="<?php echo $opt_name_enable.'_off' ?>"><?php esc_html_e( 'OFF', 'siteguard' ) ?></label>
70
  </li>
71
  </ul>
72
+ <?php
73
+ $error = check_multisite( );
74
+ if ( is_wp_error( $error ) ) {
75
+ echo '<p class="description">';
76
+ echo $error->get_error_message( );
77
+ echo '</p>';
78
+ }
79
+ ?>
80
+ </th>
81
  </tr>
82
  </table>
83
  <input type="hidden" name="update" value="Y">
admin/siteguard-menu-updates-notify.php CHANGED
@@ -24,16 +24,24 @@ class SiteGuard_Menu_Updates_Notify extends SiteGuard_Base {
24
  $opt_val_themes = $config->get( $opt_name_themes );
25
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-updates-notify-submit' ) ) {
26
  $error = false;
27
- if ( ( false == $this->is_switch_value( $_POST[ $opt_name_enable ] ) )
28
- || ( false == $this->is_switch_value( $_POST[ $opt_name_wpcore ] ) )
29
- || ( false == $this->is_notify_value( $_POST[ $opt_name_plugins ] ) )
30
- || ( false == $this->is_notify_value( $_POST[ $opt_name_themes ] ) ) ) {
 
 
 
 
 
 
 
 
31
  echo '<div class="error settings-error"><p><strong>';
32
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
33
  echo '</strong></p></div>';
34
  $error = true;
35
  }
36
- if ( '1' == $_POST[ $opt_name_enable ] ) {
37
  $ret = $updates_notify->check_requirements( );
38
  if ( is_wp_error( $ret ) ) {
39
  echo '<div class="error settings-error"><p><strong>' . $ret->get_error_message( ) . '</strong></p></div>';
@@ -66,12 +74,19 @@ class SiteGuard_Menu_Updates_Notify extends SiteGuard_Base {
66
  echo '<div class="wrap">';
67
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
68
  echo '<h2>' . esc_html__( 'Updates Notify', 'siteguard' ) . '</h2>';
 
 
 
 
 
 
 
 
69
  ?>
70
  <form name="form1" method="post" action="">
71
  <table class="form-table">
72
  <tr>
73
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
74
- <td>
75
  <ul class="siteguard-radios">
76
  <li>
77
  <input type="radio" name="<?php echo $opt_name_enable ?>" id="<?php echo $opt_name_enable.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_enable ? 'checked' : '') ?> >
@@ -81,7 +96,7 @@ class SiteGuard_Menu_Updates_Notify extends SiteGuard_Base {
81
  <label for="<?php echo $opt_name_enable.'_off' ?>"><?php esc_html_e( 'OFF', 'siteguard' ) ?></label>
82
  </li>
83
  </ul>
84
- <?php
85
  $error = $updates_notify->check_requirements( );
86
  if ( is_wp_error( $error ) ) {
87
  echo '<p class="description">';
@@ -89,7 +104,7 @@ class SiteGuard_Menu_Updates_Notify extends SiteGuard_Base {
89
  echo '</p>';
90
  }
91
  ?>
92
- </td>
93
  </tr><tr>
94
  <th scope="row"><?php esc_html_e( 'WordPress updates', 'siteguard' ); ?></th>
95
  <td>
24
  $opt_val_themes = $config->get( $opt_name_themes );
25
  if ( isset( $_POST['update'] ) && check_admin_referer( 'siteguard-menu-updates-notify-submit' ) ) {
26
  $error = false;
27
+ $errors = check_multisite( );
28
+ if ( is_wp_error( $errors ) ) {
29
+ echo '<div class="error settings-error"><p><strong>';
30
+ esc_html_e( $errors->get_error_message( ), 'siteguard' );
31
+ echo '</strong></p></div>';
32
+ $error = true;
33
+ }
34
+ if ( ( false == $error )
35
+ && ( ( false == $this->is_switch_value( $_POST[ $opt_name_enable ] ) )
36
+ || ( false == $this->is_switch_value( $_POST[ $opt_name_wpcore ] ) )
37
+ || ( false == $this->is_notify_value( $_POST[ $opt_name_plugins ] ) )
38
+ || ( false == $this->is_notify_value( $_POST[ $opt_name_themes ] ) ) ) ) {
39
  echo '<div class="error settings-error"><p><strong>';
40
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
41
  echo '</strong></p></div>';
42
  $error = true;
43
  }
44
+ if ( false == $error && '1' == $_POST[ $opt_name_enable ] ) {
45
  $ret = $updates_notify->check_requirements( );
46
  if ( is_wp_error( $ret ) ) {
47
  echo '<div class="error settings-error"><p><strong>' . $ret->get_error_message( ) . '</strong></p></div>';
74
  echo '<div class="wrap">';
75
  echo '<img src="' . SITEGUARD_URL_PATH . 'images/sg_wp_plugin_logo_40.png" alt="SiteGuard Logo" />';
76
  echo '<h2>' . esc_html__( 'Updates Notify', 'siteguard' ) . '</h2>';
77
+ echo '<div class="siteguard-description">'
78
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
79
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/updates_notify_en.html', 'siteguard' )
80
+ . '" target="_blank">'
81
+ . esc_html__( 'here', 'siteguard' )
82
+ . '</a>'
83
+ . esc_html__( '.', 'siteguard' )
84
+ . '</div>';
85
  ?>
86
  <form name="form1" method="post" action="">
87
  <table class="form-table">
88
  <tr>
89
+ <th scope="row" colspan="2">
 
90
  <ul class="siteguard-radios">
91
  <li>
92
  <input type="radio" name="<?php echo $opt_name_enable ?>" id="<?php echo $opt_name_enable.'_on' ?>" value="1" <?php echo ( '1' == $opt_val_enable ? 'checked' : '') ?> >
96
  <label for="<?php echo $opt_name_enable.'_off' ?>"><?php esc_html_e( 'OFF', 'siteguard' ) ?></label>
97
  </li>
98
  </ul>
99
+ <?php
100
  $error = $updates_notify->check_requirements( );
101
  if ( is_wp_error( $error ) ) {
102
  echo '<p class="description">';
104
  echo '</p>';
105
  }
106
  ?>
107
+ </th>
108
  </tr><tr>
109
  <th scope="row"><?php esc_html_e( 'WordPress updates', 'siteguard' ); ?></th>
110
  <td>
admin/siteguard-menu-waf-tuning-support.php CHANGED
@@ -59,7 +59,12 @@ class SiteGuard_Menu_WAF_Tuning_Support extends SiteGuard_Base {
59
  switch ( $update ) {
60
  case 'add':
61
  if ( check_admin_referer( 'siteguard-menu-waf-tuning-support-add' ) ) {
62
- if ( ! isset( $_POST['filename'] ) || ! isset( $_POST['sig'] ) || ! isset( $_POST['comment'] ) ) {
 
 
 
 
 
63
  // error
64
  } else {
65
  $filename = $this->set_filename( stripslashes( $_POST['filename'] ) );
@@ -129,7 +134,11 @@ class SiteGuard_Menu_WAF_Tuning_Support extends SiteGuard_Base {
129
  // error
130
  } else {
131
  $error = false;
132
- if ( '1' == $_POST['waf_exclude_rule_enable'] && false == $this->check_module( 'siteguard' ) ) {
 
 
 
 
133
  echo '<div class="error settings-error"><p><strong>';
134
  esc_html_e( 'To use the WAF exclude rule, WAF ( SiteGuard Lite ) should be installed on Apache.', 'siteguard' );
135
  echo '</strong></p></div>';
@@ -138,7 +147,7 @@ class SiteGuard_Menu_WAF_Tuning_Support extends SiteGuard_Base {
138
  $waf_exclude_rule->feature_off( );
139
  $waf_exclude_rule_enable = '0';
140
  }
141
- if ( false == $this->is_switch_value( $_POST['waf_exclude_rule_enable'] ) ) {
142
  echo '<div class="error settings-error"><p><strong>';
143
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
144
  echo '</strong></p></div>';
@@ -187,12 +196,19 @@ class SiteGuard_Menu_WAF_Tuning_Support extends SiteGuard_Base {
187
  switch ( $action ) {
188
  case 'list':
189
  echo '<h2>' . esc_html__( 'WAF Tuning Support', 'siteguard' ) . ' <a href="?page=siteguard_waf_tuning_support&action=add" class="add-new-h2">' . esc_html__( 'Add New', 'siteguard' ) . '</a></h2>';
 
 
 
 
 
 
 
 
190
  ?>
191
  <form name="form1" method="post" action="">
192
  <table class="form-table">
193
  <tr>
194
- <th scope="row"><?php esc_html_e( 'Enable/Disable', 'siteguard' ) ?></th>
195
- <td>
196
  <ul class="siteguard-radios">
197
  <li>
198
  <input type="radio" name="waf_exclude_rule_enable" id="waf_exclude_rule_enable_on" value="1" <?php echo ( '1' == $waf_exclude_rule_enable ? 'checked' : '' ) ?> >
@@ -203,11 +219,17 @@ class SiteGuard_Menu_WAF_Tuning_Support extends SiteGuard_Base {
203
  </li>
204
  </ul>
205
  <?php
 
 
 
 
 
 
206
  echo '<p class="description">';
207
  esc_html_e( 'To use the WAF Tuning Support, WAF ( SiteGuard Lite ) should be installed on Apache.', 'siteguard' );
208
  echo '</p>';
209
  ?>
210
- </td>
211
  </table>
212
  <?php
213
  $this->wp_list_table->display( );
59
  switch ( $update ) {
60
  case 'add':
61
  if ( check_admin_referer( 'siteguard-menu-waf-tuning-support-add' ) ) {
62
+ $error = false;
63
+ $errors = check_multisite( );
64
+ if ( is_wp_error( $errors ) ) {
65
+ $error = true;
66
+ }
67
+ if ( true == $error || ! isset( $_POST['filename'] ) || ! isset( $_POST['sig'] ) || ! isset( $_POST['comment'] ) ) {
68
  // error
69
  } else {
70
  $filename = $this->set_filename( stripslashes( $_POST['filename'] ) );
134
  // error
135
  } else {
136
  $error = false;
137
+ $errors = check_multisite( );
138
+ if ( is_wp_error( $errors ) ) {
139
+ $error = true;
140
+ }
141
+ if ( false == $error && '1' == $_POST['waf_exclude_rule_enable'] && false == $this->check_module( 'siteguard' ) ) {
142
  echo '<div class="error settings-error"><p><strong>';
143
  esc_html_e( 'To use the WAF exclude rule, WAF ( SiteGuard Lite ) should be installed on Apache.', 'siteguard' );
144
  echo '</strong></p></div>';
147
  $waf_exclude_rule->feature_off( );
148
  $waf_exclude_rule_enable = '0';
149
  }
150
+ if ( false == $error && false == $this->is_switch_value( $_POST['waf_exclude_rule_enable'] ) ) {
151
  echo '<div class="error settings-error"><p><strong>';
152
  esc_html_e( 'ERROR: Invalid input value.', 'siteguard' );
153
  echo '</strong></p></div>';
196
  switch ( $action ) {
197
  case 'list':
198
  echo '<h2>' . esc_html__( 'WAF Tuning Support', 'siteguard' ) . ' <a href="?page=siteguard_waf_tuning_support&action=add" class="add-new-h2">' . esc_html__( 'Add New', 'siteguard' ) . '</a></h2>';
199
+ echo '<div class="siteguard-description">'
200
+ . esc_html__( 'You can find docs about this function on ', 'siteguard' )
201
+ . '<a href="' . esc_html__( 'http://www.jp-secure.com/cont/products/siteguard_wp_plugin/waf_tuning_support_en.html', 'siteguard' )
202
+ . '" target="_blank">'
203
+ . esc_html__( 'here', 'siteguard' )
204
+ . '</a>'
205
+ . esc_html__( '.', 'siteguard' )
206
+ . '</div>';
207
  ?>
208
  <form name="form1" method="post" action="">
209
  <table class="form-table">
210
  <tr>
211
+ <th scope="row" colspan="2">
 
212
  <ul class="siteguard-radios">
213
  <li>
214
  <input type="radio" name="waf_exclude_rule_enable" id="waf_exclude_rule_enable_on" value="1" <?php echo ( '1' == $waf_exclude_rule_enable ? 'checked' : '' ) ?> >
219
  </li>
220
  </ul>
221
  <?php
222
+ $error = check_multisite( );
223
+ if ( is_wp_error( $error ) ) {
224
+ echo '<p class="description">';
225
+ echo $error->get_error_message( );
226
+ echo '</p>';
227
+ }
228
  echo '<p class="description">';
229
  esc_html_e( 'To use the WAF Tuning Support, WAF ( SiteGuard Lite ) should be installed on Apache.', 'siteguard' );
230
  echo '</p>';
231
  ?>
232
+ </th>
233
  </table>
234
  <?php
235
  $this->wp_list_table->display( );
admin/siteguard-waf-exclude-rule-table.php CHANGED
@@ -6,7 +6,7 @@ if ( ! class_exists( 'WP_List_Table' ) ) {
6
 
7
  class SiteGuard_WAF_Exclude_Rule_Table extends WP_List_Table {
8
 
9
- function __construct(){
10
  global $status, $page;
11
 
12
  //Set parent defaults
@@ -85,11 +85,11 @@ class SiteGuard_WAF_Exclude_Rule_Table extends WP_List_Table {
85
  return;
86
  }
87
 
88
- function usort_reorder( $a, $b ){
89
  $orderby = ( ! empty( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : 'sig'; //If no sort, default to filename
90
  $order = ( ! empty( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : 'asc'; //If no order, default to asc
91
  $result = strcmp( $a[ $orderby ], $b[ $orderby ] ); //Determine sort order
92
- return ( $order === 'asc' ) ? $result : -$result; //Send final sort direction to usort
93
  }
94
 
95
  function prepare_items( ) {
@@ -111,8 +111,10 @@ class SiteGuard_WAF_Exclude_Rule_Table extends WP_List_Table {
111
  $current_page = $this->get_pagenum( );
112
 
113
  if ( $total_items > 0 ) {
114
- usort( $data, array( $this, 'usort_reorder' ) );
115
- $data = array_slice( $data, ( ( $current_page - 1 ) * $per_page ), $per_page );
 
 
116
  }
117
 
118
  $this->items = $data;
@@ -120,7 +122,7 @@ class SiteGuard_WAF_Exclude_Rule_Table extends WP_List_Table {
120
  $this->set_pagination_args( array(
121
  'total_items' => $total_items, //WE have to calculate the total number of items
122
  'per_page' => $per_page, //WE have to determine how many items to show on a page
123
- 'total_pages' => ceil( $total_items / $per_page ) //WE have to calculate the total number of pages
124
  ) );
125
  }
126
  }
6
 
7
  class SiteGuard_WAF_Exclude_Rule_Table extends WP_List_Table {
8
 
9
+ function __construct() {
10
  global $status, $page;
11
 
12
  //Set parent defaults
85
  return;
86
  }
87
 
88
+ function usort_reorder( $a, $b ) {
89
  $orderby = ( ! empty( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : 'sig'; //If no sort, default to filename
90
  $order = ( ! empty( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : 'asc'; //If no order, default to asc
91
  $result = strcmp( $a[ $orderby ], $b[ $orderby ] ); //Determine sort order
92
+ return ( 'asc' === $order ) ? $result : -$result; //Send final sort direction to usort
93
  }
94
 
95
  function prepare_items( ) {
111
  $current_page = $this->get_pagenum( );
112
 
113
  if ( $total_items > 0 ) {
114
+ if ( is_array( $data ) ) {
115
+ usort( $data, array( $this, 'usort_reorder' ) );
116
+ $data = array_slice( $data, ( ( $current_page - 1 ) * $per_page ), $per_page );
117
+ }
118
  }
119
 
120
  $this->items = $data;
122
  $this->set_pagination_args( array(
123
  'total_items' => $total_items, //WE have to calculate the total number of items
124
  'per_page' => $per_page, //WE have to determine how many items to show on a page
125
+ 'total_pages' => ceil( $total_items / $per_page ), //WE have to calculate the total number of pages
126
  ) );
127
  }
128
  }
classes/siteguard-base.php CHANGED
@@ -17,6 +17,15 @@ function siteguard_error_dump( $title, $obj ) {
17
  siteguard_error_log( "$title: $msg" );
18
  }
19
 
 
 
 
 
 
 
 
 
 
20
  class SiteGuard_Base {
21
  function __construct() {
22
  }
@@ -27,11 +36,13 @@ class SiteGuard_Base {
27
  return false;
28
  }
29
  function check_module( $name, $default = false ) {
30
- if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) {
31
- return ( strpos( $_SERVER['SERVER_SOFTWARE'], 'Apache' ) !== false || strpos( $_SERVER['SERVER_SOFTWARE'], 'LiteSpeed' ) !== false);
32
- } else {
33
- return $default;
34
- }
 
 
35
 
36
  # It does not work in FastCGI well.
37
  #$module = 'mod_' . $name;
17
  siteguard_error_log( "$title: $msg" );
18
  }
19
 
20
+ function check_multisite( ) {
21
+ if ( ! is_multisite() ) {
22
+ return true;
23
+ }
24
+ $message = esc_html__( 'It does not support the multisite function of WordPress.', 'siteguard' );
25
+ $error = new WP_Error( 'siteguard', $message );
26
+ return $error;
27
+ }
28
+
29
  class SiteGuard_Base {
30
  function __construct() {
31
  }
36
  return false;
37
  }
38
  function check_module( $name, $default = false ) {
39
+ return true;
40
+ # It does not work WP-CLI
41
+ #if ( isset( $_SERVER['SERVER_SOFTWARE'] ) ) {
42
+ # return ( strpos( $_SERVER['SERVER_SOFTWARE'], 'Apache' ) !== false || strpos( $_SERVER['SERVER_SOFTWARE'], 'LiteSpeed' ) !== false);
43
+ #} else {
44
+ # return $default;
45
+ #}
46
 
47
  # It does not work in FastCGI well.
48
  #$module = 'mod_' . $name;
classes/siteguard-captcha.php CHANGED
@@ -43,6 +43,10 @@ class SiteGuard_CAPTCHA extends SiteGuard_Base {
43
  }
44
  }
45
  function check_requirements( ) {
 
 
 
 
46
  $error = $this->check_extensions( );
47
  if ( is_wp_error( $error ) ) {
48
  return $error;
@@ -92,7 +96,7 @@ class SiteGuard_CAPTCHA extends SiteGuard_Base {
92
  $captcha->make_tmp_dir( );
93
  }
94
  $result = wp_remote_get( SITEGUARD_URL_PATH . 'really-simple-captcha/tmp/dummy.png' );
95
- if ( ! is_wp_error( $result ) && $result['response']['code'] === 200 ) {
96
  return true;
97
  }
98
  $message = esc_html__( 'In order to enable this function, it is necessary to specify Limit to AllowOverride in httpd.conf.', 'siteguard' );
@@ -129,7 +133,11 @@ class SiteGuard_CAPTCHA extends SiteGuard_Base {
129
  $config->set( 'captcha_comment', $mode );
130
  $config->set( 'captcha_lostpasswd', $mode );
131
  $config->set( 'captcha_registuser', $mode );
132
- $config->set( 'same_login_error', '1' );
 
 
 
 
133
  $config->update( );
134
  }
135
  function get_captcha( ) {
43
  }
44
  }
45
  function check_requirements( ) {
46
+ $error = check_multisite( );
47
+ if ( is_wp_error( $error ) ) {
48
+ return $error;
49
+ }
50
  $error = $this->check_extensions( );
51
  if ( is_wp_error( $error ) ) {
52
  return $error;
96
  $captcha->make_tmp_dir( );
97
  }
98
  $result = wp_remote_get( SITEGUARD_URL_PATH . 'really-simple-captcha/tmp/dummy.png' );
99
+ if ( ! is_wp_error( $result ) && 200 === $result['response']['code'] ) {
100
  return true;
101
  }
102
  $message = esc_html__( 'In order to enable this function, it is necessary to specify Limit to AllowOverride in httpd.conf.', 'siteguard' );
133
  $config->set( 'captcha_comment', $mode );
134
  $config->set( 'captcha_lostpasswd', $mode );
135
  $config->set( 'captcha_registuser', $mode );
136
+ if ( true === check_multisite( ) ) {
137
+ $config->set( 'same_login_error', '1' );
138
+ } else {
139
+ $config->set( 'same_login_error', '0' );
140
+ }
141
  $config->update( );
142
  }
143
  function get_captcha( ) {
classes/siteguard-disable-pingback.php CHANGED
@@ -10,7 +10,11 @@ class SiteGuard_Disable_Pingback extends SiteGuard_Base {
10
  }
11
  function init( ) {
12
  global $config;
13
- $config->set( 'disable_pingback_enable', '1' );
 
 
 
 
14
  $config->update( );
15
  }
16
  function handler_xmlrpc_methods( $methods ) {
10
  }
11
  function init( ) {
12
  global $config;
13
+ if ( true === check_multisite( ) ) {
14
+ $config->set( 'disable_pingback_enable', '1' );
15
+ } else {
16
+ $config->set( 'disable_pingback_enable', '0' );
17
+ }
18
  $config->update( );
19
  }
20
  function handler_xmlrpc_methods( $methods ) {
classes/siteguard-htaccess.php CHANGED
@@ -35,6 +35,44 @@ class SiteGuard_Htaccess extends SiteGuard_Base {
35
 
36
  return true;
37
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  static function clear_settings( $mark ) {
39
  if ( ! SiteGuard_Htaccess::make_tmp_dir( ) ) {
40
  return false;
35
 
36
  return true;
37
  }
38
+ static function is_exists_setting( $mark ) {
39
+ $result = false;
40
+ if ( '' == $mark ) {
41
+ $mark_start = SiteGuard_Htaccess::$htaccess_mark_start;
42
+ $mark_end = SiteGuard_Htaccess::$htaccess_mark_end;
43
+ } else {
44
+ $mark_start = $mark . '_START';
45
+ $mark_end = $mark . '_END';
46
+ }
47
+ $current_file = SiteGuard_Htaccess::get_htaccess_file( );
48
+ if ( ! file_exists( $current_file ) ) {
49
+ return $result;
50
+ }
51
+ $fr = @fopen( $current_file, 'r' );
52
+ if ( null == $fr ) {
53
+ return $result;
54
+ }
55
+ $line_num = 0;
56
+ $start_line = 0;
57
+ $end_line = 0;
58
+ while ( ! feof( $fr ) ) {
59
+ $line = fgets( $fr, 4096 );
60
+ $line_num++;
61
+ if ( false !== strpos( $line, $mark_start ) ) {
62
+ $start_line = $line_num;
63
+ }
64
+ if ( false !== strpos( $line, $mark_end ) ) {
65
+ $end_line = $line_num;
66
+ if ( $start_line > 0 && ( $end_line - $start_line ) > 1 ) {
67
+ $result = true;
68
+ }
69
+ break;
70
+ }
71
+ }
72
+ @fclose( $fr );
73
+
74
+ return $result;
75
+ }
76
  static function clear_settings( $mark ) {
77
  if ( ! SiteGuard_Htaccess::make_tmp_dir( ) ) {
78
  return false;
classes/siteguard-login-alert.php CHANGED
@@ -9,7 +9,11 @@ class SiteGuard_LoginAlert extends SiteGuard_Base {
9
  }
10
  function init( ) {
11
  global $config;
12
- $config->set( 'loginalert_enable', '1' );
 
 
 
 
13
  $config->set( 'loginalert_admin_only', '1' );
14
  $config->set( 'loginalert_subject', __( 'New login at %SITENAME%', 'siteguard' ) );
15
  $config->set( 'loginalert_body', __( "%USERNAME% logged in at %DATE% %TIME%\n\n== Login information ==\nIP Address: %IPADDRESS%\nReferer: %REFERER%\nUser-Agent: %USERAGENT%\n\n--\nSiteGuard WP Plugin", 'siteguard' ) );
@@ -24,7 +28,7 @@ class SiteGuard_LoginAlert extends SiteGuard_Base {
24
  date( 'H:i:s', current_time( 'timestamp' ) ),
25
  isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : '-',
26
  isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : '-',
27
- isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : '-'
28
  );
29
  return str_replace( $search, $replace, $string );
30
  }
9
  }
10
  function init( ) {
11
  global $config;
12
+ if ( true === check_multisite( ) ) {
13
+ $config->set( 'loginalert_enable', '1' );
14
+ } else {
15
+ $config->set( 'loginalert_enable', '0' );
16
+ }
17
  $config->set( 'loginalert_admin_only', '1' );
18
  $config->set( 'loginalert_subject', __( 'New login at %SITENAME%', 'siteguard' ) );
19
  $config->set( 'loginalert_body', __( "%USERNAME% logged in at %DATE% %TIME%\n\n== Login information ==\nIP Address: %IPADDRESS%\nReferer: %REFERER%\nUser-Agent: %USERAGENT%\n\n--\nSiteGuard WP Plugin", 'siteguard' ) );
28
  date( 'H:i:s', current_time( 'timestamp' ) ),
29
  isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : '-',
30
  isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : '-',
31
+ isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : '-',
32
  );
33
  return str_replace( $search, $replace, $string );
34
  }
classes/siteguard-login-history.php CHANGED
@@ -41,6 +41,9 @@ class SiteGuard_LoginHistory extends SiteGuard_Base {
41
  }
42
  function handler_xmlrpc_call( $method ) {
43
  $current_user = wp_get_current_user( );
 
 
 
44
  $this->add_operation( SITEGUARD_LOGIN_SUCCESS, $current_user->user_login );
45
  }
46
  function is_exist( $user, $operation, $after_sec, $less_sec ) {
@@ -63,7 +66,7 @@ class SiteGuard_LoginHistory extends SiteGuard_Base {
63
  global $current_user;
64
  global $wpdb;
65
 
66
- if ( $user_login != '' ) {
67
  $user = $user_login;
68
  } else {
69
  get_currentuserinfo();
@@ -74,7 +77,7 @@ class SiteGuard_LoginHistory extends SiteGuard_Base {
74
  $wpdb->query( 'START TRANSACTION' );
75
  // delete old event
76
  $id = $wpdb->get_var( "SELECT id FROM $table_name ORDER BY id DESC LIMIT 9999,1;", 0, 0 );
77
- if ( $id != null ) {
78
  $wpdb->query( "DELETE FROM $table_name WHERE id < $id;" );
79
  }
80
  $ip_address = $_SERVER['REMOTE_ADDR'];
@@ -82,7 +85,7 @@ class SiteGuard_LoginHistory extends SiteGuard_Base {
82
  'operation' => $operation,
83
  'login_name' => $user,
84
  'ip_address' => $ip_address,
85
- 'time' => current_time( 'mysql' )
86
  );
87
  $wpdb->insert( $table_name, $data );
88
 
41
  }
42
  function handler_xmlrpc_call( $method ) {
43
  $current_user = wp_get_current_user( );
44
+ if ( '' == $current_user->user_login ) {
45
+ return;
46
+ }
47
  $this->add_operation( SITEGUARD_LOGIN_SUCCESS, $current_user->user_login );
48
  }
49
  function is_exist( $user, $operation, $after_sec, $less_sec ) {
66
  global $current_user;
67
  global $wpdb;
68
 
69
+ if ( '' != $user_login ) {
70
  $user = $user_login;
71
  } else {
72
  get_currentuserinfo();
77
  $wpdb->query( 'START TRANSACTION' );
78
  // delete old event
79
  $id = $wpdb->get_var( "SELECT id FROM $table_name ORDER BY id DESC LIMIT 9999,1;", 0, 0 );
80
+ if ( null != $id ) {
81
  $wpdb->query( "DELETE FROM $table_name WHERE id < $id;" );
82
  }
83
  $ip_address = $_SERVER['REMOTE_ADDR'];
85
  'operation' => $operation,
86
  'login_name' => $user,
87
  'ip_address' => $ip_address,
88
+ 'time' => current_time( 'mysql' ),
89
  );
90
  $wpdb->insert( $table_name, $data );
91
 
classes/siteguard-login-lock.php CHANGED
@@ -14,7 +14,11 @@ class SiteGuard_LoginLock extends SiteGuard_Base {
14
  }
15
  function init( ) {
16
  global $config;
17
- $config->set( 'loginlock_enable', '1' );
 
 
 
 
18
  $config->set( 'loginlock_interval', '5' );
19
  $config->set( 'loginlock_threshold', '3' );
20
  $config->set( 'loginlock_locksec', '60' );
14
  }
15
  function init( ) {
16
  global $config;
17
+ if ( true === check_multisite( ) ) {
18
+ $config->set( 'loginlock_enable', '1' );
19
+ } else {
20
+ $config->set( 'loginlock_enable', '0' );
21
+ }
22
  $config->set( 'loginlock_interval', '5' );
23
  $config->set( 'loginlock_threshold', '3' );
24
  $config->set( 'loginlock_locksec', '60' );
classes/siteguard-rename-login.php CHANGED
@@ -21,7 +21,7 @@ class SiteGuard_RenameLogin extends SiteGuard_Base {
21
  function init( ) {
22
  global $config;
23
  $config->set( 'renamelogin_path', 'login_' . sprintf( '%05d', mt_rand( 1, 99999 ) ) );
24
- if ( $this->check_module( 'rewrite' ) && null == $this->get_active_incompatible_plugin( ) ) {
25
  $config->set( 'renamelogin_enable', '1' );
26
  $config->update( );
27
  $this->feature_on( );
21
  function init( ) {
22
  global $config;
23
  $config->set( 'renamelogin_path', 'login_' . sprintf( '%05d', mt_rand( 1, 99999 ) ) );
24
+ if ( $this->check_module( 'rewrite' ) && null == $this->get_active_incompatible_plugin( ) && true === check_multisite( ) ) {
25
  $config->set( 'renamelogin_enable', '1' );
26
  $config->update( );
27
  $this->feature_on( );
classes/siteguard-updates-notify.php CHANGED
@@ -28,6 +28,10 @@ class SiteGuard_UpdatesNotify extends SiteGuard_Base {
28
  }
29
  }
30
  public function check_requirements( ) {
 
 
 
 
31
  $error = self::check_disable_wp_cron( );
32
  if ( is_wp_error( $error ) ) {
33
  return $error;
@@ -48,7 +52,7 @@ class SiteGuard_UpdatesNotify extends SiteGuard_Base {
48
  }
49
  static function check_wp_cron_access( ) {
50
  $result = wp_remote_post( site_url( '/wp-cron.php' ) );
51
- if ( ! is_wp_error( $result ) && $result['response']['code'] === 200 ) {
52
  return true;
53
  }
54
  $message = esc_html__( 'Please solve the problem that can not be accessed wp-cron.php. Might be access control.', 'siteguard' );
@@ -77,14 +81,12 @@ class SiteGuard_UpdatesNotify extends SiteGuard_Base {
77
  }
78
  if ( '0' != $config->get( 'notify_plugins' ) ) { // are we to check for plugin updates?
79
  $plugins_updated = self::plugins_update_check( $message, $config->get( 'notify_plugins' ) ); // check for plugin updates
80
- }
81
- else {
82
  $plugins_updated = false; // no plugin updates
83
  }
84
  if ( '0' != $config->get( 'notify_themes' ) ) { // are we to check for theme updates?
85
  $themes_updated = self::themes_update_check( $message, $config->get( 'notify_themes' ) ); // check for theme updates
86
- }
87
- else {
88
  $themes_updated = false; // no theme updates
89
  }
90
  if ( $core_updated || $plugins_updated || $themes_updated ) { // Did anything come back as need updating?
@@ -111,8 +113,7 @@ class SiteGuard_UpdatesNotify extends SiteGuard_Base {
111
  $config->set( 'notified', $notified );
112
  $config->update( );
113
  return true; // we have updates so return true
114
- }
115
- else {
116
  return false; // There are updates but we have already notified in the past.
117
  }
118
  }
@@ -146,23 +147,20 @@ class SiteGuard_UpdatesNotify extends SiteGuard_Base {
146
  $message .= "\t" . sprintf( esc_html__( 'Changelog: %s%s', 'siteguard' ), $data->url, 'changelog/' ) . "\n";
147
  if ( isset( $info->tested ) && version_compare( $info->tested, $wp_version, '>=' ) ) {
148
  $compat = sprintf( esc_html__( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $cur_wp_version );
149
- }
150
- elseif ( isset( $info->compatibility[$wp_version][$data->new_version] ) ) {
151
- $compat = $info->compatibility[$wp_version][$data->new_version];
152
  $compat = sprintf( esc_html__( 'Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)' ), $wp_version, $compat[0], $compat[2], $compat[1] );
153
- }
154
- else {
155
  $compat = sprintf( esc_html__( 'Compatibility with WordPress %1$s: Unknown' ), $wp_version );
156
  }
157
  $message .= "\t" . sprintf( esc_html__( 'Compatibility: %s', 'siteguard' ), $compat ) . "\n";
158
- $notified['plugin'][$key] = $data->new_version; // set plugin version we are notifying about
159
  }
160
  $config->set( 'notified', $notified );
161
  $config->update( );
162
  return true; // we have plugin updates return true
163
  }
164
- }
165
- else {
166
  if ( 0 != count( $notified['plugin'] ) ) { // is there any plugin notifications?
167
  $notified['plugin'] = array(); // set plugin notifications to empty as all plugins up-to-date
168
  $config->set( 'notified', $notified );
@@ -188,14 +186,13 @@ class SiteGuard_UpdatesNotify extends SiteGuard_Base {
188
  foreach ( $themes_need_update as $key => $data ) { // loop through the themes that need updating
189
  $theme_info = wp_get_theme( $key ); // get theme info
190
  $message .= "\n" . sprintf( esc_html__( 'Theme: %s is out of date. Please update from version %s to %s', 'siteguard' ), $theme_info['Name'], $theme_info['Version'], $data['new_version'] ) . "\n";
191
- $notified['theme'][$key] = $data['new_version']; // set theme version we are notifying about
192
  }
193
  $config->set( 'notified', $notified );
194
  $config->update( );
195
  return true; // we have theme updates return true
196
  }
197
- }
198
- else {
199
  if ( 0 != count( $notified['theme'] ) ) { // is there any theme notifications?
200
  $notified['theme'] = array(); // set theme notifications to empty as all themes up-to-date
201
  $config->set( 'notified', $notified );
@@ -209,10 +206,10 @@ class SiteGuard_UpdatesNotify extends SiteGuard_Base {
209
  global $config;
210
  $notified = $config->get( 'notified' );
211
  if ( is_array( $plugins_need_update ) ) {
212
- foreach ( $plugins_need_update as $key => $data ) { // loop through plugins that need update
213
- if ( isset( $notified['plugin'][$key] ) ) { // has this plugin been notified before?
214
- if ( $data->new_version == $notified['plugin'][$key] ) { // does this plugin version match that of the one that's been notified?
215
- unset( $plugins_need_update[$key] ); // don't notify this plugin as has already been notified
216
  }
217
  }
218
  }
@@ -224,10 +221,10 @@ class SiteGuard_UpdatesNotify extends SiteGuard_Base {
224
  global $config;
225
  $notified = $config->get( 'notified' );
226
  if ( is_array( $themes_need_update ) ) {
227
- foreach ( $themes_need_update as $key => $data ) { // loop through themes that need update
228
- if ( isset( $notified['theme'][$key] ) ) { // has this theme been notified before?
229
- if ( $data['new_version'] == $notified['theme'][$key] ) { // does this theme version match that of the one that's been notified?
230
- unset( $themes_need_update[$key] ); // don't notify this theme as has already been notified
231
  }
232
  }
233
  }
28
  }
29
  }
30
  public function check_requirements( ) {
31
+ $error = check_multisite( );
32
+ if ( is_wp_error( $error ) ) {
33
+ return $error;
34
+ }
35
  $error = self::check_disable_wp_cron( );
36
  if ( is_wp_error( $error ) ) {
37
  return $error;
52
  }
53
  static function check_wp_cron_access( ) {
54
  $result = wp_remote_post( site_url( '/wp-cron.php' ) );
55
+ if ( ! is_wp_error( $result ) && 200 === $result['response']['code'] ) {
56
  return true;
57
  }
58
  $message = esc_html__( 'Please solve the problem that can not be accessed wp-cron.php. Might be access control.', 'siteguard' );
81
  }
82
  if ( '0' != $config->get( 'notify_plugins' ) ) { // are we to check for plugin updates?
83
  $plugins_updated = self::plugins_update_check( $message, $config->get( 'notify_plugins' ) ); // check for plugin updates
84
+ } else {
 
85
  $plugins_updated = false; // no plugin updates
86
  }
87
  if ( '0' != $config->get( 'notify_themes' ) ) { // are we to check for theme updates?
88
  $themes_updated = self::themes_update_check( $message, $config->get( 'notify_themes' ) ); // check for theme updates
89
+ } else {
 
90
  $themes_updated = false; // no theme updates
91
  }
92
  if ( $core_updated || $plugins_updated || $themes_updated ) { // Did anything come back as need updating?
113
  $config->set( 'notified', $notified );
114
  $config->update( );
115
  return true; // we have updates so return true
116
+ } else {
 
117
  return false; // There are updates but we have already notified in the past.
118
  }
119
  }
147
  $message .= "\t" . sprintf( esc_html__( 'Changelog: %s%s', 'siteguard' ), $data->url, 'changelog/' ) . "\n";
148
  if ( isset( $info->tested ) && version_compare( $info->tested, $wp_version, '>=' ) ) {
149
  $compat = sprintf( esc_html__( 'Compatibility with WordPress %1$s: 100%% (according to its author)' ), $cur_wp_version );
150
+ } elseif ( isset( $info->compatibility[ $wp_version ][ $data->new_version ] ) ) {
151
+ $compat = $info->compatibility[ $wp_version ][ $data->new_version ];
 
152
  $compat = sprintf( esc_html__( 'Compatibility with WordPress %1$s: %2$d%% (%3$d "works" votes out of %4$d total)' ), $wp_version, $compat[0], $compat[2], $compat[1] );
153
+ } else {
 
154
  $compat = sprintf( esc_html__( 'Compatibility with WordPress %1$s: Unknown' ), $wp_version );
155
  }
156
  $message .= "\t" . sprintf( esc_html__( 'Compatibility: %s', 'siteguard' ), $compat ) . "\n";
157
+ $notified['plugin'][ $key ] = $data->new_version; // set plugin version we are notifying about
158
  }
159
  $config->set( 'notified', $notified );
160
  $config->update( );
161
  return true; // we have plugin updates return true
162
  }
163
+ } else {
 
164
  if ( 0 != count( $notified['plugin'] ) ) { // is there any plugin notifications?
165
  $notified['plugin'] = array(); // set plugin notifications to empty as all plugins up-to-date
166
  $config->set( 'notified', $notified );
186
  foreach ( $themes_need_update as $key => $data ) { // loop through the themes that need updating
187
  $theme_info = wp_get_theme( $key ); // get theme info
188
  $message .= "\n" . sprintf( esc_html__( 'Theme: %s is out of date. Please update from version %s to %s', 'siteguard' ), $theme_info['Name'], $theme_info['Version'], $data['new_version'] ) . "\n";
189
+ $notified['theme'][ $key ] = $data['new_version']; // set theme version we are notifying about
190
  }
191
  $config->set( 'notified', $notified );
192
  $config->update( );
193
  return true; // we have theme updates return true
194
  }
195
+ } else {
 
196
  if ( 0 != count( $notified['theme'] ) ) { // is there any theme notifications?
197
  $notified['theme'] = array(); // set theme notifications to empty as all themes up-to-date
198
  $config->set( 'notified', $notified );
206
  global $config;
207
  $notified = $config->get( 'notified' );
208
  if ( is_array( $plugins_need_update ) ) {
209
+ foreach ( $plugins_need_update as $key => $data ) { // loop through plugins that need update
210
+ if ( isset( $notified['plugin'][ $key ] ) ) { // has this plugin been notified before?
211
+ if ( $data->new_version == $notified['plugin'][ $key ] ) { // does this plugin version match that of the one that's been notified?
212
+ unset( $plugins_need_update[ $key ] ); // don't notify this plugin as has already been notified
213
  }
214
  }
215
  }
221
  global $config;
222
  $notified = $config->get( 'notified' );
223
  if ( is_array( $themes_need_update ) ) {
224
+ foreach ( $themes_need_update as $key => $data ) { // loop through themes that need update
225
+ if ( isset( $notified['theme'][ $key ] ) ) { // has this theme been notified before?
226
+ if ( $data['new_version'] == $notified['theme'][ $key ] ) { // does this theme version match that of the one that's been notified?
227
+ unset( $themes_need_update[ $key ] ); // don't notify this theme as has already been notified
228
  }
229
  }
230
  }
images/sg_logo_3037x414.jpg DELETED
Binary file
languages/siteguard-ja.mo CHANGED
Binary file
languages/siteguard-ja.po CHANGED
@@ -138,6 +138,11 @@ msgid ""
138
  msgstr ""
139
  "ドキュメント、FAQ、その他の情報は "
140
 
 
 
 
 
 
141
  #: admin/siteguard-menu-dashboard.php:27
142
  msgid "."
143
  msgstr " にあります。"
@@ -736,11 +741,46 @@ msgid ""
736
  msgstr ""
737
  "wp-cron.phpにアクセスできない問題を解決してください。アクセス制御が関係している可能性があります。"
738
 
 
 
 
 
 
739
  #. Plugin URI of the plugin/theme
740
  #: admin/siteguard-menu-dashboard.php
741
  msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/index_en.html"
742
  msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/index.html"
743
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
744
  #. Description of the plugin/theme
745
  msgid ""
746
  "Only installing SiteGuard WP Plugin on WordPress, its security can be improved. "
138
  msgstr ""
139
  "ドキュメント、FAQ、その他の情報は "
140
 
141
+ msgid ""
142
+ "You can find docs about this function on "
143
+ msgstr ""
144
+ "この機能の操作説明は "
145
+
146
  #: admin/siteguard-menu-dashboard.php:27
147
  msgid "."
148
  msgstr " にあります。"
741
  msgstr ""
742
  "wp-cron.phpにアクセスできない問題を解決してください。アクセス制御が関係している可能性があります。"
743
 
744
+ msgid ""
745
+ "It does not support the multisite function of WordPress."
746
+ msgstr ""
747
+ "WordPressのマルチサイト機能には、対応していません。"
748
+
749
  #. Plugin URI of the plugin/theme
750
  #: admin/siteguard-menu-dashboard.php
751
  msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/index_en.html"
752
  msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/index.html"
753
 
754
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/admin_filter_en.html"
755
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/admin_filter.html"
756
+
757
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/rename_login_en.html"
758
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/rename_login.html"
759
+
760
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/captcha_en.html"
761
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/captcha.html"
762
+
763
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/same_error_en.html"
764
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/same_error.html"
765
+
766
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/login_lock_en.html"
767
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/login_lock.html"
768
+
769
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/login_alert_en.html"
770
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/login_alert.html"
771
+
772
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/fail_once_en.html"
773
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/fail_once.html"
774
+
775
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/pingback_en.html"
776
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/pingback.html"
777
+
778
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/updates_notify_en.html"
779
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/updates_notify.html"
780
+
781
+ msgid "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/waf_tuning_support_en.html"
782
+ msgstr "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/waf_tuning_support.html"
783
+
784
  #. Description of the plugin/theme
785
  msgid ""
786
  "Only installing SiteGuard WP Plugin on WordPress, its security can be improved. "
languages/siteguard.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the SiteGuard WP Plugin package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: SiteGuard WP Plugin 1.2.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/siteguard\n"
7
- "POT-Creation-Date: 2015-01-23 07:41:14+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -28,96 +28,128 @@ msgstr ""
28
  msgid "IP Address"
29
  msgstr ""
30
 
31
- #: admin/siteguard-menu-admin-filter.php:32
32
- #: admin/siteguard-menu-admin-filter.php:86
33
- #: admin/siteguard-menu-rename-login.php:19
34
- #: admin/siteguard-menu-rename-login.php:99
35
  msgid "To use this function, “mod_rewrite” should be loaded on Apache."
36
  msgstr ""
37
 
38
- #: admin/siteguard-menu-admin-filter.php:42
39
- #: admin/siteguard-menu-captcha.php:44
40
- #: admin/siteguard-menu-disable-pingback.php:16
41
- #: admin/siteguard-menu-fail-once.php:19
42
- #: admin/siteguard-menu-login-alert.php:23
43
- #: admin/siteguard-menu-login-lock.php:44
44
- #: admin/siteguard-menu-rename-login.php:29
45
- #: admin/siteguard-menu-same-error.php:26
46
- #: admin/siteguard-menu-updates-notify.php:32
47
- #: admin/siteguard-menu-waf-tuning-support.php:143
48
  #: classes/siteguard-waf-exclude-rule.php:48
49
  #: classes/siteguard-waf-exclude-rule.php:141
50
  #: classes/siteguard-waf-exclude-rule.php:147
51
  msgid "ERROR: Invalid input value."
52
  msgstr ""
53
 
54
- #: admin/siteguard-menu-admin-filter.php:60
55
- #: admin/siteguard-menu-captcha.php:61
56
- #: admin/siteguard-menu-disable-pingback.php:25
57
- #: admin/siteguard-menu-fail-once.php:34
58
- #: admin/siteguard-menu-login-alert.php:42
59
- #: admin/siteguard-menu-login-lock.php:59
60
- #: admin/siteguard-menu-rename-login.php:74
61
- #: admin/siteguard-menu-same-error.php:35
62
- #: admin/siteguard-menu-updates-notify.php:61
63
  msgid "Options saved."
64
  msgstr ""
65
 
66
- #: admin/siteguard-menu-admin-filter.php:67
67
  #: admin/siteguard-menu-dashboard.php:37 admin/siteguard-menu-init.php:16
68
  msgid "Admin Page IP Filter"
69
  msgstr ""
70
 
71
- #: admin/siteguard-menu-admin-filter.php:72
72
- #: admin/siteguard-menu-captcha.php:73
73
- #: admin/siteguard-menu-disable-pingback.php:38
74
- #: admin/siteguard-menu-fail-once.php:46
75
- #: admin/siteguard-menu-login-alert.php:54
76
- #: admin/siteguard-menu-login-lock.php:71
77
- #: admin/siteguard-menu-rename-login.php:86
78
- #: admin/siteguard-menu-same-error.php:47
79
- #: admin/siteguard-menu-updates-notify.php:73
80
- #: admin/siteguard-menu-waf-tuning-support.php:194
81
- msgid "Enable/Disable"
82
- msgstr ""
83
-
84
- #: admin/siteguard-menu-admin-filter.php:77
85
  #: admin/siteguard-menu-captcha.php:78
86
- #: admin/siteguard-menu-disable-pingback.php:43
87
- #: admin/siteguard-menu-fail-once.php:51
88
- #: admin/siteguard-menu-login-alert.php:59
89
  #: admin/siteguard-menu-login-lock.php:76
90
- #: admin/siteguard-menu-rename-login.php:91
91
- #: admin/siteguard-menu-same-error.php:52
92
  #: admin/siteguard-menu-updates-notify.php:78
93
- #: admin/siteguard-menu-waf-tuning-support.php:199
94
- msgid "ON"
95
  msgstr ""
96
 
97
- #: admin/siteguard-menu-admin-filter.php:81
 
 
 
 
 
 
98
  #: admin/siteguard-menu-captcha.php:81
99
- #: admin/siteguard-menu-disable-pingback.php:46
100
- #: admin/siteguard-menu-fail-once.php:54
101
- #: admin/siteguard-menu-login-alert.php:62
102
  #: admin/siteguard-menu-login-lock.php:79
103
- #: admin/siteguard-menu-rename-login.php:94
104
- #: admin/siteguard-menu-same-error.php:55
105
  #: admin/siteguard-menu-updates-notify.php:81
106
- #: admin/siteguard-menu-waf-tuning-support.php:202
107
- msgid "OFF"
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  msgstr ""
109
 
110
  #: admin/siteguard-menu-admin-filter.php:91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  msgid "Exclude Path"
112
  msgstr ""
113
 
114
- #: admin/siteguard-menu-admin-filter.php:93
115
  msgid ""
116
  "The path of /wp-admin/ henceforth is specified. To specify more than one, "
117
  "separate them with new line. "
118
  msgstr ""
119
 
120
- #: admin/siteguard-menu-admin-filter.php:98
121
  msgid ""
122
  "It is the function for the protection against the attack to the management "
123
  "page (under /wp-admin/.) To the access from the connection source IP address "
@@ -128,46 +160,51 @@ msgid ""
128
  "where this function is excluded can be specified."
129
  msgstr ""
130
 
131
- #: admin/siteguard-menu-captcha.php:68 admin/siteguard-menu-dashboard.php:47
132
  #: admin/siteguard-menu-init.php:18
133
  msgid "CAPTCHA"
134
  msgstr ""
135
 
136
- #: admin/siteguard-menu-captcha.php:94
 
 
 
 
 
137
  msgid "Login page"
138
  msgstr ""
139
 
140
- #: admin/siteguard-menu-captcha.php:97 admin/siteguard-menu-captcha.php:109
141
- #: admin/siteguard-menu-captcha.php:121 admin/siteguard-menu-captcha.php:133
142
  msgid "Hiragana (Japanese)"
143
  msgstr ""
144
 
145
- #: admin/siteguard-menu-captcha.php:100 admin/siteguard-menu-captcha.php:112
146
- #: admin/siteguard-menu-captcha.php:124 admin/siteguard-menu-captcha.php:136
147
  msgid "Alphanumeric"
148
  msgstr ""
149
 
150
- #: admin/siteguard-menu-captcha.php:103 admin/siteguard-menu-captcha.php:115
151
- #: admin/siteguard-menu-captcha.php:127 admin/siteguard-menu-captcha.php:139
152
- #: admin/siteguard-menu-updates-notify.php:97
153
- #: admin/siteguard-menu-updates-notify.php:106
154
- #: admin/siteguard-menu-updates-notify.php:118
155
  msgid "Disable"
156
  msgstr ""
157
 
158
- #: admin/siteguard-menu-captcha.php:106
159
  msgid "Comment page"
160
  msgstr ""
161
 
162
- #: admin/siteguard-menu-captcha.php:118
163
  msgid "Lost password page"
164
  msgstr ""
165
 
166
- #: admin/siteguard-menu-captcha.php:130
167
  msgid "Registration user page"
168
  msgstr ""
169
 
170
- #: admin/siteguard-menu-captcha.php:144
171
  msgid ""
172
  "It is the function to decrease the vulnerability against an illegal login "
173
  "attempt attack such as a brute force attack or a password list attack, or to "
@@ -185,7 +222,7 @@ msgid ""
185
  "Plugin on "
186
  msgstr ""
187
 
188
- #. #-#-#-#-# siteguard.pot (SiteGuard WP Plugin 1.2.0) #-#-#-#-#
189
  #. Plugin URI of the plugin/theme
190
  #: admin/siteguard-menu-dashboard.php:30
191
  msgid ""
@@ -196,10 +233,6 @@ msgstr ""
196
  msgid "SiteGuard WP Plugin Page"
197
  msgstr ""
198
 
199
- #: admin/siteguard-menu-dashboard.php:30
200
- msgid "."
201
- msgstr ""
202
-
203
  #: admin/siteguard-menu-dashboard.php:31
204
  msgid "Setting status"
205
  msgstr ""
@@ -211,7 +244,7 @@ msgid ""
211
  msgstr ""
212
 
213
  #: admin/siteguard-menu-dashboard.php:42 admin/siteguard-menu-init.php:17
214
- #: admin/siteguard-menu-rename-login.php:81
215
  msgid "Rename Login"
216
  msgstr ""
217
 
@@ -224,7 +257,7 @@ msgid "CAPTCHA is added to the login page or comment post."
224
  msgstr ""
225
 
226
  #: admin/siteguard-menu-dashboard.php:52 admin/siteguard-menu-init.php:19
227
- #: admin/siteguard-menu-same-error.php:42
228
  msgid "Same Login Error Message"
229
  msgstr ""
230
 
@@ -235,7 +268,7 @@ msgid ""
235
  msgstr ""
236
 
237
  #: admin/siteguard-menu-dashboard.php:57 admin/siteguard-menu-init.php:20
238
- #: admin/siteguard-menu-login-lock.php:66
239
  msgid "Login Lock"
240
  msgstr ""
241
 
@@ -246,7 +279,7 @@ msgid ""
246
  msgstr ""
247
 
248
  #: admin/siteguard-menu-dashboard.php:62 admin/siteguard-menu-init.php:21
249
- #: admin/siteguard-menu-login-alert.php:49
250
  msgid "Login Alert"
251
  msgstr ""
252
 
@@ -254,8 +287,8 @@ msgstr ""
254
  msgid "E-mail notifies that there was login."
255
  msgstr ""
256
 
257
- #: admin/siteguard-menu-dashboard.php:67 admin/siteguard-menu-fail-once.php:41
258
- #: admin/siteguard-menu-init.php:22 classes/siteguard-login-history.php:100
259
  msgid "Fail once"
260
  msgstr ""
261
 
@@ -264,7 +297,7 @@ msgid "The first login must fail even if the input is correct."
264
  msgstr ""
265
 
266
  #: admin/siteguard-menu-dashboard.php:72
267
- #: admin/siteguard-menu-disable-pingback.php:32
268
  #: admin/siteguard-menu-init.php:23
269
  msgid "Disable Pingback"
270
  msgstr ""
@@ -274,7 +307,7 @@ msgid "The abuse of pingback is prevented."
274
  msgstr ""
275
 
276
  #: admin/siteguard-menu-dashboard.php:77 admin/siteguard-menu-init.php:24
277
- #: admin/siteguard-menu-updates-notify.php:68
278
  msgid "Updates Notify"
279
  msgstr ""
280
 
@@ -285,7 +318,7 @@ msgid ""
285
  msgstr ""
286
 
287
  #: admin/siteguard-menu-dashboard.php:82 admin/siteguard-menu-init.php:25
288
- #: admin/siteguard-menu-waf-tuning-support.php:189
289
  msgid "WAF Tuning Support"
290
  msgstr ""
291
 
@@ -297,20 +330,30 @@ msgstr ""
297
  msgid "Login history"
298
  msgstr ""
299
 
300
- #: admin/siteguard-menu-disable-pingback.php:54
 
 
 
 
 
301
  msgid "The pingback function is disabled and its abuse is prevented."
302
  msgstr ""
303
 
304
- #: admin/siteguard-menu-fail-once.php:60
 
 
 
 
 
305
  msgid "Target user"
306
  msgstr ""
307
 
308
- #: admin/siteguard-menu-fail-once.php:63
309
- #: admin/siteguard-menu-login-alert.php:80
310
  msgid "Admin only"
311
  msgstr ""
312
 
313
- #: admin/siteguard-menu-fail-once.php:69
314
  msgid ""
315
  "It is the function to decrease the vulnerability against a password list "
316
  "attack. Even is the login input is correct, the first login must fail. After "
@@ -323,19 +366,25 @@ msgstr ""
323
  msgid "SiteGuard"
324
  msgstr ""
325
 
326
- #: admin/siteguard-menu-login-alert.php:67
 
 
 
 
 
 
327
  msgid "Subject"
328
  msgstr ""
329
 
330
- #: admin/siteguard-menu-login-alert.php:72
331
  msgid "Body"
332
  msgstr ""
333
 
334
- #: admin/siteguard-menu-login-alert.php:77
335
  msgid "Recipients"
336
  msgstr ""
337
 
338
- #: admin/siteguard-menu-login-alert.php:86
339
  msgid ""
340
  "It is the function to make it easier to notice unauthorized login. E-mail "
341
  "will be sent to a login user when logged in. If you receive an e-mail to "
@@ -346,52 +395,57 @@ msgid ""
346
  "notified."
347
  msgstr ""
348
 
349
- #: admin/siteguard-menu-login-lock.php:84
 
 
 
 
 
350
  msgid "Interval"
351
  msgstr ""
352
 
353
- #: admin/siteguard-menu-login-lock.php:87
354
  msgid "1 second"
355
  msgstr ""
356
 
357
- #: admin/siteguard-menu-login-lock.php:90
358
  msgid "5 seconds"
359
  msgstr ""
360
 
361
- #: admin/siteguard-menu-login-lock.php:93
362
- #: admin/siteguard-menu-login-lock.php:111
363
  msgid "30 seconds"
364
  msgstr ""
365
 
366
- #: admin/siteguard-menu-login-lock.php:96
367
  msgid "Threshold"
368
  msgstr ""
369
 
370
- #: admin/siteguard-menu-login-lock.php:99
371
  msgid "3 times"
372
  msgstr ""
373
 
374
- #: admin/siteguard-menu-login-lock.php:102
375
  msgid "10 times"
376
  msgstr ""
377
 
378
- #: admin/siteguard-menu-login-lock.php:105
379
  msgid "100 times"
380
  msgstr ""
381
 
382
- #: admin/siteguard-menu-login-lock.php:108
383
  msgid "Lock Time"
384
  msgstr ""
385
 
386
- #: admin/siteguard-menu-login-lock.php:114
387
  msgid "1 minute"
388
  msgstr ""
389
 
390
- #: admin/siteguard-menu-login-lock.php:117
391
  msgid "5 minutes"
392
  msgstr ""
393
 
394
- #: admin/siteguard-menu-login-lock.php:122
395
  msgid ""
396
  "It is the function to decrease the vulnerability against an illegal login "
397
  "attempt attack such as a brute force attack or a password list attack. "
@@ -401,33 +455,39 @@ msgid ""
401
  "specified time. Each user account is not locked."
402
  msgstr ""
403
 
404
- #: admin/siteguard-menu-rename-login.php:37
405
  msgid "This function and Plugin \""
406
  msgstr ""
407
 
408
- #: admin/siteguard-menu-rename-login.php:37
409
  msgid "\" cannot be used at the same time."
410
  msgstr ""
411
 
412
- #: admin/siteguard-menu-rename-login.php:49
413
  msgid ""
414
  "It is only an alphanumeric character, a hyphen, and an underbar that can be "
415
  "used for New Login Path."
416
  msgstr ""
417
 
418
- #: admin/siteguard-menu-rename-login.php:56
419
  msgid " can not be used for New Login Path."
420
  msgstr ""
421
 
422
- #: admin/siteguard-menu-rename-login.php:104
 
 
 
 
 
 
423
  msgid "New Login Path"
424
  msgstr ""
425
 
426
- #: admin/siteguard-menu-rename-login.php:109
427
  msgid "An alphanumeric character, a hyphen, and an underbar can be used."
428
  msgstr ""
429
 
430
- #: admin/siteguard-menu-rename-login.php:117
431
  msgid ""
432
  "It is the function to decrease the vulnerability against an illegal login "
433
  "attempt attack such as a brute force attack or a password list attack. The "
@@ -435,7 +495,12 @@ msgid ""
435
  "random digits&gt;” but it can be changed to a favorite name."
436
  msgstr ""
437
 
438
- #: admin/siteguard-menu-same-error.php:63
 
 
 
 
 
439
  msgid ""
440
  "It is the function to decrease the vulnerability against the attack to "
441
  "examine if a user name exists. All error messages about the login should be "
@@ -443,82 +508,94 @@ msgid ""
443
  "username, password, or CAPTCHA is wrong."
444
  msgstr ""
445
 
446
- #: admin/siteguard-menu-updates-notify.php:94
 
 
 
 
 
 
447
  msgid "WordPress updates"
448
  msgstr ""
449
 
450
- #: admin/siteguard-menu-updates-notify.php:100
451
  msgid "Enable"
452
  msgstr ""
453
 
454
- #: admin/siteguard-menu-updates-notify.php:103
455
  msgid "Plugins updates"
456
  msgstr ""
457
 
458
- #: admin/siteguard-menu-updates-notify.php:109
459
  msgid "All plugins"
460
  msgstr ""
461
 
462
- #: admin/siteguard-menu-updates-notify.php:112
463
  msgid "Active plugins only"
464
  msgstr ""
465
 
466
- #: admin/siteguard-menu-updates-notify.php:115
467
  msgid "Themes updates"
468
  msgstr ""
469
 
470
- #: admin/siteguard-menu-updates-notify.php:121
471
  msgid "All themes"
472
  msgstr ""
473
 
474
- #: admin/siteguard-menu-updates-notify.php:124
475
  msgid "Active themes only"
476
  msgstr ""
477
 
478
- #: admin/siteguard-menu-updates-notify.php:129
479
  msgid ""
480
  "Basic of security is that always you use the latest version. If WordPress "
481
  "core, plugins, and themes updates are needed , sends email to notify "
482
  "administrators. Check for updates will be run every 24 hours."
483
  msgstr ""
484
 
485
- #: admin/siteguard-menu-waf-tuning-support.php:74
486
  msgid "New rule created"
487
  msgstr ""
488
 
489
- #: admin/siteguard-menu-waf-tuning-support.php:98
490
  msgid "Rule updated"
491
  msgstr ""
492
 
493
- #: admin/siteguard-menu-waf-tuning-support.php:117
494
  msgid "Rule deleted"
495
  msgstr ""
496
 
497
- #: admin/siteguard-menu-waf-tuning-support.php:134
498
  msgid ""
499
  "To use the WAF exclude rule, WAF ( SiteGuard Lite ) should be installed on "
500
  "Apache."
501
  msgstr ""
502
 
503
- #: admin/siteguard-menu-waf-tuning-support.php:152
504
  msgid "Rules applied"
505
  msgstr ""
506
 
507
- #: admin/siteguard-menu-waf-tuning-support.php:155
508
  msgid "Rules unapplied"
509
  msgstr ""
510
 
511
- #: admin/siteguard-menu-waf-tuning-support.php:189
512
  msgid "Add New"
513
  msgstr ""
514
 
515
- #: admin/siteguard-menu-waf-tuning-support.php:207
 
 
 
 
 
 
516
  msgid ""
517
  "To use the WAF Tuning Support, WAF ( SiteGuard Lite ) should be installed on "
518
  "Apache."
519
  msgstr ""
520
 
521
- #: admin/siteguard-menu-waf-tuning-support.php:216
522
  msgid ""
523
  "It is the function to create the rule to avoid the false detection in "
524
  "WordPress (including 403 error occurrence with normal access,) if WAF "
@@ -530,73 +607,73 @@ msgid ""
530
  "activated while the false detection for the specified function is prevented."
531
  msgstr ""
532
 
533
- #: admin/siteguard-menu-waf-tuning-support.php:223
534
  msgid "Apply rules"
535
  msgstr ""
536
 
537
- #: admin/siteguard-menu-waf-tuning-support.php:231
538
  msgid "WAF Exclude Rule Add"
539
  msgstr ""
540
 
541
- #: admin/siteguard-menu-waf-tuning-support.php:233
542
  msgid "WAF Exclude Rule Edit"
543
  msgstr ""
544
 
545
- #: admin/siteguard-menu-waf-tuning-support.php:239
546
- #: admin/siteguard-menu-waf-tuning-support.php:284
547
  #: admin/siteguard-waf-exclude-rule-table.php:59
548
  msgid "Signature"
549
  msgstr ""
550
 
551
- #: admin/siteguard-menu-waf-tuning-support.php:242
552
  msgid ""
553
  "The detected signature name or signature ID is specified. To specify more "
554
  "than one, separate them with new line."
555
  msgstr ""
556
 
557
- #: admin/siteguard-menu-waf-tuning-support.php:246
558
  msgid "Filename (optional)"
559
  msgstr ""
560
 
561
- #: admin/siteguard-menu-waf-tuning-support.php:249
562
  msgid ""
563
  "The target file name is specified. URL ( the part before ? ) can also be "
564
  "pasted."
565
  msgstr ""
566
 
567
- #: admin/siteguard-menu-waf-tuning-support.php:253
568
  msgid "Comment (optional)"
569
  msgstr ""
570
 
571
- #: admin/siteguard-menu-waf-tuning-support.php:265
572
  msgid "Save"
573
  msgstr ""
574
 
575
- #: admin/siteguard-menu-waf-tuning-support.php:275
576
  msgid "WAF Exclude Rule Delete"
577
  msgstr ""
578
 
579
- #: admin/siteguard-menu-waf-tuning-support.php:279
580
  msgid "You have specified this rule for deletion:"
581
  msgid_plural "You have specified these rules for deletion:"
582
  msgstr[0] ""
583
  msgstr[1] ""
584
 
585
- #: admin/siteguard-menu-waf-tuning-support.php:284
586
  #: admin/siteguard-waf-exclude-rule-table.php:60
587
  msgid "Filename"
588
  msgstr ""
589
 
590
- #: admin/siteguard-menu-waf-tuning-support.php:284
591
  #: admin/siteguard-waf-exclude-rule-table.php:61
592
  msgid "Comment"
593
  msgstr ""
594
 
595
- #: admin/siteguard-menu-waf-tuning-support.php:290
596
  msgid "Confirm Deletion"
597
  msgstr ""
598
 
599
- #: admin/siteguard-menu-waf-tuning-support.php:292
600
  msgid "There are no rules selected for deletion."
601
  msgstr ""
602
 
@@ -609,47 +686,51 @@ msgstr ""
609
  msgid "Delete"
610
  msgstr ""
611
 
612
- #: classes/siteguard-captcha.php:71
 
 
 
 
613
  msgid ""
614
  "In order to enable this function, it is necessary to install expanded modules"
615
  msgstr ""
616
 
617
- #: classes/siteguard-captcha.php:82
618
  msgid "in the server."
619
  msgstr ""
620
 
621
- #: classes/siteguard-captcha.php:98
622
  msgid ""
623
  "In order to enable this function, it is necessary to specify Limit to "
624
  "AllowOverride in httpd.conf."
625
  msgstr ""
626
 
627
- #: classes/siteguard-captcha.php:103 classes/siteguard-login-lock.php:93
628
  msgid "ERROR: LOGIN LOCKED"
629
  msgstr ""
630
 
631
- #: classes/siteguard-captcha.php:103 classes/siteguard-login-lock.php:125
632
  msgid "ERROR: Please login entry again"
633
  msgstr ""
634
 
635
- #: classes/siteguard-captcha.php:104
636
  msgid "ERROR: Please check the input and resend."
637
  msgstr ""
638
 
639
- #: classes/siteguard-captcha.php:139
640
  msgid "Please input characters displayed above."
641
  msgstr ""
642
 
643
- #: classes/siteguard-captcha.php:183 classes/siteguard-captcha.php:187
644
- #: classes/siteguard-captcha.php:204 classes/siteguard-captcha.php:215
645
  msgid "ERROR: Invalid CAPTCHA."
646
  msgstr ""
647
 
648
- #: classes/siteguard-login-alert.php:14
649
  msgid "New login at %SITENAME%"
650
  msgstr ""
651
 
652
- #: classes/siteguard-login-alert.php:15
653
  msgid ""
654
  "%USERNAME% logged in at %DATE% %TIME%\n"
655
  "\n"
@@ -662,19 +743,19 @@ msgid ""
662
  "SiteGuard WP Plugin"
663
  msgstr ""
664
 
665
- #: classes/siteguard-login-history.php:94
666
  msgid "Failed"
667
  msgstr ""
668
 
669
- #: classes/siteguard-login-history.php:97
670
  msgid "Success"
671
  msgstr ""
672
 
673
- #: classes/siteguard-login-history.php:103
674
  msgid "Locked"
675
  msgstr ""
676
 
677
- #: classes/siteguard-login-history.php:106
678
  msgid "Unknown"
679
  msgstr ""
680
 
@@ -692,41 +773,41 @@ msgid ""
692
  "SiteGuard WP Plugin"
693
  msgstr ""
694
 
695
- #: classes/siteguard-updates-notify.php:43
696
  msgid "DISABLE_WP_CRON is defined true. This function can't be used."
697
  msgstr ""
698
 
699
- #: classes/siteguard-updates-notify.php:54
700
  msgid ""
701
  "Please solve the problem that can not be accessed wp-cron.php. Might be "
702
  "access control."
703
  msgstr ""
704
 
705
- #: classes/siteguard-updates-notify.php:91
706
  msgid "There are updates available for your WordPress site:"
707
  msgstr ""
708
 
709
- #: classes/siteguard-updates-notify.php:92
710
  msgid "Please visit %s to update."
711
  msgstr ""
712
 
713
- #: classes/siteguard-updates-notify.php:109
714
  msgid "WP-Core: WordPress is out of date. Please update from version %s to %s"
715
  msgstr ""
716
 
717
- #: classes/siteguard-updates-notify.php:144
718
  msgid "Plugin: %s is out of date. Please update from version %s to %s"
719
  msgstr ""
720
 
721
- #: classes/siteguard-updates-notify.php:145
722
  msgid "Details: %s"
723
  msgstr ""
724
 
725
- #: classes/siteguard-updates-notify.php:146
726
  msgid "Changelog: %s%s"
727
  msgstr ""
728
 
729
- #: classes/siteguard-updates-notify.php:148
730
  msgid "Compatibility with WordPress %1$s: 100%% (according to its author)"
731
  msgstr ""
732
 
@@ -736,19 +817,19 @@ msgid ""
736
  "total)"
737
  msgstr ""
738
 
739
- #: classes/siteguard-updates-notify.php:155
740
  msgid "Compatibility with WordPress %1$s: Unknown"
741
  msgstr ""
742
 
743
- #: classes/siteguard-updates-notify.php:157
744
  msgid "Compatibility: %s"
745
  msgstr ""
746
 
747
- #: classes/siteguard-updates-notify.php:190
748
  msgid "Theme: %s is out of date. Please update from version %s to %s"
749
  msgstr ""
750
 
751
- #: classes/siteguard-updates-notify.php:240
752
  msgid "WordPress: Updates Available @ %s"
753
  msgstr ""
754
 
@@ -760,26 +841,22 @@ msgstr ""
760
  msgid "ERROR: Syntax Error in Signature"
761
  msgstr ""
762
 
763
- #: siteguard.php:141
764
  msgid "Login page URL was changed."
765
  msgstr ""
766
 
767
- #: siteguard.php:143
768
  msgid " Please bookmark "
769
  msgstr ""
770
 
771
- #: siteguard.php:144
772
  msgid "new login URL"
773
  msgstr ""
774
 
775
- #: siteguard.php:145
776
  msgid ". Setting change is "
777
  msgstr ""
778
 
779
- #: siteguard.php:146
780
- msgid "here"
781
- msgstr ""
782
-
783
  #. Plugin Name of the plugin/theme
784
  msgid "SiteGuard WP Plugin"
785
  msgstr ""
2
  # This file is distributed under the same license as the SiteGuard WP Plugin package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: SiteGuard WP Plugin 1.2.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/siteguard\n"
7
+ "POT-Creation-Date: 2015-06-05 01:02:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
28
  msgid "IP Address"
29
  msgstr ""
30
 
31
+ #: admin/siteguard-menu-admin-filter.php:39
32
+ #: admin/siteguard-menu-admin-filter.php:100
33
+ #: admin/siteguard-menu-rename-login.php:26
34
+ #: admin/siteguard-menu-rename-login.php:113
35
  msgid "To use this function, “mod_rewrite” should be loaded on Apache."
36
  msgstr ""
37
 
38
+ #: admin/siteguard-menu-admin-filter.php:49
39
+ #: admin/siteguard-menu-captcha.php:52
40
+ #: admin/siteguard-menu-disable-pingback.php:23
41
+ #: admin/siteguard-menu-fail-once.php:26
42
+ #: admin/siteguard-menu-login-alert.php:30
43
+ #: admin/siteguard-menu-login-lock.php:52
44
+ #: admin/siteguard-menu-rename-login.php:36
45
+ #: admin/siteguard-menu-same-error.php:33
46
+ #: admin/siteguard-menu-updates-notify.php:40
47
+ #: admin/siteguard-menu-waf-tuning-support.php:152
48
  #: classes/siteguard-waf-exclude-rule.php:48
49
  #: classes/siteguard-waf-exclude-rule.php:141
50
  #: classes/siteguard-waf-exclude-rule.php:147
51
  msgid "ERROR: Invalid input value."
52
  msgstr ""
53
 
54
+ #: admin/siteguard-menu-admin-filter.php:67
55
+ #: admin/siteguard-menu-captcha.php:69
56
+ #: admin/siteguard-menu-disable-pingback.php:32
57
+ #: admin/siteguard-menu-fail-once.php:41
58
+ #: admin/siteguard-menu-login-alert.php:49
59
+ #: admin/siteguard-menu-login-lock.php:67
60
+ #: admin/siteguard-menu-rename-login.php:81
61
+ #: admin/siteguard-menu-same-error.php:42
62
+ #: admin/siteguard-menu-updates-notify.php:69
63
  msgid "Options saved."
64
  msgstr ""
65
 
66
+ #: admin/siteguard-menu-admin-filter.php:74
67
  #: admin/siteguard-menu-dashboard.php:37 admin/siteguard-menu-init.php:16
68
  msgid "Admin Page IP Filter"
69
  msgstr ""
70
 
71
+ #: admin/siteguard-menu-admin-filter.php:76
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  #: admin/siteguard-menu-captcha.php:78
73
+ #: admin/siteguard-menu-disable-pingback.php:41
74
+ #: admin/siteguard-menu-fail-once.php:50
75
+ #: admin/siteguard-menu-login-alert.php:58
76
  #: admin/siteguard-menu-login-lock.php:76
77
+ #: admin/siteguard-menu-rename-login.php:90
78
+ #: admin/siteguard-menu-same-error.php:51
79
  #: admin/siteguard-menu-updates-notify.php:78
80
+ #: admin/siteguard-menu-waf-tuning-support.php:200
81
+ msgid "You can find docs about this function on "
82
  msgstr ""
83
 
84
+ #: admin/siteguard-menu-admin-filter.php:77
85
+ msgid ""
86
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/admin_filter_en."
87
+ "html"
88
+ msgstr ""
89
+
90
+ #: admin/siteguard-menu-admin-filter.php:79
91
  #: admin/siteguard-menu-captcha.php:81
92
+ #: admin/siteguard-menu-disable-pingback.php:44
93
+ #: admin/siteguard-menu-fail-once.php:53
94
+ #: admin/siteguard-menu-login-alert.php:61
95
  #: admin/siteguard-menu-login-lock.php:79
96
+ #: admin/siteguard-menu-rename-login.php:93
97
+ #: admin/siteguard-menu-same-error.php:54
98
  #: admin/siteguard-menu-updates-notify.php:81
99
+ #: admin/siteguard-menu-waf-tuning-support.php:203 siteguard.php:168
100
+ msgid "here"
101
+ msgstr ""
102
+
103
+ #: admin/siteguard-menu-admin-filter.php:81
104
+ #: admin/siteguard-menu-captcha.php:83 admin/siteguard-menu-dashboard.php:30
105
+ #: admin/siteguard-menu-disable-pingback.php:46
106
+ #: admin/siteguard-menu-fail-once.php:55
107
+ #: admin/siteguard-menu-login-alert.php:63
108
+ #: admin/siteguard-menu-login-lock.php:81
109
+ #: admin/siteguard-menu-rename-login.php:95
110
+ #: admin/siteguard-menu-same-error.php:56
111
+ #: admin/siteguard-menu-updates-notify.php:83
112
+ #: admin/siteguard-menu-waf-tuning-support.php:205
113
+ msgid "."
114
  msgstr ""
115
 
116
  #: admin/siteguard-menu-admin-filter.php:91
117
+ #: admin/siteguard-menu-captcha.php:93
118
+ #: admin/siteguard-menu-disable-pingback.php:57
119
+ #: admin/siteguard-menu-fail-once.php:65
120
+ #: admin/siteguard-menu-login-alert.php:73
121
+ #: admin/siteguard-menu-login-lock.php:91
122
+ #: admin/siteguard-menu-rename-login.php:105
123
+ #: admin/siteguard-menu-same-error.php:66
124
+ #: admin/siteguard-menu-updates-notify.php:93
125
+ #: admin/siteguard-menu-waf-tuning-support.php:215
126
+ msgid "ON"
127
+ msgstr ""
128
+
129
+ #: admin/siteguard-menu-admin-filter.php:95
130
+ #: admin/siteguard-menu-captcha.php:96
131
+ #: admin/siteguard-menu-disable-pingback.php:60
132
+ #: admin/siteguard-menu-fail-once.php:68
133
+ #: admin/siteguard-menu-login-alert.php:76
134
+ #: admin/siteguard-menu-login-lock.php:94
135
+ #: admin/siteguard-menu-rename-login.php:108
136
+ #: admin/siteguard-menu-same-error.php:69
137
+ #: admin/siteguard-menu-updates-notify.php:96
138
+ #: admin/siteguard-menu-waf-tuning-support.php:218
139
+ msgid "OFF"
140
+ msgstr ""
141
+
142
+ #: admin/siteguard-menu-admin-filter.php:105
143
  msgid "Exclude Path"
144
  msgstr ""
145
 
146
+ #: admin/siteguard-menu-admin-filter.php:107
147
  msgid ""
148
  "The path of /wp-admin/ henceforth is specified. To specify more than one, "
149
  "separate them with new line. "
150
  msgstr ""
151
 
152
+ #: admin/siteguard-menu-admin-filter.php:112
153
  msgid ""
154
  "It is the function for the protection against the attack to the management "
155
  "page (under /wp-admin/.) To the access from the connection source IP address "
160
  "where this function is excluded can be specified."
161
  msgstr ""
162
 
163
+ #: admin/siteguard-menu-captcha.php:76 admin/siteguard-menu-dashboard.php:47
164
  #: admin/siteguard-menu-init.php:18
165
  msgid "CAPTCHA"
166
  msgstr ""
167
 
168
+ #: admin/siteguard-menu-captcha.php:79
169
+ msgid ""
170
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/captcha_en.html"
171
+ msgstr ""
172
+
173
+ #: admin/siteguard-menu-captcha.php:109
174
  msgid "Login page"
175
  msgstr ""
176
 
177
+ #: admin/siteguard-menu-captcha.php:112 admin/siteguard-menu-captcha.php:124
178
+ #: admin/siteguard-menu-captcha.php:136 admin/siteguard-menu-captcha.php:148
179
  msgid "Hiragana (Japanese)"
180
  msgstr ""
181
 
182
+ #: admin/siteguard-menu-captcha.php:115 admin/siteguard-menu-captcha.php:127
183
+ #: admin/siteguard-menu-captcha.php:139 admin/siteguard-menu-captcha.php:151
184
  msgid "Alphanumeric"
185
  msgstr ""
186
 
187
+ #: admin/siteguard-menu-captcha.php:118 admin/siteguard-menu-captcha.php:130
188
+ #: admin/siteguard-menu-captcha.php:142 admin/siteguard-menu-captcha.php:154
189
+ #: admin/siteguard-menu-updates-notify.php:112
190
+ #: admin/siteguard-menu-updates-notify.php:121
191
+ #: admin/siteguard-menu-updates-notify.php:133
192
  msgid "Disable"
193
  msgstr ""
194
 
195
+ #: admin/siteguard-menu-captcha.php:121
196
  msgid "Comment page"
197
  msgstr ""
198
 
199
+ #: admin/siteguard-menu-captcha.php:133
200
  msgid "Lost password page"
201
  msgstr ""
202
 
203
+ #: admin/siteguard-menu-captcha.php:145
204
  msgid "Registration user page"
205
  msgstr ""
206
 
207
+ #: admin/siteguard-menu-captcha.php:159
208
  msgid ""
209
  "It is the function to decrease the vulnerability against an illegal login "
210
  "attempt attack such as a brute force attack or a password list attack, or to "
222
  "Plugin on "
223
  msgstr ""
224
 
225
+ #. #-#-#-#-# siteguard.pot (SiteGuard WP Plugin 1.2.2) #-#-#-#-#
226
  #. Plugin URI of the plugin/theme
227
  #: admin/siteguard-menu-dashboard.php:30
228
  msgid ""
233
  msgid "SiteGuard WP Plugin Page"
234
  msgstr ""
235
 
 
 
 
 
236
  #: admin/siteguard-menu-dashboard.php:31
237
  msgid "Setting status"
238
  msgstr ""
244
  msgstr ""
245
 
246
  #: admin/siteguard-menu-dashboard.php:42 admin/siteguard-menu-init.php:17
247
+ #: admin/siteguard-menu-rename-login.php:88
248
  msgid "Rename Login"
249
  msgstr ""
250
 
257
  msgstr ""
258
 
259
  #: admin/siteguard-menu-dashboard.php:52 admin/siteguard-menu-init.php:19
260
+ #: admin/siteguard-menu-same-error.php:49
261
  msgid "Same Login Error Message"
262
  msgstr ""
263
 
268
  msgstr ""
269
 
270
  #: admin/siteguard-menu-dashboard.php:57 admin/siteguard-menu-init.php:20
271
+ #: admin/siteguard-menu-login-lock.php:74
272
  msgid "Login Lock"
273
  msgstr ""
274
 
279
  msgstr ""
280
 
281
  #: admin/siteguard-menu-dashboard.php:62 admin/siteguard-menu-init.php:21
282
+ #: admin/siteguard-menu-login-alert.php:56
283
  msgid "Login Alert"
284
  msgstr ""
285
 
287
  msgid "E-mail notifies that there was login."
288
  msgstr ""
289
 
290
+ #: admin/siteguard-menu-dashboard.php:67 admin/siteguard-menu-fail-once.php:48
291
+ #: admin/siteguard-menu-init.php:22 classes/siteguard-login-history.php:104
292
  msgid "Fail once"
293
  msgstr ""
294
 
297
  msgstr ""
298
 
299
  #: admin/siteguard-menu-dashboard.php:72
300
+ #: admin/siteguard-menu-disable-pingback.php:39
301
  #: admin/siteguard-menu-init.php:23
302
  msgid "Disable Pingback"
303
  msgstr ""
307
  msgstr ""
308
 
309
  #: admin/siteguard-menu-dashboard.php:77 admin/siteguard-menu-init.php:24
310
+ #: admin/siteguard-menu-updates-notify.php:76
311
  msgid "Updates Notify"
312
  msgstr ""
313
 
318
  msgstr ""
319
 
320
  #: admin/siteguard-menu-dashboard.php:82 admin/siteguard-menu-init.php:25
321
+ #: admin/siteguard-menu-waf-tuning-support.php:198
322
  msgid "WAF Tuning Support"
323
  msgstr ""
324
 
330
  msgid "Login history"
331
  msgstr ""
332
 
333
+ #: admin/siteguard-menu-disable-pingback.php:42
334
+ msgid ""
335
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/pingback_en.html"
336
+ msgstr ""
337
+
338
+ #: admin/siteguard-menu-disable-pingback.php:68
339
  msgid "The pingback function is disabled and its abuse is prevented."
340
  msgstr ""
341
 
342
+ #: admin/siteguard-menu-fail-once.php:51
343
+ msgid ""
344
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/fail_once_en.html"
345
+ msgstr ""
346
+
347
+ #: admin/siteguard-menu-fail-once.php:74
348
  msgid "Target user"
349
  msgstr ""
350
 
351
+ #: admin/siteguard-menu-fail-once.php:77
352
+ #: admin/siteguard-menu-login-alert.php:94
353
  msgid "Admin only"
354
  msgstr ""
355
 
356
+ #: admin/siteguard-menu-fail-once.php:83
357
  msgid ""
358
  "It is the function to decrease the vulnerability against a password list "
359
  "attack. Even is the login input is correct, the first login must fail. After "
366
  msgid "SiteGuard"
367
  msgstr ""
368
 
369
+ #: admin/siteguard-menu-login-alert.php:59
370
+ msgid ""
371
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/login_alert_en."
372
+ "html"
373
+ msgstr ""
374
+
375
+ #: admin/siteguard-menu-login-alert.php:81
376
  msgid "Subject"
377
  msgstr ""
378
 
379
+ #: admin/siteguard-menu-login-alert.php:86
380
  msgid "Body"
381
  msgstr ""
382
 
383
+ #: admin/siteguard-menu-login-alert.php:91
384
  msgid "Recipients"
385
  msgstr ""
386
 
387
+ #: admin/siteguard-menu-login-alert.php:100
388
  msgid ""
389
  "It is the function to make it easier to notice unauthorized login. E-mail "
390
  "will be sent to a login user when logged in. If you receive an e-mail to "
395
  "notified."
396
  msgstr ""
397
 
398
+ #: admin/siteguard-menu-login-lock.php:77
399
+ msgid ""
400
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/login_lock_en.html"
401
+ msgstr ""
402
+
403
+ #: admin/siteguard-menu-login-lock.php:99
404
  msgid "Interval"
405
  msgstr ""
406
 
407
+ #: admin/siteguard-menu-login-lock.php:102
408
  msgid "1 second"
409
  msgstr ""
410
 
411
+ #: admin/siteguard-menu-login-lock.php:105
412
  msgid "5 seconds"
413
  msgstr ""
414
 
415
+ #: admin/siteguard-menu-login-lock.php:108
416
+ #: admin/siteguard-menu-login-lock.php:126
417
  msgid "30 seconds"
418
  msgstr ""
419
 
420
+ #: admin/siteguard-menu-login-lock.php:111
421
  msgid "Threshold"
422
  msgstr ""
423
 
424
+ #: admin/siteguard-menu-login-lock.php:114
425
  msgid "3 times"
426
  msgstr ""
427
 
428
+ #: admin/siteguard-menu-login-lock.php:117
429
  msgid "10 times"
430
  msgstr ""
431
 
432
+ #: admin/siteguard-menu-login-lock.php:120
433
  msgid "100 times"
434
  msgstr ""
435
 
436
+ #: admin/siteguard-menu-login-lock.php:123
437
  msgid "Lock Time"
438
  msgstr ""
439
 
440
+ #: admin/siteguard-menu-login-lock.php:129
441
  msgid "1 minute"
442
  msgstr ""
443
 
444
+ #: admin/siteguard-menu-login-lock.php:132
445
  msgid "5 minutes"
446
  msgstr ""
447
 
448
+ #: admin/siteguard-menu-login-lock.php:137
449
  msgid ""
450
  "It is the function to decrease the vulnerability against an illegal login "
451
  "attempt attack such as a brute force attack or a password list attack. "
455
  "specified time. Each user account is not locked."
456
  msgstr ""
457
 
458
+ #: admin/siteguard-menu-rename-login.php:44
459
  msgid "This function and Plugin \""
460
  msgstr ""
461
 
462
+ #: admin/siteguard-menu-rename-login.php:44
463
  msgid "\" cannot be used at the same time."
464
  msgstr ""
465
 
466
+ #: admin/siteguard-menu-rename-login.php:56
467
  msgid ""
468
  "It is only an alphanumeric character, a hyphen, and an underbar that can be "
469
  "used for New Login Path."
470
  msgstr ""
471
 
472
+ #: admin/siteguard-menu-rename-login.php:63
473
  msgid " can not be used for New Login Path."
474
  msgstr ""
475
 
476
+ #: admin/siteguard-menu-rename-login.php:91
477
+ msgid ""
478
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/rename_login_en."
479
+ "html"
480
+ msgstr ""
481
+
482
+ #: admin/siteguard-menu-rename-login.php:118
483
  msgid "New Login Path"
484
  msgstr ""
485
 
486
+ #: admin/siteguard-menu-rename-login.php:123
487
  msgid "An alphanumeric character, a hyphen, and an underbar can be used."
488
  msgstr ""
489
 
490
+ #: admin/siteguard-menu-rename-login.php:131
491
  msgid ""
492
  "It is the function to decrease the vulnerability against an illegal login "
493
  "attempt attack such as a brute force attack or a password list attack. The "
495
  "random digits&gt;” but it can be changed to a favorite name."
496
  msgstr ""
497
 
498
+ #: admin/siteguard-menu-same-error.php:52
499
+ msgid ""
500
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/same_error_en.html"
501
+ msgstr ""
502
+
503
+ #: admin/siteguard-menu-same-error.php:77
504
  msgid ""
505
  "It is the function to decrease the vulnerability against the attack to "
506
  "examine if a user name exists. All error messages about the login should be "
508
  "username, password, or CAPTCHA is wrong."
509
  msgstr ""
510
 
511
+ #: admin/siteguard-menu-updates-notify.php:79
512
+ msgid ""
513
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/updates_notify_en."
514
+ "html"
515
+ msgstr ""
516
+
517
+ #: admin/siteguard-menu-updates-notify.php:109
518
  msgid "WordPress updates"
519
  msgstr ""
520
 
521
+ #: admin/siteguard-menu-updates-notify.php:115
522
  msgid "Enable"
523
  msgstr ""
524
 
525
+ #: admin/siteguard-menu-updates-notify.php:118
526
  msgid "Plugins updates"
527
  msgstr ""
528
 
529
+ #: admin/siteguard-menu-updates-notify.php:124
530
  msgid "All plugins"
531
  msgstr ""
532
 
533
+ #: admin/siteguard-menu-updates-notify.php:127
534
  msgid "Active plugins only"
535
  msgstr ""
536
 
537
+ #: admin/siteguard-menu-updates-notify.php:130
538
  msgid "Themes updates"
539
  msgstr ""
540
 
541
+ #: admin/siteguard-menu-updates-notify.php:136
542
  msgid "All themes"
543
  msgstr ""
544
 
545
+ #: admin/siteguard-menu-updates-notify.php:139
546
  msgid "Active themes only"
547
  msgstr ""
548
 
549
+ #: admin/siteguard-menu-updates-notify.php:144
550
  msgid ""
551
  "Basic of security is that always you use the latest version. If WordPress "
552
  "core, plugins, and themes updates are needed , sends email to notify "
553
  "administrators. Check for updates will be run every 24 hours."
554
  msgstr ""
555
 
556
+ #: admin/siteguard-menu-waf-tuning-support.php:79
557
  msgid "New rule created"
558
  msgstr ""
559
 
560
+ #: admin/siteguard-menu-waf-tuning-support.php:103
561
  msgid "Rule updated"
562
  msgstr ""
563
 
564
+ #: admin/siteguard-menu-waf-tuning-support.php:122
565
  msgid "Rule deleted"
566
  msgstr ""
567
 
568
+ #: admin/siteguard-menu-waf-tuning-support.php:143
569
  msgid ""
570
  "To use the WAF exclude rule, WAF ( SiteGuard Lite ) should be installed on "
571
  "Apache."
572
  msgstr ""
573
 
574
+ #: admin/siteguard-menu-waf-tuning-support.php:161
575
  msgid "Rules applied"
576
  msgstr ""
577
 
578
+ #: admin/siteguard-menu-waf-tuning-support.php:164
579
  msgid "Rules unapplied"
580
  msgstr ""
581
 
582
+ #: admin/siteguard-menu-waf-tuning-support.php:198
583
  msgid "Add New"
584
  msgstr ""
585
 
586
+ #: admin/siteguard-menu-waf-tuning-support.php:201
587
+ msgid ""
588
+ "http://www.jp-secure.com/cont/products/siteguard_wp_plugin/"
589
+ "waf_tuning_support_en.html"
590
+ msgstr ""
591
+
592
+ #: admin/siteguard-menu-waf-tuning-support.php:223
593
  msgid ""
594
  "To use the WAF Tuning Support, WAF ( SiteGuard Lite ) should be installed on "
595
  "Apache."
596
  msgstr ""
597
 
598
+ #: admin/siteguard-menu-waf-tuning-support.php:232
599
  msgid ""
600
  "It is the function to create the rule to avoid the false detection in "
601
  "WordPress (including 403 error occurrence with normal access,) if WAF "
607
  "activated while the false detection for the specified function is prevented."
608
  msgstr ""
609
 
610
+ #: admin/siteguard-menu-waf-tuning-support.php:239
611
  msgid "Apply rules"
612
  msgstr ""
613
 
614
+ #: admin/siteguard-menu-waf-tuning-support.php:247
615
  msgid "WAF Exclude Rule Add"
616
  msgstr ""
617
 
618
+ #: admin/siteguard-menu-waf-tuning-support.php:249
619
  msgid "WAF Exclude Rule Edit"
620
  msgstr ""
621
 
622
+ #: admin/siteguard-menu-waf-tuning-support.php:255
623
+ #: admin/siteguard-menu-waf-tuning-support.php:300
624
  #: admin/siteguard-waf-exclude-rule-table.php:59
625
  msgid "Signature"
626
  msgstr ""
627
 
628
+ #: admin/siteguard-menu-waf-tuning-support.php:258
629
  msgid ""
630
  "The detected signature name or signature ID is specified. To specify more "
631
  "than one, separate them with new line."
632
  msgstr ""
633
 
634
+ #: admin/siteguard-menu-waf-tuning-support.php:262
635
  msgid "Filename (optional)"
636
  msgstr ""
637
 
638
+ #: admin/siteguard-menu-waf-tuning-support.php:265
639
  msgid ""
640
  "The target file name is specified. URL ( the part before ? ) can also be "
641
  "pasted."
642
  msgstr ""
643
 
644
+ #: admin/siteguard-menu-waf-tuning-support.php:269
645
  msgid "Comment (optional)"
646
  msgstr ""
647
 
648
+ #: admin/siteguard-menu-waf-tuning-support.php:281
649
  msgid "Save"
650
  msgstr ""
651
 
652
+ #: admin/siteguard-menu-waf-tuning-support.php:291
653
  msgid "WAF Exclude Rule Delete"
654
  msgstr ""
655
 
656
+ #: admin/siteguard-menu-waf-tuning-support.php:295
657
  msgid "You have specified this rule for deletion:"
658
  msgid_plural "You have specified these rules for deletion:"
659
  msgstr[0] ""
660
  msgstr[1] ""
661
 
662
+ #: admin/siteguard-menu-waf-tuning-support.php:300
663
  #: admin/siteguard-waf-exclude-rule-table.php:60
664
  msgid "Filename"
665
  msgstr ""
666
 
667
+ #: admin/siteguard-menu-waf-tuning-support.php:300
668
  #: admin/siteguard-waf-exclude-rule-table.php:61
669
  msgid "Comment"
670
  msgstr ""
671
 
672
+ #: admin/siteguard-menu-waf-tuning-support.php:306
673
  msgid "Confirm Deletion"
674
  msgstr ""
675
 
676
+ #: admin/siteguard-menu-waf-tuning-support.php:308
677
  msgid "There are no rules selected for deletion."
678
  msgstr ""
679
 
686
  msgid "Delete"
687
  msgstr ""
688
 
689
+ #: classes/siteguard-base.php:24
690
+ msgid "It does not support the multisite function of WordPress."
691
+ msgstr ""
692
+
693
+ #: classes/siteguard-captcha.php:75
694
  msgid ""
695
  "In order to enable this function, it is necessary to install expanded modules"
696
  msgstr ""
697
 
698
+ #: classes/siteguard-captcha.php:86
699
  msgid "in the server."
700
  msgstr ""
701
 
702
+ #: classes/siteguard-captcha.php:102
703
  msgid ""
704
  "In order to enable this function, it is necessary to specify Limit to "
705
  "AllowOverride in httpd.conf."
706
  msgstr ""
707
 
708
+ #: classes/siteguard-captcha.php:107 classes/siteguard-login-lock.php:97
709
  msgid "ERROR: LOGIN LOCKED"
710
  msgstr ""
711
 
712
+ #: classes/siteguard-captcha.php:107 classes/siteguard-login-lock.php:129
713
  msgid "ERROR: Please login entry again"
714
  msgstr ""
715
 
716
+ #: classes/siteguard-captcha.php:108
717
  msgid "ERROR: Please check the input and resend."
718
  msgstr ""
719
 
720
+ #: classes/siteguard-captcha.php:147
721
  msgid "Please input characters displayed above."
722
  msgstr ""
723
 
724
+ #: classes/siteguard-captcha.php:191 classes/siteguard-captcha.php:195
725
+ #: classes/siteguard-captcha.php:212 classes/siteguard-captcha.php:223
726
  msgid "ERROR: Invalid CAPTCHA."
727
  msgstr ""
728
 
729
+ #: classes/siteguard-login-alert.php:18
730
  msgid "New login at %SITENAME%"
731
  msgstr ""
732
 
733
+ #: classes/siteguard-login-alert.php:19
734
  msgid ""
735
  "%USERNAME% logged in at %DATE% %TIME%\n"
736
  "\n"
743
  "SiteGuard WP Plugin"
744
  msgstr ""
745
 
746
+ #: classes/siteguard-login-history.php:98
747
  msgid "Failed"
748
  msgstr ""
749
 
750
+ #: classes/siteguard-login-history.php:101
751
  msgid "Success"
752
  msgstr ""
753
 
754
+ #: classes/siteguard-login-history.php:107
755
  msgid "Locked"
756
  msgstr ""
757
 
758
+ #: classes/siteguard-login-history.php:110
759
  msgid "Unknown"
760
  msgstr ""
761
 
773
  "SiteGuard WP Plugin"
774
  msgstr ""
775
 
776
+ #: classes/siteguard-updates-notify.php:47
777
  msgid "DISABLE_WP_CRON is defined true. This function can't be used."
778
  msgstr ""
779
 
780
+ #: classes/siteguard-updates-notify.php:58
781
  msgid ""
782
  "Please solve the problem that can not be accessed wp-cron.php. Might be "
783
  "access control."
784
  msgstr ""
785
 
786
+ #: classes/siteguard-updates-notify.php:93
787
  msgid "There are updates available for your WordPress site:"
788
  msgstr ""
789
 
790
+ #: classes/siteguard-updates-notify.php:94
791
  msgid "Please visit %s to update."
792
  msgstr ""
793
 
794
+ #: classes/siteguard-updates-notify.php:111
795
  msgid "WP-Core: WordPress is out of date. Please update from version %s to %s"
796
  msgstr ""
797
 
798
+ #: classes/siteguard-updates-notify.php:145
799
  msgid "Plugin: %s is out of date. Please update from version %s to %s"
800
  msgstr ""
801
 
802
+ #: classes/siteguard-updates-notify.php:146
803
  msgid "Details: %s"
804
  msgstr ""
805
 
806
+ #: classes/siteguard-updates-notify.php:147
807
  msgid "Changelog: %s%s"
808
  msgstr ""
809
 
810
+ #: classes/siteguard-updates-notify.php:149
811
  msgid "Compatibility with WordPress %1$s: 100%% (according to its author)"
812
  msgstr ""
813
 
817
  "total)"
818
  msgstr ""
819
 
820
+ #: classes/siteguard-updates-notify.php:154
821
  msgid "Compatibility with WordPress %1$s: Unknown"
822
  msgstr ""
823
 
824
+ #: classes/siteguard-updates-notify.php:156
825
  msgid "Compatibility: %s"
826
  msgstr ""
827
 
828
+ #: classes/siteguard-updates-notify.php:188
829
  msgid "Theme: %s is out of date. Please update from version %s to %s"
830
  msgstr ""
831
 
832
+ #: classes/siteguard-updates-notify.php:237
833
  msgid "WordPress: Updates Available @ %s"
834
  msgstr ""
835
 
841
  msgid "ERROR: Syntax Error in Signature"
842
  msgstr ""
843
 
844
+ #: siteguard.php:163
845
  msgid "Login page URL was changed."
846
  msgstr ""
847
 
848
+ #: siteguard.php:165
849
  msgid " Please bookmark "
850
  msgstr ""
851
 
852
+ #: siteguard.php:166
853
  msgid "new login URL"
854
  msgstr ""
855
 
856
+ #: siteguard.php:167
857
  msgid ". Setting change is "
858
  msgstr ""
859
 
 
 
 
 
860
  #. Plugin Name of the plugin/theme
861
  msgid "SiteGuard WP Plugin"
862
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: -
4
  Tags: security, waf, brute force, password list, login lock, login alert, captcha, pingback, fail once
5
  Requires at least: 3.9
6
  Tested up to: 4.2
7
- Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -102,6 +102,10 @@ If you have created your own language pack, or have an update of an existing one
102
  [Japanese Page](http://www.jp-secure.com/cont/products/siteguard_wp_plugin/faq.html)
103
 
104
  == Changelog ==
 
 
 
 
105
  = 1.2.1 =
106
  * Supported with WP 4.2
107
  = 1.2.0 =
4
  Tags: security, waf, brute force, password list, login lock, login alert, captcha, pingback, fail once
5
  Requires at least: 3.9
6
  Tested up to: 4.2
7
+ Stable tag: 1.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
102
  [Japanese Page](http://www.jp-secure.com/cont/products/siteguard_wp_plugin/faq.html)
103
 
104
  == Changelog ==
105
+ = 1.2.2 =
106
+ * Fix bug that XML-RPC access which doesn't need login is recorded as the nameless login history
107
+ * Disabling the all functions when installed in multisite environment
108
+ * Disabling the several functions when settings of .htaccess was eliminated
109
  = 1.2.1 =
110
  * Supported with WP 4.2
111
  = 1.2.0 =
really-simple-captcha/siteguard-really-simple-captcha.php CHANGED
@@ -188,7 +188,7 @@ class SiteGuardReallySimpleCaptcha extends SiteGuard_Base {
188
 
189
  $gd_info = gd_info( );
190
  for ( $i = 0; $i < mb_strlen( $word ); $i++ ) {
191
- $font = $this->fonts[array_rand( $this->fonts )];
192
  $font = $this->normalize_path( $font );
193
  if ( $gd_info['JIS-mapped Japanese Font Support'] ) {
194
  $char = mb_convert_encoding( mb_substr( $word, $i, 1 ), 'SJIS', 'UTF-8' );
188
 
189
  $gd_info = gd_info( );
190
  for ( $i = 0; $i < mb_strlen( $word ); $i++ ) {
191
+ $font = $this->fonts[ array_rand( $this->fonts ) ];
192
  $font = $this->normalize_path( $font );
193
  if ( $gd_info['JIS-mapped Japanese Font Support'] ) {
194
  $char = mb_convert_encoding( mb_substr( $word, $i, 1 ), 'SJIS', 'UTF-8' );
siteguard.php CHANGED
@@ -7,7 +7,7 @@ Author: JP-Secure
7
  Author URI: http://www.jp-secure.com/eng/
8
  Text Domain: siteguard
9
  Domain Path: /languages/
10
- Version: 1.2.1
11
  */
12
 
13
  /* Copyright 2014 JP-Secure Inc
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
30
  exit;
31
  }
32
 
33
- define( 'SITEGUARD_VERSION', '1.2.1' );
34
 
35
  define( 'SITEGUARD_PATH', plugin_dir_path( __FILE__ ) );
36
  define( 'SITEGUARD_URL_PATH', plugin_dir_url( __FILE__ ) );
@@ -118,7 +118,8 @@ class SiteGuard extends SiteGuard_Base {
118
  function __construct( ) {
119
  global $config;
120
  add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
121
- if ( is_admin( ) ) {
 
122
  $this->menu_init = new SiteGuard_Menu_Init( );
123
  add_action( 'admin_init', array( $this, 'upgrade' ) );
124
  if ( '0' === $config->get( 'show_admin_notices' ) && '1' == $config->get( 'renamelogin_enable' ) ) {
@@ -135,6 +136,27 @@ class SiteGuard extends SiteGuard_Base {
135
  dirname( plugin_basename( __FILE__ ) ) . '/languages'
136
  );
137
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  function admin_notices( ) {
139
  global $rename_login;
140
  echo '<div class="updated" style="background-color:#719f1d;"><p><span style="border: 4px solid #def1b8;padding: 4px 4px;color:#fff;font-weight:bold;background-color:#038bc3;">';
@@ -174,7 +196,7 @@ class SiteGuard extends SiteGuard_Base {
174
  if ( version_compare( $old_version, '1.2.0' ) < 0 ) {
175
  $updates_notify->init();
176
  }
177
- if ( $upgrade_ok && $old_version != SITEGUARD_VERSION ) {
178
  $config->set( 'version', SITEGUARD_VERSION );
179
  $config->update( );
180
  }
7
  Author URI: http://www.jp-secure.com/eng/
8
  Text Domain: siteguard
9
  Domain Path: /languages/
10
+ Version: 1.2.2
11
  */
12
 
13
  /* Copyright 2014 JP-Secure Inc
30
  exit;
31
  }
32
 
33
+ define( 'SITEGUARD_VERSION', '1.2.2' );
34
 
35
  define( 'SITEGUARD_PATH', plugin_dir_path( __FILE__ ) );
36
  define( 'SITEGUARD_URL_PATH', plugin_dir_url( __FILE__ ) );
118
  function __construct( ) {
119
  global $config;
120
  add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ) );
121
+ $this->htaccess_check( );
122
+ if ( is_admin( ) ) {
123
  $this->menu_init = new SiteGuard_Menu_Init( );
124
  add_action( 'admin_init', array( $this, 'upgrade' ) );
125
  if ( '0' === $config->get( 'show_admin_notices' ) && '1' == $config->get( 'renamelogin_enable' ) ) {
136
  dirname( plugin_basename( __FILE__ ) ) . '/languages'
137
  );
138
  }
139
+ function htaccess_check( ) {
140
+ global $config;
141
+ if ( '1' == $config->get( 'admin_filter_enable' ) ) {
142
+ if ( ! SiteGuard_Htaccess::is_exists_setting( SiteGuard_AdminFilter::get_mark( ) ) ) {
143
+ $config->set( 'admin_filter_enable', '0' );
144
+ $config->update( );
145
+ }
146
+ }
147
+ if ( '1' == $config->get( 'renamelogin_enable' ) ) {
148
+ if ( ! SiteGuard_Htaccess::is_exists_setting( SiteGuard_RenameLogin::get_mark( ) ) ) {
149
+ $config->set( 'renamelogin_enable', '0' );
150
+ $config->update( );
151
+ }
152
+ }
153
+ if ( '1' == $config->get( 'waf_exclude_rule_enable' ) ) {
154
+ if ( ! SiteGuard_Htaccess::is_exists_setting( SiteGuard_WAF_Exclude_Rule::get_mark( ) ) ) {
155
+ $config->set( 'waf_exclude_rule_enable', '0' );
156
+ $config->update( );
157
+ }
158
+ }
159
+ }
160
  function admin_notices( ) {
161
  global $rename_login;
162
  echo '<div class="updated" style="background-color:#719f1d;"><p><span style="border: 4px solid #def1b8;padding: 4px 4px;color:#fff;font-weight:bold;background-color:#038bc3;">';
196
  if ( version_compare( $old_version, '1.2.0' ) < 0 ) {
197
  $updates_notify->init();
198
  }
199
+ if ( $upgrade_ok && SITEGUARD_VERSION != $old_version ) {
200
  $config->set( 'version', SITEGUARD_VERSION );
201
  $config->update( );
202
  }