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 $evalue = "PD8NCnJlcXVpcmUoImNvbmZpZy5pbmMiKTsNCnJlcXVpcmUoImNoa3Nlc3Npb24ucGhwIik7D..

Decoded Output download

 ?>b'<?
require("config.inc");
require("chksession.php");
$SecName=$_REQUEST["SecName"];
$sshow=$_REQUEST["show"];
$mdetails=$_REQUEST["mdetails"];
$bFile = $_FILES["bFile"]["name"];
$img="";
if($SecName<>""){

$qryMSecID=mysql_query("select MSecID from tbl_mainsection order by MSecID desc") or die("Invalid Values: " . mysql_error());
if($qryMSecID){
	$rows=mysql_num_rows($qryMSecID);
	if($rows>0){
		$data=mysql_fetch_row($qryMSecID);
		$MSecID=$data[0]+1;
	}else{
		$MSecID=1;
	}
}
$qryRank=mysql_query("select rank from tbl_mainsection order by rank desc") or die("Invalid Values: " . mysql_error());
if($qryRank){
	$rows=mysql_num_rows($qryRank);
	if($rows>0){
		$data=mysql_fetch_row($qryRank);
		$Rank=$data[0]+1;
	}else{
		$Rank=1;
	}
}




$qrylang=mysql_query("select * from tbl_lang where active=\'y\'") or die("Invalid Sql: " . mysql_error());
if($qrylang){
		$rowslang=mysql_num_rows($qrylang);
			if($rowslang>0){
				
							
			for($i=1;$i<=$rowslang;$i++){
					
					$datalang=mysql_fetch_row($qrylang);

if (!($bFile==\'\')){
$img = "msec_".$MSecID.".jpg";
}

				

$qry=mysql_query("insert into tbl_mainsection(MSecID,MSecName,sshow,Rank,msecimg,lngid,mdetails) values(\'".$MSecID."\',\'".$SecName."\',\'".$sshow."\',\'".$Rank."\',\'".$img."\',\'".$datalang[2]."\',\'".$mdetails."\')") or die("Invalid Values: " . mysql_error());



if($qry){
if (!($bFile==\'\')){
move_uploaded_file($_FILES[\'bFile\'][\'tmp_name\'],$msecimgs.$img);
}
}

			  }
			}
}
}
header(\'Location:mmainsections.php?lng=\'.$LngID.\'&mess=A+New+Main+Section+has+been+added\');
?>
'<?php 

Did this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vbitoYXMrYmVlbithZGRlZCcpOw0KPz4NCg==";eval(" ?>".base64_decode($evalue) . "<?php ");

 ?>

Function Calls

base64_decode 1

Variables

$evalue PD8NCnJlcXVpcmUoImNvbmZpZy5pbmMiKTsNCnJlcXVpcmUoImNoa3Nlc3Np..

Stats

MD5 ecf2202bcc5533b78e588575607cda21
Eval Count 1
Decode Time 51 ms