PluginProbe
The WP Remote WordPress Plugin / 4.66
The WP Remote WordPress Plugin v4.66
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
← All changes | callback/handler.php +16 -29 6.474.66 View file →
@@ -1,10 +1,10 @@
1 1 <?php
2 2
3 3 if (!defined('ABSPATH')) exit;
4 -if (!class_exists('WPRCallbackHandler')) :
4 +if (!class_exists('BVCallbackHandler')) :
5 5
6 - class WPRCallbackHandler {
6 + class BVCallbackHandler {
7 7 public $db;
8 8 public $settings;
9 9 public $siteinfo;
10 10 public $request;
@@ -30,13 +30,8 @@
30 30 $this->execute(array("bvadmwithuser" => true));
31 31 }
32 32
33 33 public function execute($resp = array()) {
34 - $params = $this->request->params;
35 - if (array_key_exists('disable_global_cache', $params)) {
36 - $GLOBALS['_wp_using_ext_object_cache'] = false;
37 - }
38 -
39 34 $this->routeRequest();
40 35 $resp = array(
41 36 "request_info" => $this->request->info(),
42 37 "site_info" => $this->siteinfo->info(),
@@ -50,65 +45,57 @@
50 45 public function routeRequest() {
51 46 switch ($this->request->wing) {
52 47 case 'manage':
53 48 require_once dirname( __FILE__ ) . '/wings/manage.php';
54 - $module = new WPRManageCallback($this);
49 + $module = new BVManageCallback($this);
55 50 break;
56 51 case 'fs':
57 52 require_once dirname( __FILE__ ) . '/wings/fs.php';
58 - $module = new WPRFSCallback($this);
53 + $module = new BVFSCallback($this);
59 54 break;
60 55 case 'db':
61 56 require_once dirname( __FILE__ ) . '/wings/db.php';
62 - $module = new WPRDBCallback($this);
57 + $module = new BVDBCallback($this);
63 58 break;
64 59 case 'info':
65 60 require_once dirname( __FILE__ ) . '/wings/info.php';
66 - $module = new WPRInfoCallback($this);
61 + $module = new BVInfoCallback($this);
67 62 break;
68 63 case 'dynsync':
69 64 require_once dirname( __FILE__ ) . '/wings/dynsync.php';
70 - $module = new WPRDynSyncCallback($this);
65 + $module = new BVDynSyncCallback($this);
71 66 break;
72 67 case 'ipstr':
73 68 require_once dirname( __FILE__ ) . '/wings/ipstore.php';
74 - $module = new WPRIPStoreCallback($this);
69 + $module = new BVIPStoreCallback($this);
75 70 break;
76 71 case 'wtch':
77 72 require_once dirname( __FILE__ ) . '/wings/watch.php';
78 - $module = new WPRWatchCallback($this);
73 + $module = new BVWatchCallback($this);
79 74 break;
80 75 case 'brand':
81 76 require_once dirname( __FILE__ ) . '/wings/brand.php';
82 - $module = new WPRBrandCallback($this);
77 + $module = new BVBrandCallback($this);
83 78 break;
84 79 case 'pt':
85 80 require_once dirname( __FILE__ ) . '/wings/protect.php';
86 - $module = new WPRProtectCallback($this);
81 + $module = new BVProtectCallback($this);
87 82 break;
88 83 case 'act':
89 84 require_once dirname( __FILE__ ) . '/wings/account.php';
90 - $module = new WPRAccountCallback($this);
85 + $module = new BVAccountCallback($this);
91 86 break;
92 87 case 'fswrt':
93 88 require_once dirname( __FILE__ ) . '/wings/fs_write.php';
94 - $module = new WPRFSWriteCallback();
89 + $module = new BVFSWriteCallback();
95 90 break;
96 91 case 'actlg':
97 92 require_once dirname( __FILE__ ) . '/wings/actlog.php';
98 - $module = new WPRActLogCallback($this);
93 + $module = new BVActLogCallback($this);
99 94 break;
100 - case 'speed':
101 - require_once dirname( __FILE__ ) . '/wings/speed.php';
102 - $module = new WPRSpeedCallback($this);
103 - break;
104 - case 'scrty':
105 - require_once dirname( __FILE__ ) . '/wings/security.php';
106 - $module = new WPRSecurityCallback($this);
107 - break;
108 95 default:
109 96 require_once dirname( __FILE__ ) . '/wings/misc.php';
110 - $module = new WPRMiscCallback($this);
97 + $module = new BVMiscCallback($this);
111 98 break;
112 99 }
113 100 $resp = $module->process($this->request);
114 101 if ($resp === false) {
@@ -124,5 +111,5 @@
124 111 $this->response->addStatus("callbackresponse", $resp);
125 112 return 1;
126 113 }
127 114 }
128 -endif;
115 +endif;