| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | public $badgeinfo = 'wprbadge'; |
| 11 | 11 | public $ip_header_option = 'wpripheader'; |
| 12 | 12 | public $brand_option = 'bv_whitelabel_infos'; |
| 13 | 13 | public $wp_lp_whitelabel_option = 'wprLpWhitelabelConf'; |
| 14 | - public $version = '6.72'; | |
| 14 | + public $version = '6.76'; | |
| 15 | 15 | public $webpage = 'https://wpremote.com'; |
| 16 | 16 | public $appurl = 'https://app.wpremote.com'; |
| 17 | 17 | public $slug = 'wpremote/plugin.php'; |
| 18 | 18 | public $plug_redirect = 'wprredirect'; |
| @@ -37,8 +37,16 @@ | ||
| 37 | 37 | } |
| 38 | 38 | return false; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + # The server leases capture for a few days at a time; a stale configuration | |
| 42 | + # registers nothing. | |
| 43 | + public function isActivityLogActive() { | |
| 44 | + $config = isset($this->config['activity_log']) ? $this->config['activity_log'] : null; | |
| 45 | + return $this->hasValidDBVersion() && is_array($config) && !empty($config['hooks']) && | |
| 46 | + isset($config['enabled_until']) && is_numeric($config['enabled_until']) && $config['enabled_until'] > time(); | |
| 47 | + } | |
| 48 | + | |
| 41 | 49 | public function hasValidDBVersion() { |
| 42 | 50 | return WPRInfo::DB_VERSION === $this->getCurrentDBVersion(); |
| 43 | 51 | } |
| 44 | 52 | |
| @@ -238,5 +246,5 @@ | ||
| 238 | 246 | "plugname" => $this->plugname |
| 239 | 247 | ); |
| 240 | 248 | } |
| 241 | 249 | } |
| 242 | -endif; | |
| 250 | +endif; | |