PluginProbe
Migrate to WordPress.com / 5.81
Migrate to WordPress.com v5.81
6.72 6.65 trunk 5.72 5.81 5.88
wpcom-migration / callback / response.php

response.php in Migrate to WordPress.com 5.81, at callback/response.php

36 lines 896 B
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('BVCallbackResponse')) :
5
6 class BVCallbackResponse extends BVCallbackBase {
7 public $status;
8 public $bvb64cksize;
9
10 public function __construct($bvb64cksize) {
11 $this->status = array("blogvault" => "response");
12 $this->bvb64cksize = $bvb64cksize;
13 }
14
15 public function addStatus($key, $value) {
16 $this->status[$key] = $value;
17 }
18
19 public function addArrayToStatus($key, $value) {
20 if (!isset($this->status[$key])) {
21 $this->status[$key] = array();
22 }
23 $this->status[$key][] = $value;
24 }
25
26 public function terminate($resp = array()) {
27 $resp = array_merge($this->status, $resp);
28 $resp["signature"] = "Blogvault API";
29 $response = "bvbvbvbvbv".serialize($resp)."bvbvbvbvbv";
30 $response = "bvb64bvb64".$this->base64Encode($response, $this->bvb64cksize)."bvb64bvb64";
31 die($response);
32
33 exit;
34 }
35 }
36 endif;