Line 169... |
Line 169... |
169 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // return response
|
169 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // return response
|
170 |
curl_setopt($ch, CURLOPT_HEADER, true); // enabled response headers
|
170 |
curl_setopt($ch, CURLOPT_HEADER, true); // enabled response headers
|
171 |
// add data for POST, PUT or DELETE requests
|
171 |
// add data for POST, PUT or DELETE requests
|
172 |
if ('POST' == $request_method) {
|
172 |
if ('POST' == $request_method) {
|
173 |
$post_data = is_array($request_params) ? http_build_query($request_params) : $request_params;
|
173 |
$post_data = is_array($request_params) ? http_build_query($request_params) : $request_params;
|
174 |
//$post_data = authReplace($post_data);
|
174 |
$post_data = authReplace($post_data);
|
175 |
curl_setopt($ch, CURLOPT_POST, true);
|
175 |
curl_setopt($ch, CURLOPT_POST, true);
|
176 |
if ($decodeFlag) {
|
176 |
if ($decodeFlag) {
|
177 |
curl_setopt($ch, CURLOPT_POSTFIELDS, urldecode($post_data));
|
177 |
curl_setopt($ch, CURLOPT_POSTFIELDS, urldecode($post_data));
|
178 |
} else {
|
178 |
} else {
|
179 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
|
179 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
|
Line 234... |
Line 234... |
234 |
// finally, output the content
|
234 |
// finally, output the content
|
235 |
print($response_content);
|
235 |
print($response_content);
|
236 |
|
236 |
|
237 |
// insert authorization
|
237 |
// insert authorization
|
238 |
function authReplace($str) {
|
238 |
function authReplace($str) {
|
239 |
$str = str_replace('XxXRuName', 'Uwe_Jacobs-UweJacob-MUNATr-jwkrg', $str);
|
239 |
$str = str_replace('XxXRuNamexxxxxxxxxxxxxxxxxxxxxxx', 'Uwe_Jacobs-UweJacob-MUNATr-jwkrg', $str);
|
240 |
$str = str_replace('XxXAppid', 'UweJacob-MUNATrad-PRD-d132041a0-85284729', $str);
|
240 |
$str = str_replace('XxXAppid', 'UweJacob-MUNATrad-PRD-d132041a0-85284729', $str);
|
241 |
$str = str_replace('XxXDevid', '00fd6fda-3751-4095-b733-3899b20431ad', $str);
|
241 |
$str = str_replace('XxXDevid', '00fd6fda-3751-4095-b733-3899b20431ad', $str);
|
242 |
$str = str_replace('XxXCertid', 'PRD-132041a078aa-1ee6-4300-9454-6c5b', $str);
|
242 |
$str = str_replace('XxXCertid', 'PRD-132041a078aa-1ee6-4300-9454-6c5b', $str);
|
243 |
$str = str_replace('XxXDiscogsToken', 'zFvVdCdHTtQnDHCxEFTJiBhalyHFUsjdyFPCjbqP', $str);
|
243 |
$str = str_replace('XxXDiscogsToken', 'zFvVdCdHTtQnDHCxEFTJiBhalyHFUsjdyFPCjbqP', $str);
|
244 |
$str = str_replace('XxXUSPSUserId', '275MUNAT7574', $str);
|
244 |
$str = str_replace('XxXUSPSUserId', '275MUNAT7574', $str);
|