Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


Show other level

if ($_REQUEST["ACTION"] == "TASKSFORM") {
		$firms = array();
		$company_db = CIBlockElement::GetList(
			array("SORT" => "ASC"),
			array(
				"IBLOCK_ID" => IBLOCK_COMPANY,
				"ACTIVE" => "Y",
				"PROPERTY_ADMIN" => $_SESSION["CRM_ADMIN"]["ADMIN"]["ID"]
			),
			false,
			false,
			array()
		);
		while ($company = $company_db->GetNext()) {
			$firms[] = $company;
		}
		$users = get_users($firms);
		$type_task = 0;
		$type_block = "task";
		$types_db = CIBlockElement::GetList(
			array("SORT" => "ASC"),
			array(
				"IBLOCK_ID" => IBLOCK_GUIDES_TASKTYPE,
				"ACTIVE" => "Y",
				"CODE" => $_SESSION["CRM_ADMIN"]["ADMIN"]["ID"]
			),
			false,
			false,
			array(
				"ID",
				"NAME",
				"PROPERTY_DEFAULT",
				"PROPERTY_COLOR",
				"PROPERTY_CLAIM"
			)
		);
		while ($type_item = $types_db->GetNext()) {
			if ($type_item["PROPERTY_CLAIM_VALUE"] ==
				"да" and
				$_REQUEST["ACTION"] == "CLAIMSFORM") {
				$type_task = $type_item["ID"];
				$type_block = "claim";
				$status_claim = 0;
				$status_db = CIBlockElement::GetList(
					array("SORT" => "ASC"),
					array(
						"IBLOCK_ID" => IBLOCK_GUIDES_STATUSCLAIM,
						"ACTIVE" => "Y",
						"CODE" => $_SESSION["CRM_ADMIN"]["ADMIN"]["ID"]
					),
					false,
					false,
					array(
						"ID",
						"NAME",
						"PROPERTY_DEFAULT",
						"PROPERTY_COLOR"
					)
				);
				while ($status_item = $status_db->GetNext()) {
					if ($status_item["PROPERTY_DEFAULT_VALUE"] ==
						"да") {
						$status_claim = $status_item["ID"];
					}
				}
			} else {
				if ($type_item["PROPERTY_DEFAULT_VALUE"] ==
					"да") {
					$type_task = $type_item["ID"];
				}
			}
		}

if ($_REQUEST["ACTION"] == "TASKSFORM") {
		$firms = array();
		$company_db = CIBlockElement::GetList(
			array("SORT" => "ASC"),
			array(
				"IBLOCK_ID" => IBLOCK_COMPANY,
				"ACTIVE" => "Y",
				"PROPERTY_ADMIN" => $_SESSION["CRM_ADMIN"]["ADMIN"]["ID"]
			),
			false,
			false,
			array()
		);
		while ($company = $company_db->GetNext()) {
			$firms[] = $company;
		}
		$users = get_users($firms);
		$type_task = 0;
		
		$types_db = CIBlockElement::GetList(
			array("SORT" => "ASC"),
			array(
				"IBLOCK_ID" => IBLOCK_GUIDES_TASKTYPE,
				"ACTIVE" => "Y",
				"CODE" => $_SESSION["CRM_ADMIN"]["ADMIN"]["ID"]
			),
			false,
			false,
			array(
				"ID",
				"NAME",
				"PROPERTY_DEFAULT",
				"PROPERTY_COLOR",
				"PROPERTY_CLAIM"
			)
		);
		while ($type_item = $types_db->GetNext()) {
			if ($type_item["PROPERTY_CLAIM_VALUE"] ==
				"да" and
				$_REQUEST["ACTION"] == "CLAIMSFORM") {
				$type_task = $type_item["ID"];
				"task" = "claim";
				$status_claim = 0;
				$status_db = CIBlockElement::GetList(
					array("SORT" => "ASC"),
					array(
						"IBLOCK_ID" => IBLOCK_GUIDES_STATUSCLAIM,
						"ACTIVE" => "Y",
						"CODE" => $_SESSION["CRM_ADMIN"]["ADMIN"]["ID"]
					),
					false,
					false,
					array(
						"ID",
						"NAME",
						"PROPERTY_DEFAULT",
						"PROPERTY_COLOR"
					)
				);
				while ($status_item = $status_db->GetNext()) {
					if ($status_item["PROPERTY_DEFAULT_VALUE"] ==
						"да") {
						$status_claim = $status_item["ID"];
					}
				}
			} else {
				if ($type_item["PROPERTY_DEFAULT_VALUE"] ==
					"да") {
					$type_task = $type_item["ID"];
				}
			}
		}



© 2021 Quttera Ltd. All rights reserved.