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//pagesBGVideoNew.php
<?php
include "globalVars.php";

include "header.php";
?>
    <h2>Upload a New Video Background</h2>
<?php

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

	$videoURL		= $_POST["videoURL"];
	$videoTitleEN	= $_POST["videoTitle_en"];
	$pagesLock		= $_POST["pagesLock"];

	$pageURL		= str_replace($badURL, $goodURL, $videoTitleEN);
	$pageURL		= strtolower($pageURL) ;

	$dupQuery = mysqli_query($conn, "SELECT bgImage FROM pageBG WHERE bgImage = '$pageURL.mp4'");
	$isDup = mysqli_num_rows($dupQuery);
	if ($isDup > 0) {
		$pageURL .= "-". ($isDup + 1);
	}
	$bgVideo	= $SERVER_ROOT ."/images/pagesBG/". $pageURL .".mp4";
	$bgTitle	= $SERVER_ROOT ."/images/pagesBG/". $pageURL ."-title.mp4";
	$bgThumb	= $SERVER_ROOT ."/images/pagesBG/". $pageURL ."-thumb.jpg";
	$videoSQL	= $pageURL .".mp4";

	$tmpVideo	= $_SERVER['DOCUMENT_ROOT'] . "/images/pagesBG/video-". $videoURL .".mp4";
	$tmpTVideo	= $_SERVER['DOCUMENT_ROOT'] . "/images/pagesBG/video-". $videoURL ."-still.mp4";
	$tmpThumb	= $_SERVER['DOCUMENT_ROOT'] . "/images/pagesBG/video-". $videoURL ."-thumb.jpg";

	rename($tmpVideo, $bgVideo);
	rename($tmpTVideo, $bgTitle);
	rename($tmpThumb, $bgThumb);

	mysqli_query($conn, "INSERT INTO pageBG (imageVideo, pagesLock, bgImage) VALUES ('1', '$pagesLock', '$videoSQL')");
	$bgID			= mysqli_insert_id($conn);

	foreach($langURLArray as $dbLang) {
		$bgTitle	= str_replace($encBad, $encGood, $_POST["videoTitle_".$dbLang]);
		if (trim($bgTitle) == "") {
			$bgTitle	= $videoTitleEN;
		}

		mysqli_query($conn, "INSERT INTO pageBGTitle_". $dbLang ." (id, bgTitle) VALUES ('$bgID', '". addslashes($bgTitle) ."')") 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/pagesBGVideoNew.html', 'pageBG', 'The User ". addslashes($adminName) ." &lt;$adminEmail&gt; created the new background video ". addslashes($videoTitleEN) ."')");

	?>
	<p>Success!! The video background has been successfully uploaded.</p>
	<a href="pagesBG.html" class="submitButton">View all Backgrounds</a>
	<?php
	
} else {
	?>
	<p>Upload a short video to add to the pages gallery. Videos will be automatically converted to a web format and edited to the correct size and just the first 15 seconds if they are longer than that.</p>
	<?php
	if (count($langArray) != 1) {
		?>
    <div id="langSelector">
		<?php
		foreach($langArray as $langArrayURL=>$langArrayDisplay) {
			?>
		<a id="<?php echo $langArrayURL ?>Selector"<?php if ($langArrayURL == "en") {?> class="selectedLang"<?php } ?>><?php echo $langArrayDisplay ?></a>
			<?php
		}
		?>
    </div>
		<?php
	}
	?>
    <form action="pagesBGVideoNew.html" method="post">
		<input type="hidden" name="videoURL" id="videoURL" value="">
		<?php
		foreach($langArray as $langTab=>$langDisplay) {
			?>
		<div class="descTab" id="<?php echo $langTab ?>SelectorTab">
			<div class="pFormRow">
				<div class="pFormTitle"><?php echo $langDisplay ?> Video Title:</div>
				<div class="pFormInput">
					<input type="text" name="videoTitle_<?php echo $langTab ?>" id="videoTitle_<?php echo $langTab ?>" size="50" value=""<?php if ($langTab == "en") {?> required<?php } ?> />
					<div class="pFormLabel">
						<label class="labelName"><?php echo $langDisplay ?> Video Title:</label>
					</div>
				</div>
			</div>
		</div>
			<?php
		}
		?>
		<div class="descStTab">
			<div class="pFormRow">
				<div class="pFormTitle">Limit to one page:</div>
				<div class="pFormSelect">
					<select name="pagesLock">
						<option value="0">Show on all pages</option>
					<?php
					$pageQuery = mysqli_query($conn, "SELECT * FROM pages_en ORDER BY id ASC") or die (mysqli_error($conn));
					while ($pQ = mysqli_fetch_array($pageQuery)) {
						$pageID			= $pQ["id"];
						$pageName		= $pQ["menuTitle"];
						?>
						<option value="<?php echo $pageID ?>"><?php echo $pageName ?></option>
						<?php
					}
					?>
					</select>
					<div class="pFormLabel">
						<label class="labelName">Limit to one page:</label>
					</div>
				</div>
			</div>
		</div>
		<div class="descLogoBGTab">
			<div id="uploadForm">
				<div class="pFormRow">
					<div class="pFormTitle">Add Video: <span class="infoButton"><img src="images/infoButton.png" width="14" height="14" alt="Help" title="Help" border="0" /><span>This video <strong>MUST</strong> be a minimum size of 1920 x 1080 pixels.<br />Videos smaller than this will be scaled up which will make them blurred and generally of poor quality</span></span></div>
					<span class="btn btn-success fileinput-button">
						<span><strong>+</strong> Select video...</span>
						<input id="fileupload" type="file" name="files[]" accept="video/*">
					</span>
				</div>
				<div id="progress">
					<div class="bar" style="width: 0%;"></div>
				</div>
				<p id="encodeTimer">Time elapsed: <span id="stopwatch"></span></p>
				<div id="status"></div>
			</div>
		</div>
		<div class="descImgBGTab" id="uploadedVideo"></div>
		<input type="submit" class="submitButton" id="saveVideoBG" name="uploadNewBG" value="Save new background" />
	</form>
	<?php
}
?>


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

Anon7 - 2022
AnonSec Team