SCDNG PELER
Server IP : 144.76.124.212  /  Your IP : 216.73.216.138
Web Server : LiteSpeed
System : Linux l4cp.vnetindia.com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : rakcha ( 1356)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home5/rakcha/public_html/admin/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home5/rakcha/public_html/admin/includes/delete.php
<?php 

   

     include("database.php");







	  //delete group details

	  



	  if (isset($_GET['news_id'])) {

	    $news_id = $_GET['news_id'];    

	    

	    $delete_query_news = "delete from notification where notification_id = '$news_id'";

	    

	     

	    

	    if (mysqli_query($con,$delete_query_news)) {

	     

	      echo "<script>alert('Notification has been deleted')</script>";

	      echo "<script>window.open('../notification.php', '_self')</script>";

	    }

	  } 



	  //delete group details



	  //delete gallery_id

    if (isset($_GET['gallery_id'])) {

    $gallery = $_GET['gallery_id'];

    

    $select_query_gallery = "select * from gallery where gallery_id='$gallery'";

    $run_gallery = mysqli_query($con,$select_query_gallery);

    while ($row_gallery = mysqli_fetch_array($run_gallery)) {

      

      $gallery_image = $row_gallery['image'];

      







    }

    



    $delete_query_gallery = "delete from gallery where gallery_id = '$gallery'";

    

     

    

    if (mysqli_query($con,$delete_query_gallery)) {

      unlink($_SERVER['DOCUMENT_ROOT'] . "/gallery/$gallery_image");

      

      echo "<script>alert('Gallery has been deleted')</script>";

      echo "<script>window.open('../gallery.php', '_self')</script>";

    }

  }





   //delete gallery_id

    if (isset($_GET['bond_id'])) {

    $gallery = $_GET['bond_id'];

    

    $select_query_gallery = "select * from bond_details where bond_id='$gallery'";

    $run_gallery = mysqli_query($con,$select_query_gallery);

    while ($row_gallery = mysqli_fetch_array($run_gallery)) {

      

      $gallery_image = $row_gallery['bond'];

      







    }

    



    $delete_query_gallery = "delete from bond_details where bond_id = '$gallery'";

    

     

    

    if (mysqli_query($con,$delete_query_gallery)) {

      unlink($_SERVER['DOCUMENT_ROOT'] . "/bond/$gallery_image");

      

      echo "<script>alert('Bond has been deleted')</script>";

      echo "<script>window.open('../bond_documents.php', '_self')</script>";

    }

  }



 ?>

Anon7 - 2022
SCDN GOK