HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/baretube.com/upload2.php
<?
session_start();
include('admin/db.php');
$title = 'Upload - Step 2'; 
$headertitle = 'Upload - Step 2';
if($allowUploads) {
	if(!$_SESSION[userid]) {
		include($basepath.'/templates/template.overall_header.php'); 
		echo "You must be logged in to upload. <a href='$basehttp/login.php'>Click here to login.</a>";
		include($basepath.'/templates/template.overall_footer.php'); 
		exit();
	}
	else {
		if($_SESSION[user_level] == 2) {
			$isSponsor = true; 
		}
		else {
			if(!$allowSurferUploads) {
				include($basepath.'/templates/template.overall_header.php'); 
				echo "We are currently not allowing uploads from surfers."; 
				include($basepath.'/templates/template.overall_footer.php'); 
				exit();
			}
		}
	}
}
else {
	include($basepath.'/templates/template.overall_header.php'); 
	echo "We're sorry, uploads are currently disabled."; 
	include($basepath.'/templates/template.overall_footer.php'); 
	exit();
}


include($basepath.'/templates/template.overall_header.php');
?>
<script type="text/javascript">
	var swfu;

		window.onload = function () {
			swfu = new SWFUpload({
				upload_url: "<? echo $basehttp;?>/process/process.video_upload.php",
				file_post_name: "video",
				file_size_limit : "1024 MB",
				file_types : "*.flv;*.mpg;*.wmv;*.avi;*.3gp;*.qt;*.mp4;*.mov;",
				file_types_description : "Video Files",
				file_upload_limit : "0",
				file_queue_limit : "1",
				swfupload_loaded_handler : swfUploadLoaded,
				file_dialog_start_handler: fileDialogStart,
				file_queued_handler : fileQueued,
				file_queue_error_handler : fileQueueError,
				file_dialog_complete_handler : fileDialogComplete,
				upload_progress_handler : uploadProgress,
				upload_error_handler : uploadError,
				upload_success_handler : uploadSuccess,
				upload_complete_handler : uploadComplete,
				button_image_url : "<? echo $basehttp; ?>/images/upload.png",	// Relative to the SWF file
				button_placeholder_id : "spanButtonPlaceholder",
				button_width: 86,
				button_height: 22,
				flash_url : "<? echo $basehttp; ?>/swfupload.swf",
				custom_settings : {
					progress_target : "fsUploadProgress",
					upload_successful : false
				},
				debug: false
			});

		};
	</script>
<? include($basepath.'/templates/template.uploadform.php'); ?>
<? include($basepath.'/templates/template.overall_footer.php'); ?>