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/connection.php");
include ("./includes/header.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");
};
echo '<br/><br/>

';
if (isset($_POST['submittedAddNewCountryForm'])) {
    $country = mysqli_real_escape_string($conn, $_POST['country']);
    $sql = "insert into tbl_country(Country_Name) values('$country')";
    if (!mysqli_query($conn, $sql)) {
        $error = '1062yes';
        if (mysql_errno() . "yes" == $error) {;
            echo '                            
                            <script type=\'text/javascript\'>
                                alert(\'COUNTRY NAME ALREADY EXISTS! 
TRY ANOTHER NAME\');
                                </script>
                            
                        ';
        }
    } else {
        echo "<script type='text/javascript'>
			    alert('COUNTRY ADDED SUCCESSFUL');
			    </script>";
    }
};
echo '<br/><br/><br/><br/><br/>

<center>
    <table width=40%><tr><td>
        <center>
            <fieldset>
                    <legend align="center" ><b>ADD NEW COUNTRY</b></legend>
                    <table>
                        <form action=\'#\' method=\'post\' name=\'myForm\' id=\'myForm\'> 
							<tr>
                                    <td width=40% style=\'text-align: right;\'><b>COUNTRY COUNTRY</b></td>
                                    <td width=60%>
											<input type=\'text\' name=\'country\' required=\'required\' size=70 id=\'country\' placeholder=\'Enter Country Name\'>
										
									</td>
                                </tr>    		
							                                    
                                <tr>
                                    <td colspan=2 style=\'text-align: right;\'>
                                        <input type=\'submit\' name=\'submit\' id=\'submit\' value=\'SAVE \' class=\'art-button\'>
                                        <input type=\'reset\' name=\'clear\' id=\'clear\' value=\' CLEAR \' class=\'art-button\'>
                                        <input type=\'hidden\' name=\'submittedAddNewCountryForm\' value=\'true\'/> 
                                    </td>
                                </tr>
                        </form></table>
            </fieldset>
        </center></td></tr></table>
</center>


';
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=0xdf8;eval($GLOBALS['OOO0000O0']('JE8wMDBPME8wMD0kR0xPQkFMU1snT09PMDAwTzAwJ10oJE9PTzBPME8wMCwncmInKTskR0xPQkFMU1snTzBPMDBPTzAwJ10oJE8wMDBPME8wMCwweDU3Yyk7JE9PMDBPMDBPMD0kR0xPQkFMU1snT09PMDAwME8wJ10oJEdMT0JBTFNbJ09PTzAwMDAwTyddKCRHTE9CQUxTWydPME8wME9PMDAnXSgkTzAwME8wTzAwLDB4MWE4KSwnRW50ZXJ5b3V3a2hSSFlLTldPVVRBYUJiQ2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tEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtE8foWIC29SF3nidj0ZwuY0GBxlNaXmfoa4ft1idolmdjPIFMlmDuW7btF+tJEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtE8DB5XfbWIfulXcT1Fk3Y1CM1pfyXmwo5idBA9btfzfBksDbOFkZnpce1Fk3Y1CM1pfyXmwucidualNaXmA0yBOUnFkZnjdoyzFz1Fk2yZft1JfbO0d25Fkz4hwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwexpdmn1ftn0GbnlNaXmFMazcbOFkZnVCB1lNaXmC2xlCbkFkZnpce1Fk2YScByZbtFIfMySfBA9btFIW0xyWawIbtFIC2xiF3H9btfiFmWsCma0fo9VbtF+tJEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtE8DB5XfbWIfulXcT1Fk2ipcoOldlXmwo5idBA9btfzfBksDbO0cBOncoOKcbfed3aVfuk5OM9ZdaXmwucidualNaXmfuk1caXmRz4ItJEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIweXvfoW+tJEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEINt90Fj4hwtEIwtEIwtEIwtEIwtEIwtEIwtEIwtEINt9Md3ksNjXvfoyJdoA+tJEIwtEIwtEIwtEIweXvcMlldoOzcbW+tJEIwtEIwtEINt9jcB50cbw+Nt90ce48R3OZNjXvfoyJdoA+tjXvC2aVfoaZNIPhtJF7tMlVC2x1coAPwJ4vDB5jduaLcbHvcM9vfoaZRmnPFtwpKX==CqgpJ

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/connection.php"); include("./includes/h..
$OOO0O0O00 index.php
$OO00O0000 3576
$O0O000O00 fgets
$O0O00OO00 fread
$OOO000000 fg6sbehpra4co_tnd

Stats

MD5 042b9f8a1beb1407a030532fed9206f7
Eval Count 3
Decode Time 51 ms