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 eval(gzinflate(substr(base64_decode('H4sIAAAAAAAEANVYe2/bOBL/ewPkO0y5OcQGIsnO9n..

Decoded Output download


require_once('include/db.php');
require_once('include/config.php');


if(strlen(@$_POST['email']) >0)
{
    $db = new DB();

    $email = $_POST['email'];

    if(substr($_SERVER["HTTP_HOST"],0,4)=="www.")
        $host = substr($_SERVER["HTTP_HOST"],4,strlen($_SERVER["HTTP_HOST"]-4));
    else
        $host = $_SERVER["HTTP_HOST"];

    $host = $host.str_replace("/checkversion.php","",$_SERVER['SCRIPT_NAME']);

    global $AccountSid;

    $jsonurl = "http://license.web1syndication.com/abc123/checkACTLicense/".urlencode($email)."/".urlencode(base64_encode($host))."/".urlencode($AccountSid);

    $json = $db->curlGetData($jsonurl);
    $json_output = json_decode($json);

    $result = 100;

    if($json_output->result == "success")
        $result = 0;
    else{
        switch($json_output->reason)
        {
            case "NO_ACT_TAGS":
                {
                $result = 1;
                break;
                }
            case "LIMIT_EXCEEDED":
                {
                $result = 2;
                break;
                }
            default:
                {
                $result = 3;
                break;
                }
        }
    }

    switch($result)
    {
        case 0:
        {

            $arcver = new stdClass();

            $arcver->lce = $email;
            $arcver->lc  = strtotime(date("Y-m-d"));
            $arcver->lcl = $json_output->lcl;

            $db->setVar("arcver","");
            $db->setVar("arcver",base64_encode(serialize($arcver)));

            ?>
        <script type="text/javascript">
            window.location = "index.php";
        </script>
        <?php
            break;
        }

        case 1:
            {
            ?>
            <script type="text/javascript">
                alert('You have not purchased ACT. If you feel this is an error, please contact support at: web1support.com');
                window.location = "checkversion.php?failed=1";
            </script>
            <?php
            break;
            }

        case 2:
            {
            ?>
            <script type="text/javascript">
                alert('You have exceeded the max number of ACT installations for your account. If you need more, please visit web1support.com to open a ticket.');
                window.location = "checkversion.php?failed=1";
            </script>
            <?php
            break;
            }

        default:
            {
            ?>
            <script type="text/javascript">
                alert('An unknown error has occured. Please contact support at: web1support.com');
                window.location = "checkversion.php?failed=1";
            </script>
            <?php
            break;
            }
    }
    die();
}

// DISABLE CACHE
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
<!DOCTYPE html>
<html lang="en">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title><?php echo $title; ?></title>

    <?php include "include/css.php"; ?>

    <!--[if lt IE 8]><style type="text/css" media="all">@import url("css/ie.css");</style><![endif]-->
</head>




<body>

<div id="hld">

    <div class="wrapper">		<!-- wrapper begins -->
        <div class="block small center login">

            <div class="block_head">
                <div class="bheadl"></div>
                <div class="bheadr"></div>

                <h2>Authenticate Your ACT</h2>
                <ul>
                    <li></li>
                </ul>
            </div>		<!-- .block_head ends -->


            <div class="block_content">

                <?php if(@$_GET['failed']=="1"){ ?>
                <div class="message errormsg" style="width: 86%;margin: 0 auto;margin-top: 8px;"><p>ACT has failed to authenticate. Please enter your email to try again.</p></div><br>
                <?php } ?>

                <form action="checkversion.php" method="post" id="form1" name="form1">
                    <p>
                        <label>Email:</label> <br />
                        <input id="email" type="text" name="email" class="text" value="" />
                    </p>

                    <p>
                        <input type="submit" class="submit" style="float:right;" value="Submit" />
                    </p>
                </form>

            </div>		<!-- .block_content ends -->

            <div class="bendl"></div>
            <div class="bendr"></div>

        </div>		<!-- .login ends -->

    </div>						<!-- wrapper ends -->

</div>		<!-- #hld ends -->


<!--[if IE]><script type="text/javascript" src="js/excanvas.js"></script><![endif]-->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.img.preload.js"></script>
<script type="text/javascript" src="js/jquery.filestyle.mini.js"></script>
<script type="text/javascript" src="js/jquery.wysiwyg.js"></script>
<script type="text/javascript" src="js/jquery.date_input.pack.js"></script>
<script type="text/javascript" src="js/facebox.js"></script>
<script type="text/javascript" src="js/jquery.visualize.js"></script>
<script type="text/javascript" src="js/jquery.visualize.tooltip.js"></script>
<script type="text/javascript" src="js/jquery.select_skin.js"></script>
<script type="text/javascript" src="js/jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="js/ajaxupload.js"></script>
<script type="text/javascript" src="js/jquery.pngfix.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript">
    $(document).ready(function(e) {
        $("#email").focus();
    });
</script>

</body>
</html>

Did this file decode correctly?

Original Code

<?php 

 eval(gzinflate(substr(base64_decode('H4sIAAAAAAAEANVYe2/bOBL/ewPkO0y5OcQGIsnO9npdv7pZx2hzaLdBYyyuKAKDkiiLiSRqRSqOr8h3vyEl25Itd5vk7nDnBHVIzovz+M2whwcZ+yPnGZuJxGOtY554Ue4zx3ftNEyP2/3DPQSeSAI+XxPpHx60pMoilrR+OZpdfryafjlmMeXR8XUbRp324cHXwwPAz5HvwhAStoDzX1sFs9k2xHiyxbwm0PJzF1W0jmZXk0+/Tz59Ie+m08vZOyQn1yedk5ft4ZAsFgubtAsWIzcUUqHYb/K+PClNbzy2Xra1nVoaiyTbld3ItbnZikp/26holrE0ouhO4ngh827vWCa5SLQ3yQkhJ2txx1fjTxeX09lvZx8m6Ma1xHkkXBrB0ZnniTxRV9zfKLuRIskz7UgSKpX2HCfiHksksxfM7cpl4nOPKq3OE7FDXa97+lNhxtl4+r4gdYida3d4wmetIjBtm9R2XSrZq5ezFY2+WnubpmJfu26g9obvWiMPid8ydU4Vba0sX7narGciV2muvWdWPisE60VFZMZkHmmibqdTzZeqCGu0okLPyNzzmJS1PFkL6VRi/XVDIBdceeGOTKpN2VBVGPTHQzcB+e3jDJ07m569vSK9OkEDz9aV+runLqq9bdh/aFL+/uLDxXQ2+cd4MjmfnD9a/+nT9fssoCjksRp/eprG8s+HVfxX8SrkliGqKDbe6fRqoasrOKKZh7VZopVU/jiiUlYwa4vQGkUe06ltKqa/lwY0HKlMCcVj1vKpQiT4bMWWT9Y408BlsLGWfLi3a4ouK8nU7zRrkYJZY8qO3Cayek1LlnEa8X9iuRUE7fbuz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3uIO4ushUKLAYUnwAElMWmqFLIKExWy32xT3dc2AOI+qyaDTRF+phdpgV4BUMwOzl4ol+Lmo7jCtIBRVWNpUHZayKE4TjHI/IXuHai03++fN7FBYVZsjcjbla614ty+wIIoHdMOPzUPXXJl2VNN82bHdXe34XNxpqpyyFWvnUeKrFg0R7AGSbrBE76voNuO3oXdHoTw0+q4Q1QT8iEm9V/6pHXEx0e/jWOAMy84bkRjo4RdIEt+0bqU0vJ4attvB9om7+yFm2rAt6LDOP53aaMUwJ/3mCAsQOk2B2zBP+PFmLpeSL5fx5QvTYMzNVYafUu32isIB6zBX3zzMFJ/zcvHH/XWKUEJHi6fPESRYxT83kLaL3swQp6mLsce5hmQ7+E4XRG3qfp89PxDSZB/ypAfNwbBbx45hLhDpq+cLLY8S4to3jvb9sBXliGlqLtatvoaMW+bFoDm07QJbiv3r0yYP+o6JXL8qBcGCm4NG/AMekc61KFwAA'),10,-8))); ?>

Function Calls

substr 1
gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 1d5587b406560fc026a6e1aaca710d13
Eval Count 1
Decode Time 87 ms