1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
Oinktube/plugin/Meet/confirmMeetPassword.php
2024-04-02 13:44:59 -03:00

96 lines
No EOL
3.5 KiB
PHP

<?php
require_once '../../videos/configuration.php';
require_once $global['systemRootPath'] . 'plugin/Meet/validateMeet.php';
setIsConfirmationPage();
if (Meet::validatePassword($meet_schedule_id, @$_POST['meet_password'])) {
$url = Meet::getMeetLink($meet_schedule_id);
header("Location: {$url}");
exit;
}
$meet = new Meet_schedule($meet_schedule_id);
$img = User::getBackgroundURLFromUserID($meet->getUsers_id());
$photo = User::getPhoto($meet->getUsers_id());
$_page = new Page(array('Confirm Meet Password'));
$_page->setIncludeNavbar(false);
?>
<style>
body {
padding-top: 0;
}
footer {
display: none;
}
#bg {
position: fixed;
width: 100%;
height: 100%;
background-image: url('<?php echo $global['webSiteRootURL'], $img; ?>');
background-size: cover;
opacity: 0.3;
filter: alpha(opacity=30);
/* For IE8 and earlier */
}
</style>
<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 __("Meet"); ?> <?php echo $meet->getTopic(); ?> <?php echo __("is Private"); ?>
</center>
</h1>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-6">
<img src="<?php echo $photo; ?>" class="img img-responsive" />
</div>
<div class="col-sm-6">
<center>
<form method="post" action="<?php echo getSelfURI(); ?>">
<?php
if (!empty($_POST['meet_password'])) {
?>
<div class="alert alert-danger"><?php echo __("Your password does not match!"); ?></div>
<?php
}
?>
<div class="form-group">
<label for="meet_password"><?php echo __("This Meet Requires a Password"); ?></label>
<input type="text" class="form-control" id="meet_password" name="meet_password" placeholder="<?php echo __("Password"); ?>" required>
</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 getHomePageURL(); ?>" 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>
<script type="text/javascript">
$(window).on('load', function() {
$('#myModal').modal('show');
});
</script>
<?php
$_page->print();
?>