PluginProbe
The WP Remote WordPress Plugin / 5.47
The WP Remote WordPress Plugin v5.47
6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 5.73 All 53 releases
wpremote / wp_actions.php

wp_actions.php in The WP Remote WordPress Plugin 5.47, at wp_actions.php

60 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) exit;
4 if (!class_exists('WPRWPAction')) :
5 class WPRWPAction {
6 public $settings;
7 public $siteinfo;
8 public $bvinfo;
9 public $bvapi;
10
11 public function __construct($settings, $siteinfo, $bvapi) {
12 $this->settings = $settings;
13 $this->siteinfo = $siteinfo;
14 $this->bvapi = $bvapi;
15 $this->bvinfo = new WPRInfo($settings);
16 }
17
18 public function activate() {
19 if (!isset($_REQUEST['blogvaultkey'])) {
20 ##BVKEYSLOCATE##
21 }
22 if (WPRAccount::isConfigured($this->settings)) {
23 /* This informs the server about the activation */
24 $info = array();
25 $this->siteinfo->basic($info);
26 $this->bvapi->pingbv('/bvapi/activate', $info);
27 } else {
28 WPRAccount::setup($this->settings);
29 }
30 }
31
32 public function deactivate() {
33 $info = array();
34 $this->siteinfo->basic($info);
35 ##DISABLECACHE##
36 $this->bvapi->pingbv('/bvapi/deactivate', $info);
37 }
38
39 public static function uninstall() {
40 do_action('clear_pt_config');
41 do_action('clear_dynsync_config');
42 ##CLEARCACHECONFIG##
43 do_action('clear_bv_services_config');
44 }
45
46 public function clear_bv_services_config() {
47 $this->settings->deleteOption($this->bvinfo->services_option_name);
48 }
49
50 ##SOUNINSTALLFUNCTION##
51
52 public function footerHandler() {
53 $bvfooter = $this->settings->getOption($this->bvinfo->badgeinfo);
54 if ($bvfooter) {
55 echo '<div style="max-width:150px;min-height:70px;margin:0 auto;text-align:center;position:relative;">
56 <a href='.esc_url($bvfooter['badgeurl']).' target="_blank" ><img src="'.esc_url(plugins_url($bvfooter['badgeimg'], __FILE__)).'" alt="'.esc_attr($bvfooter['badgealt']).'" /></a></div>';
57 }
58 }
59 }
60 endif;