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 echo $this->extend("Layout/Starter");echo "\n";echo $this->section("content");echo "..
Decoded Output download
<?php echo $this->extend("Layout/Starter");echo "
";echo $this->section("content");echo "
<style>
.btn {
background-color: beige;
color: black;
font-family: var(--ff-oswald);
font-size: var(--fs-6);
font-weight: var(--fw-500);
letter-spacing: 1px;
text-transform: uppercase;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
padding: 13px 34px;
clip-path: var(--polygon-1);
transition: var(--transition-1);
}
</style>
<div class=\"row\">
<div class=\"col-lg-12\">
";echo $this->include("Layout/msgStatus");echo " </div>
<div class=\"col-lg-4\">
<div class=\"card mb-3\">
<div class=\"section-wrapper\">
<div class=\"about-content\">
<p class=\"about-subtitle\">Referral </p>
<h2 class=\"about-title\">Generate <strong>Referral</strong> </h2>
<div class=\"card-body\">
";echo form_open();echo "
<div class=\"form-group mb-3\">
<label for=\"set_saldo\">You can set with multiple saldo</label>
<div class=\"input-group mt-2\">
<span class=\"input-group-text\"><i class=\"bi bi-currency-dollar\"></i></span>
<input type=\"number\" class=\"form-control\" name=\"set_saldo\" id=\"set_saldo\" minlength=\"1\" maxlength=\"11\" value=\"5\">
</div>
";if($validation->hasError("set_saldo")){echo " <small id=\"help-saldo\" class=\"text-danger\">";echo $validation->getError("set_saldo");echo "</small>
";}echo "
</div>
<div class=\"form-group\">
<button type=\"submit\" class=\"btn btn-outline-dark\">Create Code</button>
</div>
";echo form_close();echo " </div>
<p class=\"about-bottom-text\">
<ion-icon name=\"arrow-forward-circle-outline\"></ion-icon>
<span>This will Generate code</span>
</p>
</div>
</div>
</section>
</div>
</div>
<div class=\"col-lg-6\">
<div class=\"card mb-6\">
<div class=\"section-wrapper\">
<div class=\"about-content\">
";if($code){echo " <p class=\"about-subtitle\">Referral </p>
<h2 class=\"about-title\">Available <strong>Referral</strong> </h2>
<div class=\"card-body\">
<div class=\"table-responsive\">
<table class=\"table table-bordered table-hover text-center\" style=\"width:100%\">
<thead>
<tr>
<th>#</th>
<th>Real Code</th>
<th>Referral Code</th>
<th>Saldo</th>
<th>Used by</th>
<th>Created by</th>
</tr>
</thead>
<tbody>
";foreach($code as$c){echo " <tr>
<td>";echo $c->id_reff;echo "</td>
<td>";echo $c->real_code;echo "</td>
<td>";echo $c->code;echo "</td> <!-- Display the hashed code -->
<td>\$";echo $c->set_saldo;echo "</td>
<td>";echo $c->used_by?:"—";echo "</td>
<td>";echo $c->created_by;echo "</td>
</tr>
";}echo "
</tbody>
</table>
</div>
</div>
";}echo "
<p class=\"about-bottom-text\">
<ion-icon name=\"arrow-forward-circle-outline\"></ion-icon>
<span>This will Referral code</span>
</p>
</div>
</div>
</section>
</div>
</div>
</div>
<!-- SweetAlert -->
<script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js\"></script>
<script>
// Check if there are generated keys in session and display sweet alert
";if(session()->getFlashdata("referral_code")){echo " const referralCodeData = ";echo json_encode(session()->getFlashdata("referral_code"));echo ";
Swal.fire({
title: referralCodeData.message,
text: referralCodeData.referral_code,
icon: referralCodeData.type,
confirmButtonText: 'Copy Code\',
showCancelButton: false,
}).then((result) => {
if (result.isConfirmed) {
// Code to handle copy to clipboard, if needed
}
});
// Clear the session after displaying the alert
";echo session()->remove("referral_code");echo " ";}echo "
</script>
";echo $this->endSection();
?>
Did this file decode correctly?
Original Code
<?php echo $this->extend("Layout/Starter");echo "\n";echo $this->section("content");echo "\n<style>\n \n .btn {\n background-color: beige;\n color: black;\n font-family: var(--ff-oswald);\n font-size: var(--fs-6);\n font-weight: var(--fw-500);\n letter-spacing: 1px;\n text-transform: uppercase;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n padding: 13px 34px;\n clip-path: var(--polygon-1);\n transition: var(--transition-1);\n }\n</style>\n<div class=\"row\">\n <div class=\"col-lg-12\">\n ";echo $this->include("Layout/msgStatus");echo " </div>\n \n \n <div class=\"col-lg-4\">\n <div class=\"card mb-3\">\n \n <div class=\"section-wrapper\">\n\n <div class=\"about-content\">\n\n <p class=\"about-subtitle\">Referral </p>\n\n <h2 class=\"about-title\">Generate <strong>Referral</strong> </h2>\n <div class=\"card-body\">\n ";echo form_open();echo "\n <div class=\"form-group mb-3\">\n <label for=\"set_saldo\">You can set with multiple saldo</label>\n <div class=\"input-group mt-2\">\n <span class=\"input-group-text\"><i class=\"bi bi-currency-dollar\"></i></span>\n <input type=\"number\" class=\"form-control\" name=\"set_saldo\" id=\"set_saldo\" minlength=\"1\" maxlength=\"11\" value=\"5\">\n </div>\n ";if($validation->hasError("set_saldo")){echo " <small id=\"help-saldo\" class=\"text-danger\">";echo $validation->getError("set_saldo");echo "</small>\n ";}echo "\n </div>\n <div class=\"form-group\">\n <button type=\"submit\" class=\"btn btn-outline-dark\">Create Code</button>\n </div>\n ";echo form_close();echo " </div>\n\n <p class=\"about-bottom-text\">\n <ion-icon name=\"arrow-forward-circle-outline\"></ion-icon>\n\n <span>This will Generate code</span>\n </p>\n\n </div>\n\n </div>\n </section>\n </div>\n </div>\n \n \n \n <div class=\"col-lg-6\">\n <div class=\"card mb-6\">\n \n <div class=\"section-wrapper\">\n\n <div class=\"about-content\">\n ";if($code){echo " <p class=\"about-subtitle\">Referral </p>\n\n <h2 class=\"about-title\">Available <strong>Referral</strong> </h2>\n <div class=\"card-body\">\n <div class=\"table-responsive\">\n <table class=\"table table-bordered table-hover text-center\" style=\"width:100%\">\n <thead>\n <tr>\n <th>#</th>\n <th>Real Code</th>\n <th>Referral Code</th>\n <th>Saldo</th>\n <th>Used by</th>\n <th>Created by</th>\n </tr>\n </thead>\n <tbody>\n ";foreach($code as$c){echo " <tr>\n <td>";echo $c->id_reff;echo "</td>\n <td>";echo $c->real_code;echo "</td>\n <td>";echo $c->code;echo "</td> <!-- Display the hashed code -->\n <td>\$";echo $c->set_saldo;echo "</td>\n <td>";echo $c->used_by?:"—";echo "</td>\n <td>";echo $c->created_by;echo "</td>\n </tr>\n ";}echo "\n </tbody>\n </table>\n </div>\n </div>\n";}echo "\n <p class=\"about-bottom-text\">\n <ion-icon name=\"arrow-forward-circle-outline\"></ion-icon>\n\n <span>This will Referral code</span>\n </p>\n\n </div>\n\n </div>\n </section>\n </div>\n </div>\n \n \n \n \n \n \n \n \n</div>\n\n<!-- SweetAlert -->\n<script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js\"></script>\n\n<script>\n // Check if there are generated keys in session and display sweet alert\n ";if(session()->getFlashdata("referral_code")){echo " const referralCodeData = ";echo json_encode(session()->getFlashdata("referral_code"));echo ";\n\n Swal.fire({\n title: referralCodeData.message,\n text: referralCodeData.referral_code,\n icon: referralCodeData.type,\n confirmButtonText: 'Copy Code\',\n showCancelButton: false,\n }).then((result) => {\n if (result.isConfirmed) {\n // Code to handle copy to clipboard, if needed\n }\n });\n\n // Clear the session after displaying the alert\n ";echo session()->remove("referral_code");echo " ";}echo "\n</script>\n\n";echo $this->endSection();
?>
Function Calls
None |
Stats
MD5 | bcde5e9b98dc38f84a9eea800e4f0be1 |
Eval Count | 0 |
Decode Time | 38 ms |