Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
CModule::IncludeModule("\164\x61\x73\x6b\x73"); if (!CModule::IncludeModule("\141\x73\x6b\..
Decoded Output download
<? CModule::IncludeModule("tasks"); if (!CModule::IncludeModule("askarasoft.module.v2")) { ShowError(GetMessage("Askarasoft Module Not Installed")); return; } use Bitrix\Rest\RestException; final class AsTasksGeotagging extends IRestService { const SCOPE_NAME = "mobile"; public static function OnRestServiceBuildDescription() { $methods = array("as.api.tasks.geotagging.check.subscription" => array(__CLASS__, "CheckAskarasoftSubscription"), "as.api.tasks.geotagging.save" => array(__CLASS__, "SaveGeoTagging")); return array(self::SCOPE_NAME => $methods); } public static function CheckAskarasoftSubscription() : array { $token = "aW85aktVeGRSUXE4dEFlQVk4UTFQcDltb0cwYmZzR0hiaHdsVnlmM0l5a0pZMnFWRklXUWhqNlhnUmVya1h1eQ=="; $url = "https://dev.askarasoft.com:9999/?c=api.subscribe&key=XH8T9GobPRg7nPDzhG6m5CSpgMJet6"; $curlResult = CAskarasoft::Curl2Run("POST", $url, array("token" => $token)); if ($curlResult["status"] != "success") { return array("STATUS" => "FAILED", "DETAIL" => $curlResult["message"]); } $createdDate = $curlResult["data"]["ACTIVE_UNTIL"]; if (strtotime($createdDate) < strtotime(date("Y-m-d H:i:s"))) { return array("STATUS" => "FAILED", "DETAIL" => "Subscription expired"); } return array("STATUS" => "SUCCESS", "DETAIL" => "Subscription active"); } public static function SaveGeoTagging(array $datas) : array { global $USER; $token = "TnN2SDRLcUJOY3E2bjJyZUNEcGJFblNHdlBwS2xhemU5dkZIKzRYTWJjemlLdVByYUl3MDQ2c1BCRy9wNGFzaQ=="; $subscribe = askarasoft_subscribe($token); if (!$subscribe) { return array("STATUS" => "FAILED", "DETAIL" => "Please subscribe task geolocation module. contact askarasoft.com"); } $task = new CTaskItem($datas["TASK_ID"], $USER->GetID()); if (!$task) { return array("STATUS" => "FAILED", "DETAIL" => "Task not found"); } $task->update(array("UF_LATLON" => $datas["LATITUDE"] . ", " . $datas["LONGITUDE"])); $commentId = CTaskCommentItem::add($task, array("POST_MESSAGE" => ucfirst(strtolower($datas["TYPE"])) . " at " . $datas["LATITUDE"] . ", " . $datas["LONGITUDE"])); return array("STATUS" => "SUCCESS", "DETAIL" => "GeoTagging Saved"); } } ?>
Did this file decode correctly?
Original Code
CModule::IncludeModule("\164\x61\x73\x6b\x73"); if (!CModule::IncludeModule("\141\x73\x6b\141\162\141\x73\x6f\146\x74\x2e\155\157\x64\x75\154\145\x2e\166\x32")) { ShowError(GetMessage("\101\163\x6b\141\162\x61\x73\x6f\x66\164\40\x4d\157\144\165\154\x65\x20\116\x6f\x74\40\x49\x6e\163\164\141\154\154\145\144")); return; } use Bitrix\Rest\RestException; final class AsTasksGeotagging extends IRestService { const SCOPE_NAME = "\x6d\x6f\x62\x69\x6c\145"; public static function OnRestServiceBuildDescription() { $methods = array("\141\x73\56\x61\x70\151\x2e\164\141\163\153\163\x2e\147\x65\x6f\164\x61\x67\x67\151\156\147\56\x63\150\145\143\x6b\x2e\163\x75\142\163\x63\x72\151\160\164\x69\157\x6e" => array(__CLASS__, "\103\x68\x65\143\153\101\163\153\x61\162\141\163\x6f\x66\x74\x53\165\142\163\x63\162\x69\160\x74\x69\157\156"), "\x61\163\56\141\x70\x69\56\x74\x61\x73\153\x73\56\x67\145\x6f\164\141\147\x67\151\x6e\147\56\x73\x61\x76\x65" => array(__CLASS__, "\123\141\x76\x65\x47\x65\x6f\x54\x61\x67\x67\151\156\x67")); return array(self::SCOPE_NAME => $methods); } public static function CheckAskarasoftSubscription() : array { $token = "\x61\x57\70\65\x61\x6b\x74\x56\x65\107\122\x53\x55\130\105\64\144\x45\106\x6c\x51\126\153\x34\x55\124\x46\x51\x63\104\154\x74\142\x30\x63\167\x59\x6d\x5a\172\122\60\150\x69\x61\x48\x64\x73\126\156\x6c\155\x4d\60\154\x35\141\x30\160\x5a\x4d\156\106\x57\122\153\154\x58\125\x57\x68\161\116\154\x68\x6e\x55\x6d\126\171\141\61\x68\x31\145\x51\75\75"; $url = "\x68\x74\x74\x70\163\x3a\57\57\x64\145\x76\x2e\x61\x73\x6b\141\162\141\x73\x6f\146\x74\56\x63\157\x6d\x3a\x39\x39\71\x39\57\x3f\x63\x3d\x61\160\151\x2e\x73\x75\x62\163\143\x72\x69\142\145\x26\x6b\145\171\75\x58\x48\x38\124\71\x47\157\x62\120\122\x67\x37\x6e\120\104\x7a\150\107\66\155\65\x43\123\160\x67\115\x4a\x65\x74\x36"; $curlResult = CAskarasoft::Curl2Run("\120\x4f\x53\124", $url, array("\164\x6f\x6b\x65\156" => $token)); if ($curlResult["\x73\164\141\x74\x75\x73"] != "\163\x75\x63\143\x65\x73\x73") { return array("\x53\124\101\124\x55\123" => "\106\x41\x49\x4c\105\104", "\104\105\124\101\111\114" => $curlResult["\155\145\x73\x73\141\x67\x65"]); } $createdDate = $curlResult["\144\141\164\x61"]["\101\x43\x54\x49\126\x45\x5f\x55\x4e\124\x49\114"]; if (strtotime($createdDate) < strtotime(date("\x59\x2d\155\x2d\x64\40\110\x3a\x69\72\163"))) { return array("\x53\x54\101\124\125\x53" => "\x46\101\111\114\x45\x44", "\x44\x45\x54\x41\x49\114" => "\x53\165\x62\163\143\x72\151\160\x74\x69\157\x6e\40\x65\170\160\x69\x72\145\x64"); } return array("\123\124\101\124\x55\123" => "\123\125\103\x43\x45\x53\123", "\104\x45\124\x41\x49\114" => "\123\x75\142\163\143\x72\151\x70\x74\151\x6f\156\x20\141\143\x74\151\166\x65"); } public static function SaveGeoTagging(array $datas) : array { global $USER; $token = "\124\x6e\116\62\123\x44\122\x4c\143\x55\112\117\131\x33\x45\62\x62\152\x4a\171\x5a\125\x4e\105\143\107\112\x46\x62\154\116\110\144\x6c\x42\x77\x53\62\x78\x68\x65\x6d\x55\65\144\153\132\x49\x4b\x7a\x52\131\x54\x57\x4a\x6a\x65\155\154\x4c\144\x56\102\x79\x59\125\154\x33\115\104\x51\62\143\x31\x42\x43\x52\171\71\x77\116\x47\x46\x7a\141\121\x3d\75"; $subscribe = askarasoft_subscribe($token); if (!$subscribe) { return array("\x53\x54\101\x54\125\123" => "\106\101\x49\x4c\x45\104", "\x44\x45\x54\101\x49\x4c" => "\x50\154\x65\141\163\145\40\163\165\x62\163\x63\x72\x69\142\145\40\x74\x61\163\x6b\40\147\145\x6f\154\x6f\x63\141\164\151\157\156\40\155\x6f\144\165\x6c\x65\x2e\x20\x63\x6f\156\x74\x61\x63\x74\x20\141\x73\x6b\141\x72\141\163\x6f\x66\164\x2e\143\157\x6d"); } $task = new CTaskItem($datas["\124\101\123\113\x5f\111\104"], $USER->GetID()); if (!$task) { return array("\123\124\101\124\x55\x53" => "\x46\x41\x49\x4c\105\x44", "\104\x45\124\101\x49\x4c" => "\124\x61\163\x6b\40\x6e\157\x74\x20\146\x6f\165\x6e\x64"); } $task->update(array("\125\106\137\114\x41\x54\114\117\x4e" => $datas["\x4c\x41\x54\111\x54\x55\104\105"] . "\x2c\x20" . $datas["\114\117\116\x47\111\x54\125\x44\105"])); $commentId = CTaskCommentItem::add($task, array("\x50\117\x53\124\137\115\105\x53\x53\x41\x47\x45" => ucfirst(strtolower($datas["\x54\131\120\105"])) . "\40\x61\164\40" . $datas["\114\x41\124\x49\x54\125\x44\x45"] . "\54\40" . $datas["\x4c\117\x4e\107\111\x54\x55\x44\x45"])); return array("\123\x54\x41\x54\x55\123" => "\123\125\x43\103\105\123\123", "\104\x45\124\x41\111\114" => "\107\145\157\x54\141\147\147\x69\x6e\147\40\x53\x61\x76\x65\x64"); } }
Function Calls
None |
Stats
MD5 | 9cd2ea2754b3ea1953e934445d83b5a8 |
Eval Count | 0 |
Decode Time | 49 ms |