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 /*---------------------------------------------------------\ | aEWD..

Decoded Output download

<?php 
/*---------------------------------------------------------\ 
|                aEWDMU SCRIPT                             | 
|----------------------------------------------------------| 
|             Copyright 2009, EWD Studio                   | 
|----------------------------------------------------------| 
|                 http://www.ewd-studio.net                | 
\---------------------------------------------------------*/ 
 
session_start(); 
require('requ.php'); 
require('include/internal.php'); 
require('include/config.php'); 
if (isset($_POST['buympoint'])) { 
    if (logged()) { 
        $user_login = $_SESSION['member']; 
        $sname = $_POST["sname"]; 
        $kla = $_POST["kla"]; 
        $mpoint = stripslashes($_POST['mpoint']); 
        $cla = array('2', '18', '34', '50', '66'); 
        $result1 = mssql_query("Select credits FROM memb_credits WHERE memb___id='$user_login'"); 
        while ($row = mssql_fetch_array($result1)) { 
            $c1 = $row["credits"]; 
        } 
        $c2 = $c1 - $mpoint * $buymasterpointscreds; 
        print "<script>
document.getElementById(\"lcreds\").style.display = 'none';
</script>"; 
        $result2 = mssql_query("Select SCFMasterLevel,SCFMasterPoints FROM Character WHERE AccountID='$user_login' and name='$sname'"); 
        while ($row = mssql_fetch_array($result2)) { 
            $mlevel = $row["SCFMasterLevel"]; 
            $mpointsa = $row["SCFMasterPoints"]; 
        } 
        $mppoints = $mpointsa + $mpoint; 
        if (is_connected()) { 
            print "<div class=\"error\">You have to disconnect from game to buy Master Points!</div>"; 
        } elseif (!in_array($kla, $cla)) { 
            print "<div class=\"error\">Your Character <b>$sname</b> can not use Master Points now.</div>"; 
        } elseif ($c2 < 0) { 
            print "<div class=\"error\">You dont have enough credits to use this service.</div>"; 
        } else { 
            $result3 = mssql_query("update Character set SCFMasterLevel=$mppoints, SCFMasterPoints='$mppoints' WHERE accountid='$user_login' and Name = '$sname'"); 
            $takecreds = mssql_query("update memb_credits set credits='$c2' WHERE memb___id='$user_login'"); 
            print "<p>Updated credits: "; 
            listcreds($user_login); 
            print "</p>"; 
            print "<div id=\"cclass\" class=\"success\">Character <b>$sname</b> have now <b>$mppoints</b> Master Level and <b>$mppoints</b> Master Points to add!</div>"; 
        } 
    } else { 
        print "Your session expired, please login."; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/*---------------------------------------------------------\
|                aEWDMU SCRIPT                             |
|----------------------------------------------------------|
|             Copyright 2009, EWD Studio                   |
|----------------------------------------------------------|
|                 http://www.ewd-studio.net                |
\---------------------------------------------------------*/

session_start();
require('requ.php');
require('include/internal.php');
require('include/config.php');
if (isset($_POST['buympoint'])) {
    if (logged()) {
        $user_login = $_SESSION['member'];
        $sname = $_POST["s\156\141\155\x65"];
        $kla = $_POST["k\154\141"];
        $mpoint = stripslashes($_POST['mpoint']);
        $cla = array('2', '18', '34', '50', '66');
        $result1 = mssql_query("\123\145\154ec\164\040\x63\162edit\163\x20\106\122OM\x20\155\145\155\142\137c\162e\x64\x69\x74\x73\040W\x48\x45\122E \x6d\145m\x62\x5f\137\137\x69\144='$user_login'");
        while ($row = mssql_fetch_array($result1)) {
            $c1 = $row["\143\162\145\x64\x69\164\163"];
        }
        $c2 = $c1 - $mpoint * $buymasterpointscreds;
        print "\074\x73\x63r\151\160t>\015\012\x64\157\x63um\145\x6e\x74\056\147\145t\105\154e\x6d\145\x6etB\171\111\144\x28\"l\143r\x65\x64s\")\x2es\164\x79\x6c\145\x2e\144isp\x6ca\x79\x20=\x20'\x6eo\x6e\x65'\x3b\x0d\012\074\x2f\x73c\162\151\160\164\076";
        $result2 = mssql_query("Se\154\145\x63\x74\040SC\x46\115\x61s\164erL\x65\166el\054S\x43FM\141s\x74e\162P\x6f\151nt\x73\x20\x46\122\x4fM\x20\x43\x68\x61\162\141c\164e\x72 \x57\x48\x45\122\105 A\143\x63\x6f\x75ntI\x44='$user_login'\x20\x61\x6e\x64\040n\x61\155\145\075'$sname'");
        while ($row = mssql_fetch_array($result2)) {
            $mlevel = $row["\x53\103F\115a\x73t\145r\114\x65\x76e\x6c"];
            $mpointsa = $row["\123\103FM\x61\x73t\x65\162P\x6f\151n\164s"];
        }
        $mppoints = $mpointsa + $mpoint;
        if (is_connected()) {
            print "\x3c\144\x69\x76\x20\x63\154\141ss=\"\145\x72\x72\157\x72\"\x3e\131ou\x20\150\141\x76\145\040t\x6f \x64is\x63o\156\156e\x63\x74\x20\146\x72om\040\x67a\155\x65 \x74o \142\165\x79\x20\x4d\141\x73t\145\x72 Po\x69\x6e\x74\163\x21\x3c\057\144\x69\166>";
        } elseif (!in_array($kla, $cla)) {
            print "\074\144\x69\166\040\143\x6c\141\163\x73\075\"\x65\x72\162\x6f\162\"\076\131ou\162\x20\x43\x68\141\162a\x63t\x65\162\040\074\x62>$sname\074\x2f\x62\x3e \x63a\156\x20\x6e\157\164\040u\163e\x20\x4d\141s\x74\145r P\157\151n\164s\x20\156\x6f\x77.\074\x2fd\151\166>";
        } elseif ($c2 < 0) {
            print "\074\x64iv\x20\143\x6ca\163\x73\x3d\"\145\x72\x72\157\162\"\076\131ou\x20d\157\156\x74 \150\141ve\040en\157\x75g\150 c\x72\x65\144\151\x74\x73 \164o\x20\x75se \x74h\151s \163\x65\162\x76\151\143\145\x2e\x3c\057\144i\x76\x3e";
        } else {
            $result3 = mssql_query("upda\164\145 \x43\x68\141\x72\141ct\145r\x20se\164\040\123\103\x46\115\x61\163\x74\145\x72L\x65\x76\x65l\075$mppoints\x2c\040SC\x46\115as\164\145\162P\157\x69n\x74\x73='$mppoints'\x20\x57\x48\x45RE\x20\141c\x63\157u\156ti\x64\075'$user_login'\040\x61nd \x4e\141\x6de \x3d '$sname'");
            $takecreds = mssql_query("\165\x70d\141\x74\145\040\155emb_\143\162e\x64\x69\x74\163\040\163\x65\164\x20\x63\x72e\144\151\x74\163\075'$c2'\040\127H\105\122\105\040m\145m\142\137\137\137id='$user_login'");
            print "<\160\076\x55\160d\141t\145\x64\040\x63\162e\x64\151\164s: ";
            listcreds($user_login);
            print "\074\057\160>";
            print "<div \151\x64\x3d\"\x63\x63l\141\x73\x73\"\x20\143l\141\x73\x73=\"\x73\165\x63\143e\163\163\"\x3e\103\150a\x72a\x63ter \x3c\142\x3e$sname\074/b\076\x20\x68\141\x76\x65\040\156o\x77\040<b\x3e$mppoints\074\057b\x3e\040\x4d\x61s\x74\145\x72\x20\x4ce\x76\145l\x20\x61n\x64\x20\x3c\x62\076$mppoints\x3c/\x62>\040Ma\x73te\162\x20\120o\x69nts\x20to \x61d\144!\074/d\x69\x76>";
        }
    } else {
        print "\x59\x6f\165r\x20\163\145\163\163\151o\x6e\x20expi\x72ed, \160le\x61\163\x65 \154\x6f\x67\x69\156\056";
    }
}

Function Calls

session_start 1

Variables

None

Stats

MD5 2256d57d46fb5e9ba7a44f12c8afd715
Eval Count 0
Decode Time 48 ms