siteguard-admin-filter.php
1 month ago
siteguard-base.php
1 month ago
siteguard-captcha.php
1 month ago
siteguard-config.php
11 months ago
siteguard-disable-author-query.php
2 weeks ago
siteguard-disable-pingback.php
1 month ago
siteguard-disable-xmlrpc.php
1 month ago
siteguard-htaccess.php
2 weeks ago
siteguard-login-alert.php
1 month ago
siteguard-login-history.php
1 month ago
siteguard-login-lock.php
1 month ago
siteguard-rename-login.php
1 week ago
siteguard-updates-notify.php
1 month ago
siteguard-waf-exclude-rule.php
1 month ago
siteguard-config.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | class SiteGuard_Config { |
| 4 | protected $config; |
| 5 | function __construct() { |
| 6 | $this->config = get_option( 'siteguard_config' ); |
| 7 | if ( ! is_array( $this->config ) ) { |
| 8 | $this->config = array(); |
| 9 | } |
| 10 | } |
| 11 | function set( $key, $value ) { |
| 12 | $this->config[ $key ] = $value; |
| 13 | } |
| 14 | function get( $key ) { |
| 15 | return isset( $this->config[ $key ] ) ? $this->config[ $key ] : ''; |
| 16 | } |
| 17 | function update() { |
| 18 | update_option( 'siteguard_config', $this->config ); |
| 19 | } |
| 20 | } |
| 21 |