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/leagueEdit.php
<?php
$thisCheckID	= 11;
include "globalVars.php";

if (isset($_POST["deleteL"])) {
	$deleteID	= $_POST["lID"];

	$leagueQuery = mysqli_query($conn, "SELECT * FROM leagueConfig WHERE id = '$deleteID'");
	while ($lQ = mysqli_fetch_array($leagueQuery)) {
		$leagueType			= $lQ["leagueType"];
		$lFullSDate			= $lQ["startDate"];
		$lStartMonth		= date("F", strtotime($lFullSDate));
		$lStartYear			= date("Y", strtotime($lFullSDate));
		$leagueStartDate	= "$lStartMonth $lStartYear";
	}
	$leagueIDQuery = mysqli_query($conn, "SELECT groupTitle FROM leagueGroups WHERE id = '$leagueType'");
	while ($lIQ = mysqli_fetch_array($leagueIDQuery)) {
		$groupTitle		= $lIQ["groupTitle"];
	}

	$trackDate		= date("Y-m-d H:i:s");
	$trackTitle		= "$groupTitle $lStartMonth $startYear";
	mysqli_query($conn, "INSERT INTO userActions (dateCreated, adminID, pageTracking, databaseUpdated, updateDetails) VALUES ('$trackDate', '$adminID', 'admin/leagueEdit.html', 'leagueConfig', 'The User ". addslashes($adminName) ." &lt;$adminEmail&gt; deleted the league ID: $deleteID (". addslashes($trackTitle) .")')");

	mysqli_query($conn, "DELETE FROM leagueConfig WHERE id = '$deleteID'");
	$miniLeagueQuery = mysqli_query($conn, "SELECT id FROM leagueMiniLeagues WHERE leagueID = '$deleteID' ORDER BY id ASC");
	while ($mLQ = mysqli_fetch_array($miniLeagueQuery)) {
		$miniLeagueID	= $mLQ["id"];

		mysqli_query($conn, "DELETE FROM leagueMiniLeaguesTeams WHERE miniLeagueID = '$miniLeagueID'");
		mysqli_query($conn, "DELETE FROM leagueResults WHERE miniLeagueID = '$miniLeagueID'");
	}
	mysqli_query($conn, "DELETE FROM leagueMiniLeagues WHERE leagueID = '$deleteID'");

} else {

	include 'header.php';
	?>

		<h2>Update a League</h2>
		<table id="leagueETable">
			<thead>
				<th>Start Date</th>
				<th>League Type</th>
				<th>Title</th>
				<th>N&ordm; Teams</th>
				<th>&nbsp;</th>
				<?php
				if (in_array("12", $adminPriv)) {
					?>
				<th>&nbsp;</th>
					<?php
				}
				?>
			</thead>
			<tbody>
			<?php
			$SQLquery = mysqli_query($conn, "SELECT id, leagueType, leagueTitle, hasMiniLeagues, noTeams, startDate FROM leagueConfig WHERE id > '0'");
			while ($sQ = mysqli_fetch_array($SQLquery)) {
				$leagueID		= $sQ["id"];
				$leagueType		= $sQ["leagueType"];
				$startDate		= $sQ["startDate"];
				$tStartMonth	=  date("F", strtotime($startDate));
				$tStartYear		=  date("Y", strtotime($startDate));
				$startDisplay	= date("jS F, Y", strtotime($startDate));
				$hasMiniLeagues	= $sQ["hasMiniLeagues"];
				$noTeams	= $sQ["noTeams"] ." team";
				if ($noTeams > 1) {
					$noTeams	.= "s";
				}
				if ($hasMiniLeagues > 1) {
					$league_s	= "in $hasMiniLeagues groups";
				} else {
					$league_s	= "";
				}
				$leagueTitle	= "$tStartMonth $tStartYear";

				$tournamentIDQuery = mysqli_query($conn, "SELECT groupTitle FROM leagueGroups WHERE id = '$leagueType'");
				while ($tIQ = mysqli_fetch_array($tournamentIDQuery)) {
					$leagueGroup	= $tIQ["groupTitle"];
				}
				?>
				<tr id="leagueERow<?php echo $leagueID ?>">
					<td><span class="tableDate"><?php echo $startDate ?></span><?php echo $startDisplay ?></td>
					<td><?php echo $leagueGroup ?></td>
					<td><?php echo $leagueTitle ?></td>
					<td><?php echo "$noTeams $league_s" ?></td>
					<td class="tableBtns">
						<form action="leagueEdit-1.html" method="post"><input type="hidden" name="leagueID" value="<?php echo $leagueID ?>" />
							<input type="submit" class="submitButton" name="getLeague" value="Edit">
						</form>
					</td>
				<?php
				if (in_array("12", $adminPriv)) {
					?>
					<td class="tableBtns">
						<input type="button" class="deleteButton" data-lid="<?php echo $leagueID ?>" data-lt="<?php echo $leagueTitle ?>" value="Delete">
					</td>
					<?php
				}
				?>
				</tr>
				<?php
			}
			?>
			</tbody>
		</table>

<div id="deleteConfirmPop" class="deletePop">
	<div class="deletePopBG">
		<div class="deletePopContainer">
			<h4>Confirm Delete</h4>
			<p>Are you sure you want to delete the Knockout Tournament <span id="groupNameC"></span>?</p>
			<p class="deleteWarning">Warning, once you click to confirm the data will be removed completely and cannot be retrieved.</p>
			<input type="hidden" id="gidInputC" value="">
			<div class="pForm50">
				<button type="button" class="submitButton cancelDeleteC">No</button>
			</div>
			<div class="pForm50">
				<button type="button" id="confirmTDelete" class="deleteButton">Yes, Delete it</button>
			</div>
		</div>
	</div>
</div>
	<?php
	include 'footer.php';
}
?>

Anon7 - 2022
AnonSec Team