| 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/admin/ |
Upload File : |
<?php
session_start();
if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS']=='off') {
$url = 'https://'.$_SERVER['SERVER_NAME'].'/admin/login.php';
header("Location: {$url}");
exit(0);
}
if(!empty($_GET['logout'])) {
$_SESSION = array();
session_destroy();
$url = 'https://'.$_SERVER['SERVER_NAME'].'/admin/login.php';
header("Location: {$url}");
exit(0);
}
require_once($_SERVER['DOCUMENT_ROOT'].'/includes/mysql.php');
$update_message = '';
$error_message = '';
if(!empty($_POST)) {
if($_POST['username']=='Southgate' && $_POST['password']=='Clerk') {
$_SESSION['username'] = 'Southgate';
header("Location: /admin/broadcast.php");
exit(0);
} else {
$error_message = 'Incorrect Username/Password';
}
}
ob_start();
include '../includes/autoload.php';
$page = 'Southgate';
$popup_title = 'Southgate Admin Log In';
?>
<style>
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
<center style="margin-bottom:10px;">
<h3>Log In</h3>
<form method="post" action="login.php">
<div style="margin:10px 0px;"><label><span style="display:inline-block;vertical-align:middle;width:150px;">Username:</span> <input type="text" name="username" value="<?= (empty($_REQUEST['username'])) ? '' : $_REQUEST['username'];?>" /></label></div>
<div style="margin:10px 0px;"><label><span style="display:inline-block;vertical-align:middle;width:150px;">Password:</span> <input type="password" name="password" /></label></div>
<div style="margin:10px 0px;"><input type="submit" name="submit" value="Log In" /></div>
</form>
</center>
<?php
$pageHtml = ob_get_clean();
include '../includes/layout.php';