mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
114 lines
5.4 KiB
PHP
114 lines
5.4 KiB
PHP
<?php
|
|
require_once '../videos/configuration.php';
|
|
|
|
$images = Video::getImageFromFilename($video['filename']);
|
|
$img = $images->poster;
|
|
if (!empty($images->posterPortrait) && strpos($images->posterPortrait, 'notfound_portrait') === false) {
|
|
$img = $images->posterPortrait;
|
|
}
|
|
$imgw = 1280;
|
|
$imgh = 720;
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?php echo $_SESSION['language']; ?>">
|
|
<head>
|
|
<title><?php echo __("Confirm Password") . $config->getPageTitleSeparator() . $config->getWebSiteTitle(); ?></title>
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/include/head.php';
|
|
?>
|
|
<link rel="image_src" href="<?php echo $img; ?>" />
|
|
<meta property="fb:app_id" content="774958212660408" />
|
|
<meta property="og:url" content="<?php echo $global['webSiteRootURL'], "video/", $video['clean_title']; ?>" />
|
|
<meta property="og:type" content="video.other" />
|
|
<meta property="og:title" content="<?php echo getSEOTitle($video['title']); ?>" />
|
|
<meta property="og:description" content="<?php echo getSEODescription(!empty($custom) ? $custom : $video['title']); ?>" />
|
|
<meta property="og:image" content="<?php echo $img; ?>" />
|
|
<meta property="og:image:width" content="<?php echo $imgw; ?>" />
|
|
<meta property="og:image:height" content="<?php echo $imgh; ?>" />
|
|
<meta property="video:duration" content="<?php echo Video::getItemDurationSeconds($video['duration']); ?>" />
|
|
<meta property="duration" content="<?php echo Video::getItemDurationSeconds($video['duration']); ?>" />
|
|
<style>
|
|
body {
|
|
padding-top: 0;
|
|
}
|
|
footer{
|
|
display: none;
|
|
}
|
|
#bg{
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url('<?php echo $images->poster; ?>');
|
|
background-size: cover;
|
|
opacity: 0.3;
|
|
filter: alpha(opacity=30); /* For IE8 and earlier */
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="<?php echo $global['bodyClass']; ?>">
|
|
<?php
|
|
//include $global['systemRootPath'] . 'view/include/navbar.php';
|
|
?>
|
|
<div id="bg"></div>
|
|
|
|
<!-- Modal -->
|
|
<div id="myModal" class="modal fade in" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h1 class="modal-title">
|
|
<center>
|
|
<i class="fas fa-lock"></i> <?php echo $video['title']; ?> <?php echo __("is Private"); ?>
|
|
</center>
|
|
</h1>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<img src="<?php echo $img; ?>" class="img img-responsive"/>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<center>
|
|
<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
|
|
<?php
|
|
if (!empty($_POST['video_password'])) {
|
|
?>
|
|
<div class="alert alert-danger"><?php echo __("Your password does not match!"); ?></div>
|
|
<?php
|
|
}
|
|
?>
|
|
<div class="form-group">
|
|
<label for="video_password"><?php echo __("This Video Requires a Password"); ?></label>
|
|
<?php
|
|
echo getInputPassword('video_password', 'class="form-control"', __("Password"));
|
|
?>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<button type="submit" class="btn btn-success btn-block"><i class="fas fa-check-circle"></i> <?php echo __("Confirm"); ?></button>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<a href="<?php echo $global['webSiteRootURL']; ?>" class="btn btn-danger btn-block"><i class="fas fa-times-circle"></i> <?php echo __("Cancel"); ?></a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</center>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<?php
|
|
include $global['systemRootPath'] . 'view/include/footer.php';
|
|
?>
|
|
<script type="text/javascript">
|
|
$(window).on('load', function () {
|
|
$('#myModal').modal('show');
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|