AnonSec Shell
Server IP : 149.202.105.228  /  Your IP : 216.73.216.18
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/atfycaf/www/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/atfycaf/www/admin/calendarsDel.php
<?php
$thisCheckID	= 3;
include "globalVars.php";

include "header.php";
?>

				<h2>Delete a Calendar</h2>
<?php

if (isset($_POST["deleteCalendar"])) {

	$calenderID		= $_POST["calenderID"];
	$calendarName	= $_POST["calendarName"];

	mysqli_query($conn, "DELETE FROM calendars WHERE id = '$calenderID'") or die (mysqli_error($conn));

	$trackDate		= date("Y-m-d H:i:s");
	mysqli_query($conn, "INSERT INTO userActions (dateCreated, adminID, pageTracking, databaseUpdated, updateDetails) VALUES ('$trackDate', '$adminID', 'admin/calendarsDel.html', 'calendars', 'The User ". addslashes($adminName) ." &lt;$adminEmail&gt; deleted the calendar ID $calenderID (". addslashes($calendarName) .")')");

	echo "<p><strong>Success!</strong> The $calendarName calendar has been deleted.</p>";

} elseif (isset($_POST["getCalendar"])) {
	$calenderID		= $_POST["calenderID"];

	$localClubsQuery = mysqli_query($conn, "SELECT * FROM calendars WHERE id = '$calenderID'");
	while ($lCQ = mysqli_fetch_array($localClubsQuery)) {
		$calendarName	= $lCQ["calendarName"];
		$calendarURL 	= $lCQ["calendarURL"];
	}
	?>
    <form action="calendarsDel.html" method="post">
		<input type="hidden" name="calenderID" value="<?php echo $calenderID ?>">
		<div class="descStTab">
			<div class="pFormRow">
				<div class="pFormTitle">Calendar name:</div>
				<div class="pFormInput">
					<input type="text" name="clubName" size="50" value="<?php echo $calendarName ?>" readonly />
					<div class="pFormLabel">
						<label class="labelName">Calendar name:</label>
					</div>
				</div>
			</div>
			<div class="pFormRow">
				<div class="pFormTitle">Calendar URL:</div>
				<div class="pFormInput">
					<input type="url" name="calendarURL" size="50" placeholder="https://www.example.com" value="<?php echo $calendarURL ?>" readonly />
					<div class="pFormLabel">
						<label class="labelName">Calendar URL:</label>
					</div>
				</div>
			</div>
		</div>
		<p style="float:left; width:100%; text-align:center; font-weight:600;">Are you sure you want to delete the <span style="color:#B0222A;"><?php echo $calendarName ?></span> calendar from the website? This process cannot be undone.</p>
		<input type="submit" class="submitButton" name="deleteCalendar" value="Delete this Calendar" />
	</form>
    <?php
} else {
	header("Location: calendarsEdit.html");
}
?>

<?php
include "footer.php";
?>

Anon7 - 2022
AnonSec Team