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/initial.php'); 
require('include/config.php'); 
 
if ($_GET['orderBy'] == NULL) { 
    jump('index.php'); 
} 
 
$orderBy = $_GET['orderBy']; 
$where = array('where', 'where class=16 or class=17 or class=18 and', 'where class=0 or class=1 or class=2 and', 'where class=32 or class=33 or class=34 and', 'where class=48 or class=50 and', 'where class=64 or class=66 and', 'where class=80 or class=81 or class=82 and'); 
 
if (!in_array($_GET['orderBy'], $where)) { 
    jump('index.php'); 
} 
 
$query = "SELECT TOP 100 Name,Class,GReset,Resets from Character " . $orderBy . " (ctlcode !='32' and ctlcode !='8') order by GReset desc, Resets desc, cLevel desc "; 
$result = mssql_query($query); 
print "<div id=\"sinfo\"><table align=\"center\" width=\"500\" border=\"0\">"; 
switch ($orderBy) { 
    case "where": 
        print "<caption>Top 100 Players</caption>"; 
        break; 
    case "where class=0 or class=1 or class=2 and": 
        print "<caption>Top 100 Dark Wizard, Soul Master, Grand Master</caption>"; 
        break; 
    case "where class=16 or class=17 or class=18 and": 
        print "<caption>Top 100 Dark Knight, Blade Knight, Blade Master</caption>"; 
        break; 
    case "where class=32 or class=33 or class=34 and": 
        print "<caption>Top 100 Fairy Elf, Muse Elf, High Elf</caption>"; 
        break; 
    case "where class=48 or class=50 and": 
        print "<caption>Top 100 Magic Gladiator, Duel Master</caption>"; 
        break; 
    case "where class=64 or class=66 and": 
        print "<caption>Top 100 Dark Lord, Lord Emperor</caption>"; 
        break; 
    case "where class=80 or class=81 or class=82 and": 
        print "<caption>Top 100 Summoner, Bloody, Dimension Summoner</caption>"; 
        break; 
} 
print "
<tr> 

<th width=\"50\">#</th>
<th width=\"175\">Name</th>
<th width=\"175\">Class</th>
 
<th width=\"40\">GR</th> 

<th width=\"40\">RR</th> 
<th width=\"20\"></th>
</tr>
</table>
 
<div style=\"overflow: auto; width: 500px; height: 200px; max-height:200px; border-bottom:#717E8E;\">
<table align=\"center\" width=\"490\" border=\"0\">"; 
$i = 0; 
while ($row = mssql_fetch_array($result)) { 
    $i++; 
    $name = $row['Name']; 
    $clas = $class[$row['Class']]; 
    $greset = $row['GReset']; 
    $reset = $row['Resets']; 
    $rang = $i; 
    print "
<tr style=\"cursor:pointer;\" onclick=\"showchar('$name')\">  
<td width=\"50\" align=\"center\">$rang</td> 

<td width=\"175\" align=\"left\">$name</td>
<td width=\"175\" align=\"left\">$clas</td> 
<td width=\"40\" align=\"center\">$greset</td>
<td width=\"40\" align=\"center\">$reset</td>
</tr>"; 
} 
print " 
</table>
 
</div> 
</div> 

<div style=\"width:500px;height:20px;text-align:center;\"><div id=\"loading\"><img src=\"loading.gif\" alt=\"loading\" /></div></div>"; 
 ?>

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/initial.php');
require('include/config.php');

if ($_GET['orderBy'] == NULL) {
    jump('index.php');
}

$orderBy = $_GET['orderBy'];
$where = array('where', 'where class=16 or class=17 or class=18 and', 'where class=0 or class=1 or class=2 and', 'where class=32 or class=33 or class=34 and', 'where class=48 or class=50 and', 'where class=64 or class=66 and', 'where class=80 or class=81 or class=82 and');

if (!in_array($_GET['orderBy'], $where)) {
    jump('index.php');
}

$query = "S\105\114\x45\x43\x54\x20T\x4f\120\040\061\060\060\040N\x61\155\145\054Cla\x73\163\x2c\107\122e\x73\x65\x74,\x52e\163\x65\164\x73 \x66r\x6f\155\040\x43\150a\x72\x61\x63\164er " . $orderBy . " \050\143\164\154\x63\x6fd\x65 !\x3d'\x332'\040a\x6e\x64\x20c\x74\x6cco\144e \041\075'\x38'\051\040\x6frd\x65r \x62y\040\107\x52e\x73\x65\164 \144\145sc\x2c\x20\122\145s\x65\164\x73 \x64\x65\163\x63, \x63\x4c\145ve\154\040\x64e\x73\x63 ";
$result = mssql_query($query);
print "\x3c\x64i\x76 i\144\x3d\"s\x69\x6e\x66\x6f\"\076\074tabl\145\x20\141\x6c\151\147\x6e\075\"\x63e\156\164e\162\"\040w\x69\144\164\150\x3d\"\x35\060\060\"\040bor\144\145r\x3d\"\x30\">";
switch ($orderBy) {
    case "\x77\150\145\162\x65":
        print "\x3c\x63\141\x70\x74i\157n\x3e\x54\x6f\160\0401\x30\060\040\120\x6c\141\x79\145\x72s<\x2fc\x61p\164\x69\x6f\x6e\076";
        break;
    case "\x77h\145r\x65 \x63\154\141\x73\163\0750\x20\157\x72 c\x6cass=\061 \157\162\040\143\x6ca\163\163\0752\x20\x61\x6e\144":
        print "\074ca\x70t\151\157\x6e\x3e\x54o\x70 \061\x30\060\x20\x44\x61\162\153\x20W\151za\x72\144,\x20\x53o\x75l\040M\x61\x73\164er\x2c Gra\x6ed\x20M\x61\163\x74\145\x72</\x63\x61p\164\x69on\x3e";
        break;
    case "\x77h\145\162\145\040\x63\154\x61\x73\163\07516\x20\157\162\040\143l\x61\x73s\075\061\067\x20\157r\x20c\154\x61\x73\163=18\040\x61nd":
        print "<\143\141p\164\151o\x6e>T\x6f\160\x20\x31\x30\060\x20\x44\141\162\153 \x4b\156\151\147ht\054 \102\x6c\141\x64\x65\x20\x4bn\x69\x67h\164\054 Bl\x61\x64\x65\040M\141\x73\x74\x65\x72\074\x2f\143\x61\x70\164i\x6fn>";
        break;
    case "\x77\x68\145\162e\x20\x63\x6c\141\163\163=3\062\040\x6f\x72 \x63\154\x61ss\x3d\063\063 \157\162\040\x63la\163s\0753\x34 \141n\x64":
        print "<\x63\141p\x74\151on\076To\160\x20\0610\060\x20\106a\x69\162y\040\x45\x6c\146\054\x20\x4d\165s\x65\040\105\154\x66\054\x20\x48\151gh\x20\105l\146\074/cap\164\151\x6f\x6e\x3e";
        break;
    case "\167he\162\145 cl\141\163\163\07548\x20\157\x72\x20cl\141\x73\x73\x3d\x35\x30\040\141\156\x64":
        print "\x3cc\141\160t\x69\157\x6e\x3eTo\x70\x20\061\x30\060\040\x4d\141\x67\x69\143 \107\154\141diat\x6fr,\040\104\165\145l\x20\x4d\141\x73te\162<\057c\x61\x70\164\151\x6fn\x3e";
        break;
    case "\x77\150\x65\x72e\x20\x63\154\x61\x73s\x3d\0664\x20\157\162 cl\x61\x73\163\x3d66\x20\x61n\144":
        print "\074\143a\160\x74\151\x6fn>To\160 \x31\060\060 \104\x61\x72\153\040\114or\144\054\040L\x6f\x72d\x20E\155\x70\145r\x6f\162\x3c/\143apt\151\x6f\156\x3e";
        break;
    case "\167\x68\x65\x72\x65\x20\x63\154\x61\x73\163\075\x38\060 \157r \x63\154\141s\163\x3d8\061\x20o\x72 \143\154a\x73s\x3d\x38\x32\x20\x61n\144":
        print "<\143\141\x70\164i\157n\x3e\124\x6fp\x20\061\060\060 \123umm\x6f\x6e\x65\162, \102\x6c\157\x6f\x64\x79\054\040\x44\x69me\x6e\163ion\x20\x53\x75\x6d\x6d\157\x6e\145\162<\x2fca\x70t\x69\x6fn\x3e";
        break;
}
print "\x0d\012<t\162>
\x0a<\164h\x20\167\151\144t\150\075\"5\060\"\076\043\074\x2f\164h>\x0d\x0a\074t\x68\x20\x77\151\x64th\x3d\"1\x37\x35\"\x3eN\x61\x6de\074\x2fth>\x0d\x0a<\x74\x68 \167\151\144\x74\150=\"\x317\x35\">\x43\x6c\x61\163\163<\x2f\x74\x68\x3e\015
\074\164\150\x20wi\x64t\x68\075\"\x34\x30\">G\x52\074\057\164\x68>
\012\074\x74\150\040w\x69dth=\"4\x30\"\x3e\122R<\x2f\164\x68>
<\164h\x20\x77i\x64th\x3d\"\x320\">\074\057t\150\x3e\015\x0a\074\057\164r>\015\x0a<\057\164\x61\x62le>\015
\x3cdi\166\x20\163t\171\154\145=\"o\166\x65r\x66\154o\x77: \x61uto\x3b\040w\x69\x64\x74\x68:\040\0650\x30\160x\073 \150\145i\147\x68t: \x320\x30p\170\x3b\x20\155\x61\170\x2d\150\x65i\147\x68t\0722\0600\160\170\x3b b\157\162d\x65\x72-b\x6f\164to\x6d\072\x2371\067E\x38\x45;\"\076\015\x0a\x3c\x74\141\x62l\x65\x20\x61\x6c\151\147n\x3d\"\143\x65\x6e\164e\x72\" w\151\x64\x74\x68\x3d\"4\x39\x30\"\x20b\x6f\162\x64er\x3d\"\x30\">";
$i = 0;
while ($row = mssql_fetch_array($result)) {
    $i++;
    $name = $row['Name'];
    $clas = $class[$row['Class']];
    $greset = $row['GReset'];
    $reset = $row['Resets'];
    $rang = $i;
    print "\x0d\x0a<\164\162\040s\x74\171\154\x65\x3d\"c\165\162sor\072\x70\157i\x6ete\x72\x3b\" \157nc\x6ci\143\153\075\"\163\150\x6f\167\143h\141\x72\050'$name')\">\x20
\074\x74d\040\x77\151\x64th\x3d\"\x35\x30\"\040a\x6cign\x3d\"\x63\x65n\x74\145\x72\"\076$rang<\x2f\164\144\076
\x0a<\164\x64 \167i\144\x74\150\075\"\x317\x35\"\040a\x6ci\x67\156=\"\x6c\x65\x66\x74\">$name\x3c\057\x74\x64\x3e\x0d\012\074\164d\x20wi\144\164\x68=\"1\067\065\"\040\x61\x6c\151g\x6e\075\"\154\145\x66\164\"\x3e$clas\x3c\057t\x64\x3e
\x3c\x74\144\040w\x69dth=\"4\x30\" a\154\151\x67\156=\"\143\x65\156t\145\162\"\x3e$greset\074\x2ft\144\x3e\015\012<\x74\144\040\x77\x69dt\x68\075\"40\"\040al\x69\147\156\075\"c\x65\156\164\145r\">$reset\x3c/\x74d>\x0d\012\074\057\x74r\x3e";
}
print "\x20\x0d\012\074\057\164\141\142\x6c\145\076\015
</\144\x69\x76\x3e
\x3c/\x64\151v\x3e
\012\074\x64iv\040\x73tyl\x65\075\"w\x69\x64\164\x68:\x35\x30\x30\x70\170\073h\145\151g\x68t\072\0620\x70\x78\073\x74\x65\x78\164\055\141l\151gn\x3a\143en\164e\162\073\"><d\x69v \151\x64=\"l\157\141\x64i\x6e\x67\"\x3e\074\x69m\x67\x20\163r\x63=\"lo\141\x64\151\x6e\147.\147\x69f\" a\x6c\x74\075\"\x6c\157\141\x64\151\x6e\147\"\040\057><\x2f\144i\166\076\x3c\057\x64\x69\166\076";

Function Calls

session_start 1

Variables

None

Stats

MD5 d1e400d4516fb8ef5a9c8561b949f169
Eval Count 0
Decode Time 54 ms