HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/bsadmin-portal/add-video.php
<?php
	include("../classes/site_class.php");
	$obj = new Site();
	if($_SESSION['admin']['user_id']=='')
	{
		echo "<script>window.location.href='index.php'</script>";
	}
	if(isset($_REQUEST['Submit']) and !empty($_REQUEST['Submit']) and ($_REQUEST['Submit']=='Submit'))
	{
		$resp = $obj->addVideo();
		if($resp==0)
		{
		  echo "<script>alert('Required parameter missing.')</script>";
		}
		if($resp==5)
		{
			echo "<script>alert('Video added successfully.')</script>";
			echo "<script>window.location.href='manage-video.php'</script>";
		}
		if($resp==1 )
		{
			echo "<script>alert('Video is not save, Please try later.')</script>";
			echo "<script>window.location.href='add-video.php'</script>";
		}
	}
?>
<!doctype html>
<html class="fixed">
	<head>
		<title>Video :: SBSC Admin</title>
		<?php include("inc-head.php");?>
	</head>
	<body>
		<section class="body">
			<!-- start: header -->
				<?php include("inc-header.php"); ?>
			<!-- end: header -->
			<div class="inner-wrapper">
				<!-- start: sidebar -->
					<?php include("inc-navigation.php"); ?>
				<!-- end: sidebar -->
				<section role="main" class="content-body">
					<header class="page-header">
						<h2>Video Management</h2>
						<div class="right-wrapper pull-right">
							<ol class="breadcrumbs">
								<li>
									<a href="dashboard.php"><i class="fa fa-home"></i></a>
								</li>
								<li><span>Video Management</span></li>
								<li><span>Add Video</span></li>
							</ol>
							<a class="sidebar-right-toggle"></a>
						</div>
					</header>
					<!-- start: page -->
					<section class="panel">
						<header class="panel-heading">
							<div class="panel-actions">
								<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
								<a href="#" class="panel-action panel-action-dismiss" data-panel-dismiss></a>
							</div>
							<h2 class="panel-title">Add New Video</h2>
						</header>
						<div class="panel-body">
							<div class="row">
							
							</div>
							<form class="form-horizontal" name="video_form" method="Post" action="" enctype="multipart/form-data">
								<div class="form-group">
									<label for="name" class="control-label col-sm-3">Video Name*</label>
								    <div class="col-sm-9">
										<input type="text" class="form-control" name="name">
								    </div>
								</div>
								<div class="form-group">
									<label for="name" class="control-label col-sm-3">Video Url*</label>
								    <div class="col-sm-9">
										<input type="text" class="form-control" name="url">
										<p class="hint">Insert only embed code</p>
								    </div>
								</div>
								
								<div class="form-group">
									<div class="col-sm-offset-3 col-sm-10">
										<br/>
										<input type="submit" class="btn btn-primary" name="Submit" value="Submit" onclick="return Validate_AddVideo();" />
								    </div>
								</div>
							</form>
						</div>
					</section>
					<!-- end: page -->
				</section>
			</div>
		</section>
		<?php include("inc-footer.php"); ?>
	</body>
</html>