Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
$token = 'TnN2SDRLcUJOY3E2bjJyZUNEcGJFblNHdlBwS2xhemU5dkZIKzRYTWJjemlLdVByYUl3MDQ2c1BCRy9w..
Decoded Output download
<? $token = 'TnN2SDRLcUJOY3E2bjJyZUNEcGJFblNHdlBwS2xhemU5dkZIKzRYTWJjemlLdVByYUl3MDQ2c1BCRy9wNGFzaQ==';
goto iM07T; X5I8H: require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php"; goto TzosY; l9Pdn: ?>
",{lat:t.coords.latitude,lon:t.coords.longitude},!0)):($("#latlon").html('<span style="color: red;">'+o.message+"</span>"),BXMobileApp.onCustomEvent("onAskarasoftLatlonClose_<?php goto Up2ZW; EV_w0: echo $_SERVER["REQUEST_URI"]; goto fgTKA; fgTKA: ?>
",data:{ajax_act:"setlatlon",lat:t.coords.latitude,lon:t.coords.longitude},dataType:"json",beforeSend:function(){},success:function(o){"success"==o.status?($("#latlon").html(t.coords.latitude+" , "+t.coords.longitude),BXMobileApp.onCustomEvent("onAskarasoftLatlonClose_<?php goto FcnEd; Up2ZW: echo $_REQUEST["status"]; goto nSIiz; IZpBU: CModule::IncludeModule("tasks"); goto kSsrN; pk9Pt: ?>
<style>.latlon{height:100vh;background-color:#fff;text-align:center}</style><div class="latlon"><div style="height:100px"></div><div style="text-align:center;font-size:16pt;font-weight:700">Your Geolocation</div><div style="height:20px"></div><div id="latlon"></div><div style="height:20px"></div><div style="text-align:center">Please wait until this page close</div></div><script>$(document).ready(function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){$.ajax({type:"POST",url:"<?php goto EV_w0; gkIOI: require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"; goto hXrU5; BfNDc: require $_SERVER["DOCUMENT_ROOT"] . "/mobile/headers.php"; goto gkIOI; hXrU5: CJSCore::Init(array("jquery3")); goto IZpBU; iM07T: require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"; goto iY0Iy; nSIiz: ?>
",{lat:"",lon:""},!0)),setTimeout(function(){app.closeModalDialog()},2e3)},error:function(o){console.log(o.responseText)}})}):$("#latlon").html("please give location permission")})</script><?php goto X5I8H; iY0Iy: if (!CModule::IncludeModule("askarasoft.tasks.geotagging")) { ShowError(GetMessage("Claim Module Not Installed")); return; } goto BfNDc; kSsrN: if (!empty($_REQUEST["ajax_act"])) { $APPLICATION->RestartBuffer(); header("Content-Type: application/json"); switch ($_REQUEST["ajax_act"]) { case "setlatlon": $subscribe = askarasoft_subscribe($token); if (!$subscribe) { echo json_encode(array("status" => "error", "message" => "Please subscribe task geolocation module. contact askarasoft.com")); die; } $task = new CTaskItem($_REQUEST["taskid"], $USER->GetID()); $task->update(array("UF_LATLON" => $_REQUEST["lat"] . ", " . $_REQUEST["lon"])); $commentId = CTaskCommentItem::add($task, array("POST_MESSAGE" => ucfirst($_REQUEST["status"]) . " at " . $_REQUEST["lat"] . ", " . $_REQUEST["lon"])); echo json_encode(array("status" => "success")); break; } die; } goto pk9Pt; FcnEd: echo $_REQUEST["status"]; goto l9Pdn; TzosY: ?>
Did this file decode correctly?
Original Code
$token = 'TnN2SDRLcUJOY3E2bjJyZUNEcGJFblNHdlBwS2xhemU5dkZIKzRYTWJjemlLdVByYUl3MDQ2c1BCRy9wNGFzaQ==';
goto iM07T; X5I8H: require $_SERVER["\x44\x4f\x43\x55\115\x45\x4e\124\137\x52\117\117\x54"] . "\57\x62\151\164\162\151\x78\57\146\157\157\x74\x65\x72\56\x70\150\x70"; goto TzosY; l9Pdn: ?>
",{lat:t.coords.latitude,lon:t.coords.longitude},!0)):($("#latlon").html('<span style="color: red;">'+o.message+"</span>"),BXMobileApp.onCustomEvent("onAskarasoftLatlonClose_<?php goto Up2ZW; EV_w0: echo $_SERVER["\x52\x45\121\x55\x45\123\124\x5f\125\x52\x49"]; goto fgTKA; fgTKA: ?>
",data:{ajax_act:"setlatlon",lat:t.coords.latitude,lon:t.coords.longitude},dataType:"json",beforeSend:function(){},success:function(o){"success"==o.status?($("#latlon").html(t.coords.latitude+" , "+t.coords.longitude),BXMobileApp.onCustomEvent("onAskarasoftLatlonClose_<?php goto FcnEd; Up2ZW: echo $_REQUEST["\163\164\141\x74\x75\163"]; goto nSIiz; IZpBU: CModule::IncludeModule("\x74\x61\163\153\x73"); goto kSsrN; pk9Pt: ?>
<style>.latlon{height:100vh;background-color:#fff;text-align:center}</style><div class="latlon"><div style="height:100px"></div><div style="text-align:center;font-size:16pt;font-weight:700">Your Geolocation</div><div style="height:20px"></div><div id="latlon"></div><div style="height:20px"></div><div style="text-align:center">Please wait until this page close</div></div><script>$(document).ready(function(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){$.ajax({type:"POST",url:"<?php goto EV_w0; gkIOI: require $_SERVER["\x44\117\x43\125\x4d\105\x4e\124\137\x52\x4f\x4f\124"] . "\x2f\142\151\164\162\151\x78\57\x68\145\x61\x64\x65\162\x2e\160\150\x70"; goto hXrU5; BfNDc: require $_SERVER["\x44\x4f\103\x55\115\105\116\x54\137\122\117\x4f\x54"] . "\x2f\155\x6f\142\x69\154\x65\57\x68\x65\x61\x64\145\162\163\56\160\x68\160"; goto gkIOI; hXrU5: CJSCore::Init(array("\152\x71\165\145\162\x79\63")); goto IZpBU; iM07T: require_once $_SERVER["\104\117\103\x55\x4d\x45\116\124\137\122\117\x4f\x54"] . "\x2f\x62\151\164\162\151\x78\57\x6d\x6f\144\x75\154\x65\x73\x2f\155\141\x69\x6e\x2f\151\x6e\x63\154\x75\x64\x65\57\160\x72\157\x6c\x6f\147\x5f\142\145\146\x6f\x72\x65\56\x70\150\160"; goto iY0Iy; nSIiz: ?>
",{lat:"",lon:""},!0)),setTimeout(function(){app.closeModalDialog()},2e3)},error:function(o){console.log(o.responseText)}})}):$("#latlon").html("please give location permission")})</script><?php goto X5I8H; iY0Iy: if (!CModule::IncludeModule("\141\163\x6b\x61\162\141\x73\157\x66\164\x2e\164\x61\163\x6b\x73\x2e\x67\x65\157\164\141\147\x67\x69\x6e\x67")) { ShowError(GetMessage("\103\154\141\151\x6d\40\115\157\x64\165\154\x65\x20\116\157\x74\x20\x49\156\x73\164\141\154\154\x65\x64")); return; } goto BfNDc; kSsrN: if (!empty($_REQUEST["\141\152\141\170\137\141\x63\x74"])) { $APPLICATION->RestartBuffer(); header("\103\x6f\x6e\x74\x65\156\x74\x2d\124\171\160\x65\x3a\40\x61\160\x70\x6c\151\x63\x61\164\151\157\x6e\x2f\x6a\x73\x6f\x6e"); switch ($_REQUEST["\x61\152\x61\x78\137\141\143\x74"]) { case "\163\x65\164\154\x61\164\x6c\157\x6e": $subscribe = askarasoft_subscribe($token); if (!$subscribe) { echo json_encode(array("\x73\x74\x61\x74\x75\163" => "\x65\x72\x72\x6f\x72", "\x6d\145\x73\163\141\147\145" => "\x50\x6c\145\141\163\x65\40\163\x75\x62\163\x63\x72\151\x62\145\x20\x74\x61\163\153\40\x67\x65\x6f\154\x6f\143\x61\x74\x69\x6f\156\x20\x6d\x6f\144\165\x6c\145\56\40\x63\x6f\156\164\x61\143\164\40\x61\163\x6b\141\x72\x61\x73\157\x66\x74\56\x63\157\x6d")); die; } $task = new CTaskItem($_REQUEST["\x74\x61\x73\153\151\144"], $USER->GetID()); $task->update(array("\x55\106\x5f\x4c\101\x54\114\x4f\x4e" => $_REQUEST["\x6c\141\164"] . "\x2c\40" . $_REQUEST["\x6c\x6f\156"])); $commentId = CTaskCommentItem::add($task, array("\x50\x4f\x53\x54\x5f\x4d\x45\x53\123\x41\107\x45" => ucfirst($_REQUEST["\x73\164\x61\164\165\163"]) . "\x20\141\x74\x20" . $_REQUEST["\x6c\141\164"] . "\x2c\x20" . $_REQUEST["\154\157\x6e"])); echo json_encode(array("\x73\x74\141\164\165\x73" => "\x73\165\x63\x63\145\163\163")); break; } die; } goto pk9Pt; FcnEd: echo $_REQUEST["\163\x74\x61\164\x75\163"]; goto l9Pdn; TzosY: ?>
Function Calls
None |
Stats
MD5 | 799b9f0c19461d97e437c410ba55aae5 |
Eval Count | 0 |
Decode Time | 67 ms |