| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | if (!defined('ABSPATH')) exit; |
| 4 | -if (!class_exists('BVCallbackHandler')) : | |
| 4 | +if (!class_exists('WPRCallbackHandler')) : | |
| 5 | 5 | |
| 6 | - class BVCallbackHandler { | |
| 6 | + class WPRCallbackHandler { | |
| 7 | 7 | public $db; |
| 8 | 8 | public $settings; |
| 9 | 9 | public $siteinfo; |
| 10 | 10 | public $request; |
| @@ -50,61 +50,65 @@ | ||
| 50 | 50 | public function routeRequest() { |
| 51 | 51 | switch ($this->request->wing) { |
| 52 | 52 | case 'manage': |
| 53 | 53 | require_once dirname( __FILE__ ) . '/wings/manage.php'; |
| 54 | - $module = new BVManageCallback($this); | |
| 54 | + $module = new WPRManageCallback($this); | |
| 55 | 55 | break; |
| 56 | 56 | case 'fs': |
| 57 | 57 | require_once dirname( __FILE__ ) . '/wings/fs.php'; |
| 58 | - $module = new BVFSCallback($this); | |
| 58 | + $module = new WPRFSCallback($this); | |
| 59 | 59 | break; |
| 60 | 60 | case 'db': |
| 61 | 61 | require_once dirname( __FILE__ ) . '/wings/db.php'; |
| 62 | - $module = new BVDBCallback($this); | |
| 62 | + $module = new WPRDBCallback($this); | |
| 63 | 63 | break; |
| 64 | 64 | case 'info': |
| 65 | 65 | require_once dirname( __FILE__ ) . '/wings/info.php'; |
| 66 | - $module = new BVInfoCallback($this); | |
| 66 | + $module = new WPRInfoCallback($this); | |
| 67 | 67 | break; |
| 68 | 68 | case 'dynsync': |
| 69 | 69 | require_once dirname( __FILE__ ) . '/wings/dynsync.php'; |
| 70 | - $module = new BVDynSyncCallback($this); | |
| 70 | + $module = new WPRDynSyncCallback($this); | |
| 71 | 71 | break; |
| 72 | 72 | case 'ipstr': |
| 73 | 73 | require_once dirname( __FILE__ ) . '/wings/ipstore.php'; |
| 74 | - $module = new BVIPStoreCallback($this); | |
| 74 | + $module = new WPRIPStoreCallback($this); | |
| 75 | 75 | break; |
| 76 | 76 | case 'wtch': |
| 77 | 77 | require_once dirname( __FILE__ ) . '/wings/watch.php'; |
| 78 | - $module = new BVWatchCallback($this); | |
| 78 | + $module = new WPRWatchCallback($this); | |
| 79 | 79 | break; |
| 80 | 80 | case 'brand': |
| 81 | 81 | require_once dirname( __FILE__ ) . '/wings/brand.php'; |
| 82 | - $module = new BVBrandCallback($this); | |
| 82 | + $module = new WPRBrandCallback($this); | |
| 83 | 83 | break; |
| 84 | 84 | case 'pt': |
| 85 | 85 | require_once dirname( __FILE__ ) . '/wings/protect.php'; |
| 86 | - $module = new BVProtectCallback($this); | |
| 86 | + $module = new WPRProtectCallback($this); | |
| 87 | 87 | break; |
| 88 | 88 | case 'act': |
| 89 | 89 | require_once dirname( __FILE__ ) . '/wings/account.php'; |
| 90 | - $module = new BVAccountCallback($this); | |
| 90 | + $module = new WPRAccountCallback($this); | |
| 91 | 91 | break; |
| 92 | 92 | case 'fswrt': |
| 93 | 93 | require_once dirname( __FILE__ ) . '/wings/fs_write.php'; |
| 94 | - $module = new BVFSWriteCallback(); | |
| 94 | + $module = new WPRFSWriteCallback(); | |
| 95 | 95 | break; |
| 96 | 96 | case 'actlg': |
| 97 | 97 | require_once dirname( __FILE__ ) . '/wings/actlog.php'; |
| 98 | - $module = new BVActLogCallback($this); | |
| 98 | + $module = new WPRActLogCallback($this); | |
| 99 | 99 | break; |
| 100 | 100 | case 'speed': |
| 101 | 101 | require_once dirname( __FILE__ ) . '/wings/speed.php'; |
| 102 | - $module = new BVSpeedCallback($this); | |
| 102 | + $module = new WPRSpeedCallback($this); | |
| 103 | 103 | break; |
| 104 | + case 'scrty': | |
| 105 | + require_once dirname( __FILE__ ) . '/wings/security.php'; | |
| 106 | + $module = new WPRSecurityCallback($this); | |
| 107 | + break; | |
| 104 | 108 | default: |
| 105 | 109 | require_once dirname( __FILE__ ) . '/wings/misc.php'; |
| 106 | - $module = new BVMiscCallback($this); | |
| 110 | + $module = new WPRMiscCallback($this); | |
| 107 | 111 | break; |
| 108 | 112 | } |
| 109 | 113 | $resp = $module->process($this->request); |
| 110 | 114 | if ($resp === false) { |
| @@ -120,5 +124,5 @@ | ||
| 120 | 124 | $this->response->addStatus("callbackresponse", $resp); |
| 121 | 125 | return 1; |
| 122 | 126 | } |
| 123 | 127 | } |
| 124 | -endif; | |
| 128 | +endif; | |