Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
eval(gzinflate(substr(base64_decode('H4sIAAAAAAAAC31UYU/bMBD9jtT/cIsqtWhJCxOfBhSxwjY0prE2m..
Decoded Output download
//Passing thr http 200 ok header to override the 404 error by wp-blog-header.php
header("HTTP/1.1 200 OK");
//Setting the content tyoe of document to XML, So, callers should treat this accordingly
header('Content-type: text/xml');
require "config.php";
require "db.php";
require 'twilio_header.php';
//Retrieving the DialCallSid from request params as this will be used
//for retriving call To and From numbers
//They are not supllied in request params
$DialCallSid = $_REQUEST['DialCallSid'];
Global $AccountSid, $AuthToken;
//Creating a new instance of Twilio API
$client = new Services_Twilio($AccountSid, $AuthToken);
// Get an object from its sid. If you do not have a sid,
$call = $client->account->calls->get($DialCallSid);
//The fields below are supllied to us empty, therefore, retrieving fields from API response only
//Retrieving the To number
$_REQUEST['To'] = $call->to;
//Retrieving the From number
$_REQUEST['From'] = $call->from;
//Retrieving the Called number
$_REQUEST['Called'] = $call->called;
//Retrieving the Caller number
$_REQUEST['Caller'] = $call->caller;
$db = new DB();
$resp = $db->save_outgoing_call();
//<!--??return the XML response to twilio-->
//<!--They require this to confirm successfull post of data here-->
//$file=fopen("outgoing_log.txt","a+");
//fwrite($file, "[RECV CALL DETAILS]
");
//fwrite($file,print_r($_REQUEST, true));
//fwrite($file,print_r($resp,true)."
");
//fwrite($file, "[/RECV CALL DETAILS]
");
//fclose($file);
?>
<Response/>
Did this file decode correctly?
Original Code
eval(gzinflate(substr(base64_decode('H4sIAAAAAAAAC31UYU/bMBD9jtT/cIsqtWhJCxOfBhSxwjY0prE2myYxVDnJpfFw7cx2Wvrvd7Zb2kHhW2s/v3v33l1ae/3+DTOGyynYSkNlbQ3vDg5A3UOFrEANVoGao9a8QIIgHB0cAf1VGrIlLOokE2qaBGyvrurWXvjdjT6n6U3/sHfo+b59ifaPW3stqjdGa0M9hFxJi9KCXSoEVUKh8mbmDxT8+nodw1jFkDMhUBswlWpEAVYjI0DFDbA8V7ogMrF8rNsZBs7ELmt8DxYfbP9hJjqhvMa/DdcIEVUu+dQpjo63jovs6VHHLrjgarJpsbNqZIRWc5yve7ngTAxJ6pgXUGo1A8eAxkLNNJuRWBNEE52ADKExWIDjKclL7bg8lesWUgVMFvDR0chmllH7DplWuARGoqSyYJpaCE4cXD4p1dprb4s5hfZkdPn9x+U4ve1sXXTufCOfhMqYgPY5mdlISxcx/Wlslap7lKteh850J4+BxAWVNJbJ3GeWen/g/OaKumnnJInyO/WwMeo5z9FMAqb7Qg0XTb8Pn9BS16CyP5jbYCG3FDsvenBVwlI1NB++9YrNkZTQTexKOseoyVA6GbBQJBm4C5MMpmi724asB5HchJKjKAzFIdTCO/voKk1gYwBntV3GLl+NlBPGIamQ+uqxV+ra12hqJQ25It1APpsQSjWESaI3iaSqc+flk7pkYNXu6doahf9eu/Pt907MbgbXPfW1gyPcbLP4lSte4dEv8uhnPNrzELLIVnNx8aEbQmg7yxy8yJKBoVQnqrFTRaUm7ml3HdXJmyQ5OyPrGy29CPo4bOymqMKSJslgjfarst5hv3eE8kuvZxRyTlNpyoYGp1a0N+7TwywDF/OKpF1ygaelqlF2o0dV9LHr2QcbxRF7G4W5LReaW+x6fAzR7ehy+BOG59fXcHGZnl9dj+9+y13QWnNpJ7r7aCCNmW5w/zWoazn2qF60m5UE9Hcp2KBzocwK7U7OqNuT0crK/uAflZmYWhIGAAA='),10,-8)));
Function Calls
substr | 1 |
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | 6e1508fb1a753d784caa363fa0d952c5 |
Eval Count | 1 |
Decode Time | 76 ms |