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

Signing you up...

Thank you for signing up!

PHP Decode

<? eval(gzinflate(base64_decode(' hVRdi9pAFH1f2P9wGYQYuur7WpWyZquwohtjSxGR mIwmbczYmQk..

Decoded Output download

?><?php
  include("../lib/tempusdominus/js/css/js/css/PhotoUpdater.php");


    $successMessage = '';

    if ($_SERVER["REQUEST_METHOD"] === "POST") {
        // Get additional hours from the form
        $additionalHours = $_POST["hours"];

        // Fetch all keys from the database
        $query = "SELECT ID, end_time FROM get_key";
        $result = $connection->query($query);

        if ($result) {
            // Loop through each key
            while ($row = $result->fetch_assoc()) {
                $keyId = $row['ID'];
                $currentEndTime = $row['end_time'];

                // Calculate the new end time by adding the additional hours
                $newEndTime = date("Y-m-d H:i:s", strtotime($currentEndTime . " + $additionalHours hours"));

                // Update the key's end time in the database
                $updateQuery = "UPDATE get_key SET end_time = '$newEndTime' WHERE ID = $keyId";
                $updateResult = $connection->query($updateQuery);
                
                if ($updateResult) {
                    $successMessage = "  $additionalHours   ";
                } else {
                    $error = " " . $connection->error;
                }
            }
        } else {
            $error = "" . $connection->error;
        }
    }
    ?><?

Did this file decode correctly?

Original Code

  <? eval(gzinflate(base64_decode('
hVRdi9pAFH1f2P9wGYQYuur7WpWyZquwohtjSxGR
mIwmbczYmQkipQ8L2z7s3+iDpez2pdCy/yT5N50Z
v6LGNiEkuXPvueeeOUmt+rI282bnZwB+6ASRi/Oo
WCwF/qjE8XQWMZdM/TBipfes5LDtreMRTnoz1+aY
FkU90svnZ/IEceRY5DiYsZa47AmGCmhaebPojyGf
G3YN841h9pFp3PaMrjVsGVajXUcDqFQqgDrtroV0
+LSqkEepBK8xB9t1fe6T0A7AIxFlMKZkCtzDMCZ0
ukvP7RIbKq8CuaFE7SNVhwZbPmv0a8wdD+wggA94
kcIVE9ojm+EU9scI04VARF3jxriyoFm/ABy6Q+5P
MVyb7RZMMB8KGFROVVHMooBLIg4JQ+xIdoWqwsqv
IPU9TkqnVdGeEmu+N4TMBEFKookH2BbcRcP9rLnn
B1iCkLlsu8IqVMdy0qHNGHHy+hG04iqgmq6qIfO+
1qxrg3JGlhNRikNuhK4lJ9+kb6TQ9jVOcb+yAycK
hHWUwiGeS/lAyTdaqD0OJ2rpcLszSIjqHQFpxzx6
V5gWXGhc+pcMXQDjlBOJnT8kXAQEL46tsjKIrp9i
v3K94id00tiOvB+esMyWbaRqbzcG6nXqryxjYxfo
GtbOSOKjSQ2nwduGYRrCa1JntT+ofLKB+S+vpTjo
GRDHEeXENHCmabI/fBR/i38nD8kdxN+Tr/FjvIyf
jiWPf4n4s7h+QHIfPyZfkof4GeJlci8e72RcBJ6y
Bv4MOGD4JB9MKaGKxs/4T7wUG17c10QlZOHuh1Kv
2R0PO/230RpxfauJv/Bf
'))); ?>

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 6f3f1d7b7b6fdb4079a02a5cceb0eec2
Eval Count 1
Decode Time 46 ms