| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/repository/wp-content/plugins/jetpack/sync/ |
Upload File : |
<?php
require_once dirname( __FILE__ ) . '/class.jetpack-sync-json-deflate-array-codec.php';
/**
* An implementation of iJetpack_Sync_Codec that uses gzip's DEFLATE
* algorithm to compress objects serialized using json_encode
*/
class Jetpack_Sync_Simple_Codec extends Jetpack_Sync_JSON_Deflate_Array_Codec {
const CODEC_NAME = "simple";
public function name() {
return self::CODEC_NAME;
}
public function encode( $object ) {
return base64_encode( $this->json_serialize( $object ) );
}
public function decode( $input ) {
return $this->json_unserialize( base64_decode( $input ) );
}
}