Your IP : 216.73.217.87


Current Path : /hdd/hdd11/www/vlevski/enter/vid/
Upload File :
Current File : /hdd/hdd11/www/vlevski/enter/vid/indeold.php

<?php
	header("Cache-Control: no-cache, must-revalidate");
	header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
	date_default_timezone_set("Europe/Sofia");
	if (isset($_COOKIE["allowaccess"]))
	{
		$allowaccess=$_COOKIE["allowaccess"];
	}
	if ($allowaccess=="no")
	{
		header("location: /");
	}
?><!DOCTYPE HTML>
<html lang="bg">
	<head>
		<meta charset="utf-8" />
		<title>Видеопортал</title>
		<link rel="shortcut icon" type="image/png" href="/assets/images/site/enter.png" />
		<link rel="shortcut icon" type="image/png" href="https://enter.vlevski.eu/assets/images/site/enter.png" />
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
		<link rel="stylesheet" href="/assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="/assets/css/datepicker.css" />
		<script src="/assets/js/jquery.min.js"></script>
		<script src="/assets/js/popper.min.js"></script>
		<script src="/assets/js/bootstrap.min.js"></script>
		<script src="/assets/js/bootstrap-datepicker.js"></script>
		<script src="/assets/fa/js/all.min.js" defer></script>
		<style>
			html, body
			{
				margin: 0;
				padding: 0;
				background-color: #112233;
				font-family: Calibri, sans-serif;
			}
			div
			{
				color: #DDDDDD;
			}
			a.dropdown-item
			{
				color: #DDDDDD!important;
			}
			a.dropdown-item:hover
			{
				color: #FFFFFF!important;
				background-color: transparent!important;
			}
			.dropdown .dropdown-menu
			{
				-webkit-transition: all 0.5s;
				-moz-transition: all 0.5s;
				-ms-transition: all 0.5s;
				-o-transition: all 0.5s;
				transition: all 0.5s;
				max-height: 0;
				display: block;
				overflow: hidden;
				opacity: 0;
			}
			.dropdown.show .dropdown-menu
			{
				max-height: 300px;
				opacity: 1;
			}
		</style>
		<script>
			if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent))
			{
				window.location="microsoft-edge:"+window.location;
				setTimeout(function() { window.location="https://go.microsoft.com/fwlink/?linkid=2135547"; }, 1);
			}
			oldid="";
			function plv(id)
			{
				p=document.getElementById("vp");
				if ((oldid=="") || (id!=oldid))
				{
					$("#vp").attr("src", "./v.php?id="+id);
				}
				else
				{
				}
				if (p.requestFullscreen)
				{
					p.requestFullscreen();
				}
				else if (p.webkitRequestFullscreen)
				{
					p.webkitRequestFullscreen();
				}
				else if (p.mozRequestFullScreen)
				{
					p.mozRequestFullScreen();
				}
				else
				{
					p.requestFullscreen();
				}
				oldid=id;
				p.play();
			}
			function plvp(id)
			{
				$.ajax({url: "./video.php", type: "POST", data:{"allow": "yes"}, success: function(data) { if (data=="OK") { setTimeout(function() { plv(id); }, 300); } } });
			}
			function efs()
			{
				p=document.getElementById("vp");
				p.pause();
				//$.ajax({url: "./video.php", type: "POST", data:{"allow": "no"}, success: function(data) { if (data=="OK") { } } });
			}
			function fse()
			{
				if (document.webkitIsFullScreen===false)
				{
					efs();
				}
				else if (document.mozFullScreen===false)
				{
					efs();
				}
				else if (document.msFullscreenElement===false)
				{
					efs();
				}
				else
				{
					efs();
				}
			}
			if (document.addEventListener)
			{
				document.addEventListener("fullscreenchange", fse, false);
				document.addEventListener("mozfullscreenchange", fse, false);
				document.addEventListener("MSFullscreenChange", fse, false);
				document.addEventListener("webkitfullscreenchange", fse, false);
			}
		</script>
	</head>
	<body>
		<nav id="navbar" style="position: fixed; width: 100%; top: 0; left: 0; z-index: 200;" class="navbar navbar-expand-lg navbar-fixed-top navbar-dark bg-dark">
			<li class="nav-item active" style="list-style: none;">
				<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
					<span class="navbar-toggler-icon"></span>
				</button>
			</li>
			<div class="collapse navbar-collapse" id="navbarNav">
				<ul class="navbar-nav">
					<li class="nav-item dropdown">
						<a class="nav-link disabled dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i style="color: #DDDDDD;" class="fas fa-user-friends"></i> MS Teams</a>
						<div class="dropdown-menu bg-dark dropdown-dark" aria-labelledby="navbarDropdown">
							<a class="dropdown-item" href="#"><i style="color: #DDDDDD;" class="fab fa-windows"></i> MS Teams профил</a>
							<div class="dropdown-divider"></div>
							<a class="dropdown-item" href="#"><i style="color: #DDDDDD;" class="fas fa-users"></i> MS Teams екипи</a>
						</div>
					</li>
					<li class="nav-item">
						<a class="nav-link disabled" href="#"><i class="far fa-question-circle"></i> Анкети</a>
					</li>
					<li class="nav-item">
						<a class="nav-link disabled" href="#"><i style="color: #DDDDDD;" class="fas fa-photo-video"></i> Видеопортал</a>
					</li>
					<li class="nav-item">
						<a class="nav-link" href="javascript:document.getElementById('fc19').submit();"><form id="fc19" action="/c19/" method="POST" target="_blank"><input name="tn" value="<?php print("".$tnp.""); ?>" type="hidden" /></form><i style="color: #DDDDDD;" class="fas fa-virus"></i> Справка COVID-19</a>
					</li>
				</ul>
				<ul class="navbar-nav ml-auto">
					<li class="nav-item dropdown">
						<a class="nav-link dropdown-toggle" href="javascript: void();" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i style="color: #DDDDDD;" class="fas fa-user"></i> <?php print("".$tname.""); ?></a>
						<div class="dropdown-menu dropdown-menu-right bg-dark dropdown-dark" aria-labelledby="navbarDropdown">
							<a class="dropdown-item disabled" href="javascript: void();"><i style="color: #DDDDDD;" class="fas fa-cog"></i> Настройки</a>
							<div class="dropdown-divider"></div>
							<a class="dropdown-item" href="/"><i style="color: #DDDDDD;" class="fas fa-sign-out-alt"></i> Изход</a>
						</div>
					</li>
				</ul>
			</div>
		</nav>
		<video id="vp" type="video/mp4" style="position: absolute; margin: 0; top: 0px; width: 0px; height: 0px; border: none; overflow: hidden;" controls tabindex="0" disablePictureInPicture controlsList="nodownload"></video>
		<div class="container-fluid" style="margin-top: 75px;">
			<div class="row">
				<div class="col-12" style="margin-bottom: 20px; font-size: 25px; font-weight: bold; color: #DDDDDD;">
					<i class="fas fa-photo-video"></i> Видеопортал
				</div>
			</div>
			<div class="row">
				<?php
					include("../conn.php");
					$vdbq=mysqli_query($db, "SELECT * FROM `videos` ORDER BY `movname` ASC;");
					while ($vres=mysqli_fetch_row($vdbq))
					{
						print("<div class=\"col-12 col-sm-12 col-md-6 col-lg-4 col-xl-4\" style=\"margin-bottom: 20px;\">");
						print("<div style=\"position: relative; margin: 0px auto; padding: 0px; width: 322px; max-width: 322px; min-width: 322px; min-height: 370px; border: 1px dashed #CCCCCC; border-radius: 0px 15px 0px 15px;\">");
						print("<div style=\"position: relative; top: 0px; left: 0px; width: 320px; height: 180px; border-radius: 0px 15px 0px 0px; overflow: hidden; background-size: 320px 180px; background-image: url('/vid/images/".$vres[1].".jpg'); background-repeat: no-repeat; background-position: top left;\">");
						print("<a href=\"javascript:void(0);\" onclick=\"plvp('".$vres[1]."');\" class=\"btn btn-primary\" style=\"width: 155px; margin-left: 2px; margin-top: 140px;\"><i class=\"fas fa-photo-video\"></i> Гледай <i class=\"fas fa-expand-alt\"></i></a>");
						print("</div>");
						print("<div id=\"vct-".$vres[1]."\" style=\"position: absolute; top: 180px; left: 0px; width: 320px; height: 25px; overflow: hidden; background-color: #999900; z-index: 2;\">");
						print("<div style=\"position: absolute; top: 2px; left: 2px; width: 316px; height: 21px; overflow: hidden; background-color: #333333; z-index: 3;\"></div>");
						print("<div style=\"position: absolute; top: 2px; left: 2px; width: 0px; height: 21px; overflow: hidden; background-color: #EE0000; z-index: 4;\"></div>");
						print("</div>");
						print("<div id=\"vft-".$vres[1]."\" style=\"position: absolute; top: 177px; left: 0px; width: 315px; height: 25px; text-align: right; font-size: 20px; font-weight: bold; color: #DDDDDD; overflow: hidden; background-color: transparent; z-index: 5;\">");
						print("".$vres[6]."");
						print("</div>");
						print("<div style=\"position: relative; top: 25px; left: 5px; width: 310px; height: 45px; line-height: 21px; font-size: 22px; font-weight: bold; text-align: right;\">");
						print("".$vres[2]."<br />".$vres[3]."");
						print("</div>");
						print("<div style=\"position: relative; top: 20px; left: 5px; width: 310px; font-size: 15px; font-weight: bold; font-style: italic; text-align: justify; text-indent: 10px; color: #BBBB00;\">");
						print("".$vres[4]."");
						print("</div>");
						print("</div>");
						print("</div>");
					}
				?>
			</div>
		</div>
		<script>
			$(document).ready(function()
			{
				$("#vp").bind("contextmenu", function() { return false; });
			});
		</script>
	</body>
</html>