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('include/internal.php');
require('include/config.php');
require('requ.php');
if (isset($_POST['resstat'])) {
if (logged()) {
$user_login = $_SESSION['member'];
if (isset($_POST['sname'])) {
$sname = $_POST["sname"];
$creds_check = mssql_fetch_array(mssql_query("SELECT credits from memb_credits where memb___id='$user_login'"));
if (is_connected()) {
echo "<div class=\"error\">You have to disconnect from game to reset stat !</div>";
} elseif (is_vip() && ($creds_check[credits] < $resetstatcredsvip)) {
echo "<div class=\"error\">You do not have enough credits...</div>";
} elseif (!is_vip() && ($creds_check[credits] < $resetstatcreds)) {
echo "<div class=\"error\">You do not have enough credits...</div>";
} else {
if (is_vip()) {
$c2 = $creds_check[credits] - $resetstatcredsvip;
$takecreds = mssql_query("update memb_credits set credits='$c2' WHERE memb___id='$user_login'");
} else {
$c2 = $creds_check[credits] - $resetstatcreds;
$takecreds = mssql_query("update memb_credits set credits='$c2' WHERE memb___id='$user_login'");
}
$sql = mssql_query("Select LevelUpPoint,Strength,Dexterity,Vitality,Energy,Leadership FROM Character WHERE AccountID='$user_login' and Name = '$sname'");
while ($row = mssql_fetch_array($sql)) {
if ($row['LevelUpPoint'] < 0) {
$lvlupp = 0;
} else {
$lvlupp = $row['LevelUpPoint'];
}
$str = $row['Strength'];
$dex = $row['Dexterity'];
$vit = $row['Energy'];
$ene = $row['Vitality'];
$com = $row['Leadership'];
$str1 = fix65k($str1, $str);
$dex1 = fix65k($dex1, $dex);
$ene1 = fix65k($ene1, $ene);
$vit1 = fix65k($vit1, $vit);
$com1 = fix65k($com1, $com);
}
$lvluppo = $lvlupp + $str1 + $dex1 + $ene1 + $vit1 + $com1 - 100;
$logfile = 'logs/resetstat_logs.php';
$ip = $_SERVER['REMOTE_ADDR'];
$date = date('Y-m-d H:i');
$xdata = "Character $sname Has Been Reseted Stat. Points left to add: $lvluppo, on $date by IP:$ip
";
$fp = fopen($logfile, 'a');
fputs($fp, $xdata);
fclose($fp);
$fp1 = fopen($logfile, "a");
fputs($fp1, $xdata);
fclose($fp1);
$resetstat = mssql_query("Update Character SET LevelUpPoint='$lvluppo', Strength=25, Dexterity=25, Energy=25, Vitality=25, Leadership=0 WHERE AccountID='$user_login' and Name='$sname'");
print "<p>Updated credits: ";
listcreds($user_login);
print "</p>";
print "<div class=\"success\">Character <b>$sname</b> was succesfully reset stat. <br>You have now $lvluppo points to add !</div>";
}
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*---------------------------------------------------------\
| aEWDMU SCRIPT |
|----------------------------------------------------------|
| Copyright 2009, EWD Studio |
|----------------------------------------------------------|
| http://www.ewd-studio.net |
\---------------------------------------------------------*/
session_start();
require('include/internal.php');
require('include/config.php');
require('requ.php');
if (isset($_POST['resstat'])) {
if (logged()) {
$user_login = $_SESSION['member'];
if (isset($_POST['sname'])) {
$sname = $_POST["\163\x6ea\x6d\145"];
$creds_check = mssql_fetch_array(mssql_query("\x53\105\x4cECT\x20\143\x72e\x64i\164\163\040\146\x72\x6f\155 m\145mb_\143r\145\144\x69\164\163\040\x77\150ere\x20m\145mb_\x5f\137\151d\075'$user_login'"));
if (is_connected()) {
echo "\074d\151v c\154\x61\163\163=\"erro\162\"\076Y\157\x75 h\x61v\145\040\x74\x6f\040\144is\143\157nne\x63\164 f\x72\157\155 \x67\x61m\x65\x20\x74o\040r\145\163e\x74\040sta\164\040\x21\x3c\x2f\144\151\166\x3e";
} elseif (is_vip() && ($creds_check[credits] < $resetstatcredsvip)) {
echo "\x3cd\151\x76\040\143\154\x61s\x73=\"\145rr\x6fr\"\x3eYo\165\x20\x64\157\x20\x6eot\040\150\141\166e e\x6e\157\x75\147h\040\x63\x72\145d\x69t\163.\056\x2e\074\x2fd\151\x76>";
} elseif (!is_vip() && ($creds_check[credits] < $resetstatcreds)) {
echo "\x3cdi\x76\x20\x63\x6c\141\x73\x73\x3d\"\145r\x72\x6fr\"\x3e\131o\165\040do\040no\x74\040\x68\x61v\x65 \x65\156\x6fug\150\x20\x63\x72\x65\x64\x69t\163.\x2e\x2e\x3c\x2f\144i\166\076";
} else {
if (is_vip()) {
$c2 = $creds_check[credits] - $resetstatcredsvip;
$takecreds = mssql_query("\x75\x70\x64a\164\x65 me\155b\x5f\x63\162e\x64it\163\040se\x74\040cr\x65di\164\163\x3d'$c2' \127\110\x45R\105 \x6d\x65m\142__\137id\x3d'$user_login'");
} else {
$c2 = $creds_check[credits] - $resetstatcreds;
$takecreds = mssql_query("\165p\144\141\x74e\x20\x6d\x65\155\x62_\x63\162\145dits\040\x73\145t\x20\143r\x65\x64\x69ts='$c2'\040\127\x48E\x52\x45 \155emb\137\137\137\151\144='$user_login'");
}
$sql = mssql_query("\x53\x65\x6ce\143\164 Le\166\145\154\x55\x70P\x6f\x69\156t\054Str\145\156\x67\164\150\x2c\x44e\170t\x65\162i\164\x79\054V\151t\141\x6cit\171,\105n\145\162g\171,Le\141\144\145\162\163h\151p\x20F\x52\x4f\x4d\x20\x43\150\x61\162\x61\143t\145\162\x20\x57\x48\105\x52\105\x20\x41c\x63o\165n\x74I\104\x3d'$user_login'\x20a\x6ed\040\116\x61\155\x65\x20\075 '$sname'");
while ($row = mssql_fetch_array($sql)) {
if ($row['LevelUpPoint'] < 0) {
$lvlupp = 0;
} else {
$lvlupp = $row['LevelUpPoint'];
}
$str = $row['Strength'];
$dex = $row['Dexterity'];
$vit = $row['Energy'];
$ene = $row['Vitality'];
$com = $row['Leadership'];
$str1 = fix65k($str1, $str);
$dex1 = fix65k($dex1, $dex);
$ene1 = fix65k($ene1, $ene);
$vit1 = fix65k($vit1, $vit);
$com1 = fix65k($com1, $com);
}
$lvluppo = $lvlupp + $str1 + $dex1 + $ene1 + $vit1 + $com1 - 100;
$logfile = 'logs/resetstat_logs.php';
$ip = $_SERVER['REMOTE_ADDR'];
$date = date('Y-m-d H:i');
$xdata = "\x43\150\x61\x72\141\143\x74\145r\x20$sname\040Has\x20B\145\x65\156\040Re\x73\145\x74ed \123\x74at\056\040\x50\157\x69\156t\163\040\x6c\145ft \x74\157\x20a\x64d\072\x20$lvluppo, o\x6e\x20$date \x62\171 I\x50\x3a$ip\040\n";
$fp = fopen($logfile, 'a');
fputs($fp, $xdata);
fclose($fp);
$fp1 = fopen($logfile, "a");
fputs($fp1, $xdata);
fclose($fp1);
$resetstat = mssql_query("U\160\144\141\x74e C\x68\141\x72\x61c\164\x65\x72\040\123\x45\x54\040\x4ce\166e\154\x55p\120\x6f\x69\156\164='$lvluppo', \123\x74\x72\145\156g\164\150\075\062\065\x2c\x20\104e\170\164\145\162i\164\171\07525,\040\105ne\162\x67\171\x3d\062\x35\054 Vi\x74al\x69\x74y=\x32\065\054 \x4c\x65\141de\x72s\x68\x69\x70\x3d\060 \x57H\105\x52\105\040\101\x63\143\x6fun\x74\111D='$user_login' a\x6ed\040N\141\x6d\x65\075'$sname'");
print "\074\x70\x3e\x55pdat\145\x64\x20c\x72\145\x64\151ts\072\040";
listcreds($user_login);
print "\074/\160\076";
print "<\144\151\x76\040c\154a\x73\x73\x3d\"su\143\x63e\163s\"\x3e\103\150a\x72a\x63\164\145\162 \x3c\x62\076$sname\x3c\x2f\x62\076\x20\x77a\x73\x20s\165\x63\143e\x73\146u\154\x6cy\040res\145t stat\x2e\040\074\x62\x72\076Y\157\x75\040\150\x61\166\145\040n\x6f\x77 $lvluppo\x20\160\x6f\x69n\x74s \164\157\040a\x64d\040\041\074\057\144\x69v\x3e";
}
}
}
}
Function Calls
| session_start | 1 |
Stats
| MD5 | 70ad29d7a3ce40a99b5536a6472afbce |
| Eval Count | 0 |
| Decode Time | 50 ms |