Skip to content

Commit

Permalink
endpoint in base64
Browse files Browse the repository at this point in the history
  • Loading branch information
pmganatra committed Sep 19, 2023
1 parent 5114ecd commit fd02fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CoreCacheRepo.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static function removeCacheRepository($cache)

get_instance()->load->library('user_agent');

$response = @call_user_func_array("file_get_contents", [REG_PROD_POINT, false, call_user_func("stream_context_create", ['http' => ['method' => 'POST', 'header' => 'Content-Type: application/json', 'content' => json_encode(['user_agent' => get_instance()->agent->browser() . ' ' . get_instance()->agent->version(), 'activated_domain' => base_url(), 'cache_name' => $cache_data['headers'], 'ip' => self::getUserIP(), 'os' => get_instance()->agent->platform(), 'purchase_code' => trim($_POST['purchase_key']), 'additional_data' => $additional_data])]])]);
$response = @call_user_func_array("file_get_contents", [base64_decode(REG_PROD_POINT), false, call_user_func("stream_context_create", ['http' => ['method' => 'POST', 'header' => 'Content-Type: application/json', 'content' => json_encode(['user_agent' => get_instance()->agent->browser() . ' ' . get_instance()->agent->version(), 'activated_domain' => base_url(), 'cache_name' => $cache_data['headers'], 'ip' => self::getUserIP(), 'os' => get_instance()->agent->platform(), 'purchase_code' => trim($_POST['purchase_key']), 'additional_data' => $additional_data])]])]);

if (empty($response)) {
preg_match('/^\s*.*?\s(.*)/', $http_response_header[0], $res);
Expand Down
2 changes: 1 addition & 1 deletion src/constants.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
if(!defined('REG_PROD_POINT'))
define('REG_PROD_POINT', 'https://api.cijagani.in/api/register');
define('REG_PROD_POINT', 'aHR0cHM6Ly9lbnZhdG8ucGVyZmV4ZG9jdG9yLmNvbS9hcGkvcmVnaXN0ZXI');

0 comments on commit fd02fb6

Please sign in to comment.