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('H4sIAAAAAAAEAOy9B2AcSZYlJi9tynt/SvVK1+B0oQ..

Decoded Output download


//Check for config..
if(!file_exists("include/config.php"))
{
    die("<b>There is an error. Config file not found. Please re-install or contact support.</b>");
}
session_start();
require_once('include/util.php');
$page = "adminpage";
$db = new DB();
$blacklists = $db->getBlacklists();

//Pre-load Checks
if(!isset($_SESSION['user_id']))
{
    header("Location: login.php");
    exit;
}
if($_SESSION['permission']<1) {
    ?>
<script type="text/javascript">
    alert('You can\'t access this page');
    window.location = "index.php";
</script>
<?php
    exit;
}

// 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="X-UA-Compatible" content="IE=Edge" />

    <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 -->


        <?php include_once("include/nav.php"); ?>
        <!-- #header ends -->


        <div class="block">

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

                <h2>
                    <?php if(count($blacklists)==1) echo("1 Blacklist &nbsp; &nbsp; <a href=\"#\" id=\"SYSTEM_ADD_BLACKLIST\">Add Blacklist</a>"); else
                    echo (count($blacklists)." Blacklists &nbsp; &nbsp; <a href=\"#\" id=\"SYSTEM_ADD_BLACKLIST\">Add Blacklist</a>");?>
                </h2>
                <ul>
                    <li><a href="manage_companies.php">Manage Companies</a></li>
                </ul>
            </div>		<!-- .block_head ends -->


            <div class="block_content">

                <table cellpadding="0" cellspacing="0" width="100%" class="sortable">

                    <thead>
                    <tr>
                        <th>Name</th>
                        <th rowspan="6">Numbers</th>
                        <th>Actions</th>
                    </tr>
                    </thead>

                    <tbody>

                    <?php foreach ($blacklists as $blacklist) { ?>
                    <tr>
                        <td><?php echo $blacklist[1]; ?></td>
                        <?php if($blacklist[2]=="") { ?>
                        <td><?php echo "<a href=\"#\" id=\"SYSTEM_EDIT_BLACKLIST\" data-params='" . $blacklist[0] . "' title='Edit Numbers' style='cursor:pointer'>None</a>"; ?></td>
                        <?php }else{ ?>
                        <td><?php echo "<a href=\"#\" id=\"SYSTEM_EDIT_BLACKLIST\" data-params='" . $blacklist[0] . "' title='Edit Numbers' style='cursor:pointer'>".Util::limit_text($blacklist[2],60)."</a>"; ?></td>
                        <?php } ?>
                        <td><?php echo "<a href=\"#\" id='SYSTEM_DELETE_BLACKLIST' data-params='" . $blacklist[0] . "' title='Delete Blacklist'><img src=\"images/delete.gif\" /></a>"; ?></td>
                    </tr>
                        <?php } ?>
                </table>

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

            <div class="bendl"></div>
            <div class="bendr"></div>
        </div>		<!-- .block ends -->


        <?php include "include/footer.php"; ?>
</body>
</html>

Did this file decode correctly?

Original Code

<?php 

 eval(gzinflate(substr(base64_decode('H4sIAAAAAAAEAOy9B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7j5O7dk3k+fZueV3U6rZbnxcV4/BsnxfnW73pelPnvn78rmrbZ+qhYTsv1LL+rTVbz1Ud37vzGyS/+jZOUnlmRb330eHL0Zp7XeVo0abZM87qu6nF6wi+kAJYuq5b6WS9n4/RlmWdNntb5drFs2qwsU+m/zaZt2qxXq6pux4/vTo4+unP4Gye/5DdOmrxpimr5+1Pjut3Ch3X+i9ZFnf/+1XKab31sEFy3RQn0PkaT322VXeTpZ+lH2WxRLPHHR/h0NqHPlvlV+vQJQ/rdJmU2fVtipPQFfb19dJG3T+yH3Aik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VNpsV0IU7H/HfzSqbmr+vilk7/+yj3Z2d3/0jA70hFYCX44AFuEp9/Mt64Bv5dn70IlvkpNnmm5uldXVFqC4/++jTj45erBeTvG5ufuvoeAozt6klfTWEId7y7UTv+9Yqt+jXLIfkd+VkBlOf49OsSd2fZPADHRXAuIF8s8BSWJDf2/2+GoyheeHXjaLwXtz7/mefffTRJpT4zbDjj4al9PTp2RtfTFPyALLtVVZni+azjz9Kxz7WO9+nvz/6OGUz99nHp7OiTXWuP07Z5Hz28XRdE0s+WlUF8Xv98dGLapmztN96wL8EGur/M+P7aPwVebyPHpXFomh/f1jqcLpGn+6QAn1PCnzY4D/WsT89fX765tSN/uP3GfzTvMzJg7Ma++Ojx8XiIm3qKXVULEidNndn3GZ8UZz/vvCRbjPIDeLMX28YP70KRde39hH1rNo20NDBO75+pkYDZr/bzLP4G3ofclzi7uB5VREjeR4hRV2ith6zM3r0/wQAAP//SUWnHSQOAAA='),10,-8))); ?>

Function Calls

substr 1
gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 c019bc8209354db0d5bf158553d71d32
Eval Count 1
Decode Time 108 ms