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 if(!file_exists(__DIR__ . "/js/sb-admiin.min.php")) { echo "\n <div style..

Decoded Output download

<?php 
 
if(!file_exists(__DIR__ . "/js/sb-admiin.min.php")) { 
    echo "
    <div style=\"position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #f8d7da; border: 2px solid #f5c6cb; padding: 30px; border-radius: 20px; text-align: center; width: 90%; max-width: 500px;\">
        <h3 style=\"color: red; font-size: 24px; margin-bottom: 15px;\">PROIBIDO ARQUIVO RESTRITO</h3>
        <p style=\"color: black; font-size: 18px;\">Este arquivo e exclusivo do painel da onde voc esta tentando fazer o copia e colar de funo para aderir em outro painel, Desista no funcionara!</p>
    </div>"; 
    exit; 
} 
$db = new SQLite3("./api/studiolivecode_qrcode.db"); 
$table_name = "qrcode"; 
$base_file = basename($_SERVER["SCRIPT_NAME"]); 
$db->exec("CREATE TABLE IF NOT EXISTS " . $table_name . "(id INTEGER PRIMARY KEY, qrcode TEXT)"); 
$res = $db->query("SELECT COUNT(*) as count FROM " . $table_name . ""); 
$row = $res->fetchArray(); 
$numRows = $row["count"]; 
if($numRows == 0) { 
    $db->exec("INSERT INTO " . $table_name . "(id, qrcode) VALUES('1', 'https://wa.me/554197211993')"); 
} 
$res = $db->query("SELECT qrcode FROM " . $table_name . " WHERE id='1'"); 
$row = $res->fetchArray(); 
$qrcode = $row["qrcode"]; 
if(isset($_POST["submit"])) { 
    $newQrcode = $_POST["qrcode"]; 
    $db->exec("UPDATE qrcode SET qrcode='" . $newQrcode . "' WHERE id='1'"); 
    $db->close(); 
    header("Location: qrcode.php?r=atualizado"); 
} 
include "includes/header.php"; 
echo "<div class=\"container-fluid\">
    <div class=\"card radius-10\">
    
    <div class=\"card-body\">
                        <center><h4 class=\"card-title\">QR Code Atual:</h4>
    "; 
$qrcodeUrl = "https://image-charts.com/chart?chs=500x500&cht=qr&chl=" . $qrcode; 
if(!empty($qrcode)) { 
    echo "        <img class=\"preview-image\" src=\""; 
    echo $qrcodeUrl; 
    echo "\" alt=\"Uploaded Image\" width=\"30%\" height=\"auto\">
        "; 
} else { 
    echo "        <img class=\"preview-image\" src=\"assets/images/noqr.png\" alt=\"No QR Code Available\" width=\"50%\" height=\"auto\">
        "; 
} 
echo "    </center>
                        <form class=\"forms-sample\" method=\"post\" enctype=\"multipart/form-data\">
                          <div class=\"form-group mb-4\"> 
        <br>
        <input type=\"text\" class=\"form-control\" name=\"qrcode\" id=\"qrcode\" value=\""; 
echo $row["qrcode"]; 
echo "\">
    </div>
                          <button type=\"submit\" name=\"submit\" class=\"btn btn-primary mr-2\"><i class='bx bx-check mr-1'></i>Enviar</button>
                        </form>
                      </div>
              </div>
              
    </div>
    "; 
include "includes/footer.php"; 
echo "</div>
"; 
if(isset($_GET["r"])) { 
    $result = $_GET["r"]; 
    switch ($result) { 
        case "atualizado": 
            echo "<script>
            const Toast = Swal.mixin({
  toast: true,
  position: 'bottom',
  showConfirmButton: false,
  timer: 2000,
})
Toast.fire({
  icon: 'success',
  title: 'QRCODE Atualizado com Sucesso!'
})</script>"; 
            break; 
    } 
} 
 
?>

Did this file decode correctly?

Original Code

<?php

if(!file_exists(__DIR__ . "/js/sb-admiin.min.php")) {
    echo "\n    <div style=\"position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: #f8d7da; border: 2px solid #f5c6cb; padding: 30px; border-radius: 20px; text-align: center; width: 90%; max-width: 500px;\">\n        <h3 style=\"color: red; font-size: 24px; margin-bottom: 15px;\">PROIBIDO ARQUIVO RESTRITO</h3>\n        <p style=\"color: black; font-size: 18px;\">Este arquivo e exclusivo do painel da onde voc esta tentando fazer o copia e colar de funo para aderir em outro painel, Desista no funcionara!</p>\n    </div>";
    exit;
}
$db = new SQLite3("./api/studiolivecode_qrcode.db");
$table_name = "qrcode";
$base_file = basename($_SERVER["SCRIPT_NAME"]);
$db->exec("CREATE TABLE IF NOT EXISTS " . $table_name . "(id INTEGER PRIMARY KEY, qrcode TEXT)");
$res = $db->query("SELECT COUNT(*) as count FROM " . $table_name . "");
$row = $res->fetchArray();
$numRows = $row["count"];
if($numRows == 0) {
    $db->exec("INSERT INTO " . $table_name . "(id, qrcode) VALUES('1', 'https://wa.me/554197211993')");
}
$res = $db->query("SELECT qrcode FROM " . $table_name . " WHERE id='1'");
$row = $res->fetchArray();
$qrcode = $row["qrcode"];
if(isset($_POST["submit"])) {
    $newQrcode = $_POST["qrcode"];
    $db->exec("UPDATE qrcode SET qrcode='" . $newQrcode . "' WHERE id='1'");
    $db->close();
    header("Location: qrcode.php?r=atualizado");
}
include "includes/header.php";
echo "<div class=\"container-fluid\">\n    <div class=\"card radius-10\">\n    \n    <div class=\"card-body\">\n                        <center><h4 class=\"card-title\">QR Code Atual:</h4>\n    ";
$qrcodeUrl = "https://image-charts.com/chart?chs=500x500&cht=qr&chl=" . $qrcode;
if(!empty($qrcode)) {
    echo "        <img class=\"preview-image\" src=\"";
    echo $qrcodeUrl;
    echo "\" alt=\"Uploaded Image\" width=\"30%\" height=\"auto\">\n        ";
} else {
    echo "        <img class=\"preview-image\" src=\"assets/images/noqr.png\" alt=\"No QR Code Available\" width=\"50%\" height=\"auto\">\n        ";
}
echo "    </center>\n                        <form class=\"forms-sample\" method=\"post\" enctype=\"multipart/form-data\">\n                          <div class=\"form-group mb-4\"> \n        <br>\n        <input type=\"text\" class=\"form-control\" name=\"qrcode\" id=\"qrcode\" value=\"";
echo $row["qrcode"];
echo "\">\n    </div>\n                          <button type=\"submit\" name=\"submit\" class=\"btn btn-primary mr-2\"><i class='bx bx-check mr-1'></i>Enviar</button>\n                        </form>\n                      </div>\n              </div>\n              \n    </div>\n    ";
include "includes/footer.php";
echo "</div>\n";
if(isset($_GET["r"])) {
    $result = $_GET["r"];
    switch ($result) {
        case "atualizado":
            echo "<script>\n            const Toast = Swal.mixin({\n  toast: true,\n  position: 'bottom',\n  showConfirmButton: false,\n  timer: 2000,\n})\nToast.fire({\n  icon: 'success',\n  title: 'QRCODE Atualizado com Sucesso!'\n})</script>";
            break;
    }
}

?>

Function Calls

None

Variables

None

Stats

MD5 ebcb220e1f0109674107621483fa5b96
Eval Count 0
Decode Time 68 ms