Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto GrpqM; vkm6h: require "\151\156\143\x6c\165\x64\145\163\x2f\x70\x61\x67\151\156\x6..
Decoded Output download
<?
goto GrpqM; vkm6h: require "includes/pagination.php"; goto D8_HW; OX9MZ: if (isset($_GET["delete"]) && !empty($_GET["delete"])) { $id = mysqli_real_escape_string($con, $_GET["delete"]); $sql = "DELETE FROM clients WHERE id='{$id}'"; if (mysqli_query($con, $sql)) { $alerts[] = alert("Deleted successfully", "success"); } else { $alerts[] = alert(mysqli_error($con), "danger"); } } goto qKp4F; h97KA: if (empty($_SESSION["name"])) { header("location: login.php"); } goto HIxPI; R9nsd: $limit = 50; goto oaeMh; ulz4x: while ($row = mysqli_fetch_assoc($rows)) { $admin = $row["admin"] == 1 ? "<i class="glyphicon glyphicon-ok" style="color: green;"></i>" : "<i class="glyphicon glyphicon-remove" style="color: red;"></i>"; echo "<tr>
\x9 \x9 <td>" . $row["id"] . "</td>
\x9 \x9 \x9\x9<td>" . $row["name"] . "</td>\xa\x9\x9\x9 \x9\x9 \x9\x9\x9<td>" . $row["phone"] . "</td>
\x9\x9 \x9\x9\x9\x9 \x9<td>" . $row["address"] . "</td>
\x9 \x9\x9 \x9\x9\x9 <td>" . $row["loan"] . "</td>
\x9 <td>\xa \x9 \x9 \x9\x9<a href="edit-client.php?edit=" . $row["id"] . "" class="btn btn-info btn-sm" title="Edit"><i class="glyphicon glyphicon-pencil"></i></a>
\x9 \x9\x9\x9 \x9 <a href="?delete=" . $row["id"] . "" class="btn btn-danger btn-sm" title="Delete" onclick="return confirm('Are you sure?')"><i class="glyphicon glyphicon-trash"></i></a>\xa \x9\x9 \x9 \x9</td>
\x9 \x9 \x9 </tr>"; } goto T5fZ8; gjImv: $search = ''; goto aBdzJ; oscwj: echo $pagination->createLinks(); goto LD3oR; T5fZ8: ?>
</tbody></table></div><div class="text-center"><?php goto oscwj; RzKOz: if (count($alerts) > 0) { foreach ($alerts as $alert) { echo $alert; } } goto iPuNs; EDzkR: $alerts = array(); goto duwuf; TramW: ?>
</head><body><?php goto CSC79; hLot0: $rows = mysqli_query($con, $sql); goto ulz4x; SdxjQ: $page_url = "?" . http_build_query($obj); goto OX9MZ; LWHmk: ?>
<div class="padding-md"><?php goto RzKOz; jMi_q: $sql = "SELECT clients.id, clients.name, clients.phone, clients.address, ((SELECT SUM(sales.selling_price * sales.amount) FROM sales WHERE sales.transaction IN (SELECT payments.transaction FROM payments WHERE payments.client = clients.id)) - (SELECT SUM(payments.cash + payments.card) FROM payments WHERE payments.client = clients.id)) AS loan FROM clients WHERE {$filter}"; goto VhDdq; HIxPI: if ($_SESSION["admin"] != 1) { header("location: login.php"); } goto cKeuh; VhDdq: $data = mysqli_query($con, $sql); goto G_4wm; qKp4F: ?>
<!doctypehtml><html><head><?php goto iHRRt; G_4wm: $count = mysqli_num_rows($data); goto pNJFV; LD3oR: ?>
</div></div></body></html><?php goto eiDWs; pNJFV: $cfg = array("baseURL" => $page_url, "totalRows" => $count, "perPage" => $limit); goto JyWnL; aBdzJ: if (isset($_GET["search"]) && !empty($_GET["search"])) { $search = mysqli_real_escape_string($con, $_GET["search"]); $filter = "name LIKE '%{$search}%'"; } goto T6G8k; T6G8k: $obj = array("search" => $search); goto SdxjQ; onxyb: $sql = $sql . " LIMIT {$offset}, {$limit}"; goto hLot0; eiDWs: mysqli_close($con); goto CHks8; Zwep_: require "includes/functions.php"; goto vkm6h; D8_HW: if (!isActivated()) { header("location: activation.php"); } goto h97KA; GrpqM: require "includes/db.php"; goto Zwep_; iHRRt: include "widgets/assets.php"; goto TramW; JyWnL: $pagination = new Pagination($cfg); goto onxyb; CSC79: include "widgets/header.php"; goto LWHmk; oaeMh: $offset = !empty($_GET["page"]) ? ($_GET["page"] - 1) * $limit : 0; goto jMi_q; cKeuh: $page = "clients"; goto EDzkR; iPuNs: ?>
<div class="padding-b-md"><a class="btn btn-success"href="add-client.php"><i class="fa fa-plus"></i> </a><form class="form-inline pull-right"><div class="input-group"><input class="form-control"name="search"placeholder=""><div class="input-group-btn"><button class="btn btn-default"type="submit"><i class="fa fa-search"></i></button></div></div></form></div><div class="table-responsive"><table class="table table-bordered table-condensed"><thead><tr><th>ID</th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody><?php goto R9nsd; duwuf: $filter = "true"; goto gjImv; CHks8: ?>
Did this file decode correctly?
Original Code
goto GrpqM; vkm6h: require "\151\156\143\x6c\165\x64\145\163\x2f\x70\x61\x67\151\156\x61\x74\151\157\156\x2e\160\150\x70"; goto D8_HW; OX9MZ: if (isset($_GET["\144\x65\154\145\164\145"]) && !empty($_GET["\x64\145\x6c\145\164\x65"])) { $id = mysqli_real_escape_string($con, $_GET["\x64\x65\x6c\x65\x74\x65"]); $sql = "\x44\x45\114\105\x54\x45\x20\x46\x52\117\x4d\40\143\154\151\145\156\x74\x73\x20\x57\110\x45\x52\105\40\151\x64\x3d\47{$id}\x27"; if (mysqli_query($con, $sql)) { $alerts[] = alert("\x44\x65\154\145\x74\145\144\40\x73\165\143\x63\145\163\163\146\165\x6c\154\x79", "\x73\165\143\x63\x65\x73\x73"); } else { $alerts[] = alert(mysqli_error($con), "\144\141\156\x67\145\162"); } } goto qKp4F; h97KA: if (empty($_SESSION["\x6e\x61\x6d\x65"])) { header("\154\x6f\x63\x61\164\x69\157\156\72\40\154\157\x67\151\x6e\56\x70\150\x70"); } goto HIxPI; R9nsd: $limit = 50; goto oaeMh; ulz4x: while ($row = mysqli_fetch_assoc($rows)) { $admin = $row["\x61\x64\x6d\x69\156"] == 1 ? "\74\151\x20\x63\154\141\163\x73\x3d\42\147\154\171\160\150\151\143\x6f\156\40\x67\x6c\171\160\x68\151\143\x6f\x6e\55\157\x6b\42\40\x73\164\x79\x6c\145\75\x22\143\x6f\x6c\x6f\x72\x3a\x20\x67\x72\145\145\x6e\x3b\42\x3e\74\57\x69\x3e" : "\74\x69\x20\x63\154\141\163\x73\x3d\42\147\x6c\171\160\150\151\143\x6f\156\x20\x67\154\171\160\150\151\x63\157\x6e\55\x72\145\155\157\166\145\x22\40\163\x74\x79\x6c\x65\x3d\x22\x63\157\x6c\x6f\x72\x3a\40\x72\145\144\73\x22\x3e\74\57\151\x3e"; echo "\x3c\164\162\x3e\12\11\11\11\x9\11\11\11\11\x9\11\74\164\144\x3e" . $row["\151\x64"] . "\x3c\57\164\x64\x3e\12\11\11\x9\11\11\11\x9\11\x9\x9\74\164\x64\x3e" . $row["\156\x61\155\145"] . "\74\x2f\x74\x64\76\xa\x9\x9\x9\11\x9\x9\11\x9\x9\x9\74\164\x64\76" . $row["\160\150\157\156\145"] . "\74\57\x74\144\x3e\12\x9\x9\11\x9\x9\x9\x9\11\11\x9\x3c\164\144\x3e" . $row["\x61\x64\144\162\145\163\x73"] . "\x3c\x2f\164\x64\x3e\12\x9\11\11\x9\x9\11\x9\x9\x9\11\74\164\144\x3e" . $row["\154\157\141\156"] . "\x3c\x2f\164\x64\x3e\12\x9\11\11\11\11\11\11\11\11\11\x3c\164\x64\x3e\xa\11\11\x9\11\11\11\x9\11\11\x9\x9\74\141\x20\150\162\x65\x66\x3d\42\145\144\x69\164\x2d\x63\x6c\x69\x65\x6e\164\x2e\x70\x68\x70\77\145\x64\151\164\x3d" . $row["\x69\144"] . "\x22\40\143\x6c\141\x73\163\x3d\42\142\164\x6e\40\142\x74\x6e\x2d\x69\x6e\x66\x6f\x20\x62\164\156\x2d\x73\x6d\x22\40\x74\151\164\x6c\145\75\x22\x45\x64\x69\x74\42\x3e\74\x69\40\143\x6c\x61\163\x73\75\42\147\154\171\x70\150\x69\143\x6f\156\40\147\x6c\171\x70\x68\151\143\157\x6e\x2d\x70\x65\x6e\x63\x69\154\42\x3e\74\57\151\76\x3c\x2f\141\x3e\12\x9\11\11\11\x9\x9\x9\11\x9\11\11\x3c\141\x20\x68\x72\x65\x66\75\42\x3f\144\x65\154\x65\164\145\x3d" . $row["\x69\144"] . "\42\40\143\x6c\x61\x73\x73\x3d\x22\142\164\156\x20\x62\x74\x6e\x2d\x64\x61\156\147\x65\x72\40\x62\164\x6e\55\x73\155\42\40\x74\x69\164\x6c\x65\75\x22\104\145\154\145\x74\145\x22\x20\157\156\x63\154\151\143\153\x3d\x22\x72\x65\x74\x75\162\x6e\40\143\x6f\156\146\x69\x72\x6d\x28\x27\x41\162\145\x20\x79\157\x75\40\x73\165\162\145\x3f\x27\51\42\x3e\x3c\151\x20\143\x6c\x61\163\x73\x3d\x22\x67\154\x79\x70\x68\151\x63\157\156\40\147\x6c\x79\160\150\x69\143\x6f\x6e\x2d\x74\x72\x61\x73\150\42\x3e\x3c\x2f\151\x3e\74\x2f\141\x3e\xa\11\x9\x9\11\x9\11\11\11\11\x9\74\x2f\x74\144\76\12\x9\11\11\x9\11\11\11\x9\11\x3c\57\164\162\76"; } goto T5fZ8; gjImv: $search = ''; goto aBdzJ; oscwj: echo $pagination->createLinks(); goto LD3oR; T5fZ8: ?>
</tbody></table></div><div class="text-center"><?php goto oscwj; RzKOz: if (count($alerts) > 0) { foreach ($alerts as $alert) { echo $alert; } } goto iPuNs; EDzkR: $alerts = array(); goto duwuf; TramW: ?>
</head><body><?php goto CSC79; hLot0: $rows = mysqli_query($con, $sql); goto ulz4x; SdxjQ: $page_url = "\x3f" . http_build_query($obj); goto OX9MZ; LWHmk: ?>
<div class="padding-md"><?php goto RzKOz; jMi_q: $sql = "\x53\105\114\x45\103\124\40\x63\x6c\151\145\156\164\x73\x2e\151\x64\54\x20\143\154\151\x65\156\x74\163\56\156\141\x6d\145\x2c\x20\x63\x6c\151\145\156\x74\x73\56\x70\150\157\x6e\x65\54\40\143\154\151\x65\x6e\164\163\56\x61\144\x64\x72\x65\163\x73\54\40\x28\x28\x53\x45\114\x45\x43\x54\40\x53\125\115\50\163\141\x6c\x65\163\56\163\145\x6c\x6c\151\156\x67\137\160\x72\x69\143\145\x20\x2a\x20\163\141\154\x65\163\56\141\155\x6f\165\156\164\51\40\x46\x52\117\115\40\x73\141\154\x65\x73\40\x57\x48\105\122\x45\40\x73\141\154\x65\x73\x2e\x74\x72\141\x6e\x73\141\143\164\151\157\156\x20\111\116\x20\50\x53\105\x4c\105\x43\x54\40\160\x61\171\x6d\145\156\164\163\x2e\x74\162\x61\156\x73\x61\143\164\151\157\156\40\106\122\x4f\115\40\160\141\171\x6d\145\x6e\x74\x73\x20\127\110\105\x52\x45\40\x70\141\171\x6d\x65\x6e\x74\x73\x2e\x63\x6c\x69\145\x6e\x74\40\x3d\x20\x63\154\151\145\x6e\x74\163\56\x69\144\51\x29\40\x2d\40\x28\x53\x45\x4c\x45\103\124\x20\123\125\x4d\x28\160\x61\x79\x6d\145\x6e\164\x73\56\x63\x61\163\150\40\53\x20\x70\x61\x79\155\145\x6e\x74\163\x2e\143\141\x72\144\x29\40\x46\122\x4f\115\40\160\x61\x79\155\145\156\164\163\x20\x57\x48\x45\x52\x45\40\x70\141\171\155\145\156\164\163\56\143\154\x69\145\x6e\x74\40\75\x20\x63\x6c\151\x65\x6e\x74\x73\56\151\x64\51\51\40\101\x53\40\154\x6f\x61\x6e\x20\x46\122\x4f\115\40\x63\x6c\x69\x65\156\x74\x73\40\127\110\x45\122\105\40{$filter}"; goto VhDdq; HIxPI: if ($_SESSION["\x61\144\x6d\x69\x6e"] != 1) { header("\154\x6f\x63\x61\x74\151\157\x6e\72\x20\x6c\157\x67\151\x6e\x2e\x70\150\160"); } goto cKeuh; VhDdq: $data = mysqli_query($con, $sql); goto G_4wm; qKp4F: ?>
<!doctypehtml><html><head><?php goto iHRRt; G_4wm: $count = mysqli_num_rows($data); goto pNJFV; LD3oR: ?>
</div></div></body></html><?php goto eiDWs; pNJFV: $cfg = array("\x62\x61\163\x65\125\x52\114" => $page_url, "\x74\x6f\x74\141\154\122\x6f\167\x73" => $count, "\160\145\x72\x50\141\147\x65" => $limit); goto JyWnL; aBdzJ: if (isset($_GET["\163\145\x61\x72\143\x68"]) && !empty($_GET["\x73\x65\141\162\x63\150"])) { $search = mysqli_real_escape_string($con, $_GET["\163\145\141\x72\x63\x68"]); $filter = "\156\x61\155\145\40\x4c\x49\x4b\x45\x20\47\45{$search}\x25\47"; } goto T6G8k; T6G8k: $obj = array("\163\x65\141\162\143\x68" => $search); goto SdxjQ; onxyb: $sql = $sql . "\40\x4c\x49\115\x49\124\40{$offset}\x2c\x20{$limit}"; goto hLot0; eiDWs: mysqli_close($con); goto CHks8; Zwep_: require "\151\156\143\x6c\x75\x64\145\x73\57\146\165\156\x63\x74\x69\157\x6e\x73\x2e\x70\x68\x70"; goto vkm6h; D8_HW: if (!isActivated()) { header("\x6c\x6f\x63\x61\164\x69\x6f\156\x3a\40\141\x63\x74\151\x76\141\x74\x69\157\x6e\x2e\x70\x68\x70"); } goto h97KA; GrpqM: require "\151\x6e\143\154\165\144\145\163\57\x64\142\56\160\150\160"; goto Zwep_; iHRRt: include "\167\x69\x64\x67\x65\x74\163\x2f\141\x73\163\145\164\163\x2e\x70\150\x70"; goto TramW; JyWnL: $pagination = new Pagination($cfg); goto onxyb; CSC79: include "\x77\x69\x64\x67\145\x74\x73\57\x68\145\141\x64\x65\162\56\160\x68\x70"; goto LWHmk; oaeMh: $offset = !empty($_GET["\160\141\147\145"]) ? ($_GET["\160\x61\x67\145"] - 1) * $limit : 0; goto jMi_q; cKeuh: $page = "\143\x6c\x69\145\156\164\163"; goto EDzkR; iPuNs: ?>
<div class="padding-b-md"><a class="btn btn-success"href="add-client.php"><i class="fa fa-plus"></i> </a><form class="form-inline pull-right"><div class="input-group"><input class="form-control"name="search"placeholder=""><div class="input-group-btn"><button class="btn btn-default"type="submit"><i class="fa fa-search"></i></button></div></div></form></div><div class="table-responsive"><table class="table table-bordered table-condensed"><thead><tr><th>ID</th><th></th><th></th><th></th><th></th><th></th></tr></thead><tbody><?php goto R9nsd; duwuf: $filter = "\164\162\x75\x65"; goto gjImv; CHks8:
Function Calls
None |
Stats
MD5 | 4e3a58a2147750a2b9773acfdbbe789e |
Eval Count | 0 |
Decode Time | 41 ms |