Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(base64_decode('JGNvZGVsb2NrX2NvZGU9ImEhamJIVmtaU2dpTGk0dlkyOXVabWxuTDBOdmJtNWxZM1JwYj..

Decoded Output download

include("../config/Connection.php");
$we=$_REQUEST['we'];
$SalemanSelectd=$_REQUEST['Saleman'];
if ($we==1){
header('Content-type: application/word');
header('Content-Disposition: attachment; filename="Expense.doc"');
} else if ($we==2){ 
header('Content-type: application/excel');
header('Content-Disposition: attachment; filename="Expense.xls"');

}
include("Rhead.php");

$From=$_REQUEST['From'];
$To=$_REQUEST['To'];
$From_Date = date("Y-m-d", strtotime($From));
$To_Date = date("Y-m-d", strtotime($To));	
   
?>
<br />

<table width="100%" style="font-family:Calibri">
<tr>
 <td style='border:none; letter-spacing:6px; font-size:24px; color:#990000;' colspan="5" align="center"><?php echo $SalemanSelectd; ?> RECOVERY REPORTS</td>
</tr>
<tr>
 
     <th width="6%" style="border-bottom:solid; border-width:1px;">Sr#</th>
     <th width="25%" style="border-bottom:solid; border-width:1px;">Customer</th>
     <th width="12%" style="border-bottom:solid; border-width:1px;">P.Balance</th> 
     <th width="18%" style='border-bottom:solid; border-width:1px; letter-spacing:6px;'>Present Bill</th>
     
     <th width="18%" style="border-bottom:solid; border-width:1px;">Receive</th>
	 <th width="18%" style="border-bottom:solid; border-width:1px;">Total</th>
   <!--  <th width="18%" style="border-bottom:solid; border-width:1px;">Balance</th> -->
     <th width="18%" style="border-bottom:solid; border-width:1px;">Bill #</th>
     
</tr>
<?php  $gtr=0; $gtp=0; $sr=1;

$rss=mysql_query("select * from  specification_uasils where Specific_use='$SalemanSelectd' and  Specification_Id=16");				
while($newArrayzs=mysql_fetch_array($rss)) {
$account_Idz=$newArrayzs['account_Id'];	

$rs=mysql_query("select * from  accounts where account_Id='$account_Idz'");				
while($newArrayz=mysql_fetch_array($rs)) {	
  $account_Id=$newArrayz['account_Id'];
  $account_Name=$newArrayz['account_Name'];
  $Close_balenc=$newArrayz['Close_balenc'];

  $Ref=$Previous_Balance=$Bill_Balance=$Total_Balance=$Grand_Total=$Cash='';
$rst=mysql_query("select * from  invoice_summary where  invoice_summary.Date>='$From_Date' and invoice_summary.Date<='$To_Date' and Customer_Id='$account_Id'");				
while($newArray=mysql_fetch_array($rst)) {	
  $Account_Id= $newArray['Customer_Id'];
 $Ref= $newArray['Invoice'];
 $Previous_Balance= $newArray['Previous_Balance'];
 $Bill_Balance= $newArray['Bill_Balance'];
 $Total_Balance= $newArray['Total_Balance'];
 
 $Grand_Total= $newArray['Grand_Total'];
 $Cash= $newArray['Cash'];
 $Bill_Balance= $newArray['Bill_Balance'];
 


$Opening=$Close_balenc-$Cr;
} if($Total_Balance==''){
  $Total_Balance=$Close_balenc;
} if($Total_Balance>1){
  ?>
  <tr>
      <td align="center" style="border-bottom:dotted; border-width:1px;"><?php echo $sr; ?>. </td>
     <td width="25%" style="border-bottom:dotted; border-width:1px;"><?php echo $account_Name; ?></td>
     <td width="12%" style="border-bottom:dotted; border-width:1px;"><?php echo number_format($Previous_Balance,2) ?></td> 
     <td width="18%" style="border-bottom:dotted; border-width:1px;"><?php echo number_format($Grand_Total,2)  ?></td>
	 <td align="right" width="18%" style="border-bottom:dotted; border-width:1px;"><?php echo number_format($Cash,2)  ?></td>
 <td align="right" width="9%" style="border-bottom:dotted; border-width:1px;"><?php echo number_format($Total_Balance,2)  ?></td>
 
<!-- <td align="right" width="18%" style="border-bottom:dotted; border-width:1px;"><?php echo number_format($Bill_Balance,2)  ?></td> -->
 <td align="right" width="18%" style="border-bottom:dotted; border-width:1px;"><?php echo $Ref;  ?></td>

 
 </tr>
<?php $gtr=$gtr+$Cr; $sr=$sr+1; } } }?>
         
         
         

<tr>

<th style="border:solid; border-width:1px;" colspan="6">TOTAL</th>
<th align="right" width="18%" style="border:solid; border-width:1px;"><font color="#FF0000" ><?php  echo number_format($gtr);  ?></font></th>

<th></th>
</tr>

</table>

<?php 
include("Rfoot.php");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G9ja19jb2RlPXN0cl9yZXBsYWNlKCIhIiwgIlc1IiwgJGNvZGVsb2NrX2NvZGUpOyAkY29kZWxvY2tfY29kZT1zdHJfcmVwbGFjZSgiKiIsICJDQWdJIiwgJGNvZGVsb2NrX2NvZGUpOyAkY29kZWxvY2tfY29kZT1iYXNlNjRfZGVjb2RlKCRjb2RlbG9ja19jb2RlKTsgZXZhbCgkY29kZWxvY2tfY29kZSk7IAo=')); 

Function Calls

str_replace 3
base64_decode 2

Variables

$codelock_code include("../config/Connection.php"); $we=$_REQUEST['we']; ..

Stats

MD5 5ed056ce423aaf01126037c3ae27a50f
Eval Count 2
Decode Time 58 ms