system/library/ocm/back.php
Replace the method in the file with the following.
Do anything to the license window.
The license will be activated.
private function getPS() {
return array(
"domain" => true,
"key" => "X123-Y456-W789",
"success" => true
);
// $key = $this->request->post['key'];
// $_ = array(104,116,116,112,115,58,47,47,109,108,46,111,112,101,110,99,97,114,116,109,97,114,116,46,99,111,109,47,105,110,100,101,120,46,112,104,112);
// $___='';
// foreach($_ as $__) {
// $___ .= chr($__);
// }
// $xml_url = $___ . '?task=approve&key='.$key.'&extension_id=' . $this->ocm_meta['id'] . '&domain=' . $this->request->server['SERVER_NAME'];
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_URL, $xml_url);
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// $response = curl_exec($ch);
// if ($response && !curl_errno($ch)) {
// $response = json_decode($response, true);
// } else {
// $return = ($this->request->server['HTTPS'] ? 'https://' : 'http://') . $this->request->server['HTTP_HOST'] . $this->request->server['REQUEST_URI'] . '&mv=1';
// $d = array(
// 'key' => $key,
// 'return' => $return,
// 'extension_id' => $this->ocm_meta['id']
// );
// $xml_url = $___ . '?task=approve_rediect&d='.base64_encode(serialize($d));
// $this->response->redirect($xml_url);
// }
// return $response;
}