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 /* This file is protected by copyright law and provided under license. Reverse engin..

Decoded Output download

<?php include ("./includes/header.php");
include ("./includes/connection.php");
if (!isset($_SESSION['userinfo'])) {
    @session_destroy();
    header("Location: ../index.php?InvalidPrivilege=yes");
}
if (isset($_SESSION['userinfo'])) {
    if (isset($_SESSION['userinfo']['Setup_And_Configuration'])) {
        if ($_SESSION['userinfo']['Setup_And_Configuration'] != 'yes') {
            header("Location: ./index.php?InvalidPrivilege=yes");
        }
    } else {
        header("Location: ./index.php?InvalidPrivilege=yes");
    }
} else {
    @session_destroy();
    header("Location: ../index.php?InvalidPrivilege=yes");
}
$Current_Username = $_SESSION['userinfo']['Given_Username'];
$sql_check_prevalage = "SELECT edit_sponsor FROM tbl_privileges WHERE edit_sponsor='yes' AND " . "Given_Username='$Current_Username'";
$sql_check_prevalage_result = mysqli_query($conn, $sql_check_prevalage);
if (!mysqli_num_rows($sql_check_prevalage_result) > 0) {;
    echo '                    <script>
                        var privalege= alert("You don\'t have the privelage to access this button")
                            document.location="./index.php?InvalidPrivilege=yes";
                    </script>
                    ';
};
echo '
';
if (isset($_SESSION['userinfo'])) {
    if ($_SESSION['userinfo']['Setup_And_Configuration'] == 'yes') {;
        echo '    <a href=\'sponsorpage.php?SponsorConfiguration=SponsorConfigurationThisPage\' class=\'art-button\'>
        BACK
    </a>
';
    }
};
echo '


<script language="javascript" type="text/javascript">
    function searchSponsor(Guarantor_Name){
	document.getElementById(\'Search_Iframe\').innerHTML = "<iframe width=\'100%\' height=430px src=\'edit_Sponsor_Pre_Iframe.php?Guarantor_Name="+Guarantor_Name+"\'></iframe>";
    }
</script>

<br/><br/>
<center>
    <table width=40%>
        <tr>
            <td>
                <input type=\'text\' name=\'Search_Employee\' id=\'Search_Employee\'  onclick=\'searchSponsor(this.value)\' onkeyup=\'searchSponsor(this.value)\' placeholder=\'Enter Employee Name\'>
            </td>
        </tr>
        
    </table>
</center>
<fieldset>  
            <legend align=center><b>LIST OF SPONSORS</b></legend>
        <center>
            <table width=100% border=1>
                <tr>
            <td id=\'Search_Iframe\'>
		<iframe width=\'100%\' height=430px src=\'edit_Sponsor_Pre_Iframe.php\'></iframe>
            </td>
        </tr>
            </table>
        </center>
</fieldset><br/>
';
include ("./includes/footer.php");

Did this file decode correctly?

Original Code

<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};$GLOBALS['OOO000O00']=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$GLOBALS['O0O000O00']=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$GLOBALS['O0O000O00']=$O0O000O00.$OOO000000{3};$GLOBALS['O0O00OO00']=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$GLOBALS['OOO00000O']=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0xc98;eval($GLOBALS['OOO0000O0']('JE8wMDBPME8wMD0kR0xPQkFMU1snT09PMDAwTzAwJ10oJE9PTzBPME8wMCwncmInKTskR0xPQkFMU1snTzBPMDBPTzAwJ10oJE8wMDBPME8wMCwweDU4OCk7JE9PMDBPMDBPMD0kR0xPQkFMU1snT09PMDAwME8wJ10oJEdMT0JBTFNbJ09PTzAwMDAwTyddKCRHTE9CQUxTWydPME8wME9PMDAnXSgkTzAwME8wTzAwLDB4MW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IwtEINt90Fj4hwtEIwtEIwtEhwtEIweXvfoyJdoA+tjXvC2aVfoaZNIP8cMlldoOzcbW+wtEhwtEIwtEIwtEIwtEINoxlc2aVctnidolmdj1jcB50cbw+Now+TrlTatnNOJnTAr9KA09UAzXvCj48R2xlc2aVce4hwtEIwtEIwtE8C2aVfoaZNIPIwtEIwtEIwtEIwtE8foyJdoAIf2lLfoI9HTEXkUnJd3kLcbw9HT4hwtEIwtEIwtEIwtEIwtEIwex0Fj4hwtEIwtEIwtEIwtEINuOLwolLNaXmA2aiFMYPb0lMFMyscaXmNIPktTxpcmkidBAIf2lLfoI9btFxHeElbtFIDoapc2i0NTWzHun4wuYZCz1Fk2aLDbOgA3nvdmYvFl9WFMagUBcZCB1lRmnPFyXmNjXvDBcZCB1lNIPIwtEIwtEIwtEIwtE8R3OLNIPIwtEIwtEIweXvfuw+tJEIwtEIwtEIwtEIweXvfoyJdoA+tJEIwtEIwtEINt9jcB50cbw+tjXvcMlldoOzcbW+NokZRz4hkzShDB5jduaLcUIJRJ9pdMYSfBOlFZ9Md290cbwVFoiXwJL7BP\

Function Calls

str_replace 1
urldecode 1
fread 3
fclose 1
base64_decode 3
strtr 2
fopen 1

Variables

$OOO00000O strtr
$O000O0O00 True
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OO00O00O0 include("./includes/header.php"); include("./includes/conne..
$OOO0O0O00 index.php
$OO00O0000 3224
$O0O000O00 fgets
$O0O00OO00 fread
$OOO000000 fg6sbehpra4co_tnd

Stats

MD5 cf72f7b5461334566f96fb131afc8241
Eval Count 3
Decode Time 49 ms