| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/church_sites/southgatestake.com_manzanita/ |
Upload File : |
<?php
if(time() >= strtotime('2020-11-22 16:45:00') && time() <= strtotime('2020-11-22 20:00:00')) {
header("Location: https://southgatestake.com");
exit(0);
}
if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS']=='off') {
$url = 'https://'.$_SERVER['SERVER_NAME'];
header("Location: {$url}");
exit(0);
}
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/mysql.php');
ob_start();
include 'includes/autoload.php';
$page = 'Manzanita';
$popup_title = 'Manzanita Live';
?>
<style>
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
z-index:2;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index:3;
}
#twitch_blocked_out {
width:85px;
height:50px;
position:absolute;
bottom:0px;
right:0px;
background:#9a8758 url(/img/hearhimsmall.jpg) center center no-repeat;
z-index:10;
}
#twitch_blocked_out2 {
width:274px;
height:156px;
position:absolute;
top:0px;
left:0px;
background:transparent;
z-index:10;
}
.feedback_form_holder {
position:relative;
z-index:1;
margin-top:-100px;
}
.feedback_form_holder iframe {
position:relative;
z-index:1;
}
</style>
<center style="margin-bottom:10px;">
<p><i>To hear the audio, click the "unmute" button in the bottom left-hand corner of this screen. If the connection times out, please refresh your browser.</i></p>
<div class="videoWrapper">
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/mysql.php');
$res = $db->get_results("SELECT youtube_url,twitch_id FROM church_livestream.southgate_stake WHERE domain='".str_replace('www.','',$db->clean($_SERVER['HTTP_HOST']))."'");
if(!empty($res)) {
if(!empty($res[0]->youtube_url)) {
?>
<iframe width="424" height="240" src="<?= $res[0]->youtube_url;?>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<?php
} elseif(!empty($res[0]->twitch_id)) {
?>
<div id="twitch-embed"></div>
<script src="https://embed.twitch.tv/embed/v1.js"></script>
<script type="text/javascript">
var player = null;
var embed = new Twitch.Embed("twitch-embed", { width: 854, height: 480, channel: "<?= $res[0]->twitch_id;?>", layout: "video", theme: "dark" });
embed.addEventListener(Twitch.Embed.VIDEO_READY, () => {
player = embed.getPlayer();
player.play();
});
</script>
<div id="twitch_blocked_out" onclick="if(player!=null) { player.play(); }"></div>
<div id="twitch_blocked_out2" onclick="if(player!=null) { player.play(); }"></div>
<?php
}
}
?>
</div>
<center style="margin:10px 0px;"><button onclick="$('.feedback_form_holder').show();$(this).hide();">Leave Feedback</center>
<div class="feedback_form_holder" style="display:none;">
<script type="text/javascript" src="https://form.jotform.com/jsform/202625549848971"></script>
</div>
</center>
<?php
$pageHtml = ob_get_clean();
include 'includes/layout.php';