<!DOCTYPE html>
<html xmlns="https://www.w3.org/1999/xhtml">
	<head>
		<title>Session Expired</title>
		<?php
			date_default_timezone_set("Asia/Jakarta");
			include "../libs/functiondb.php";
			
			$postdated			= date("Y-m-d H:i:s");
			$notification_ip	= $_SERVER['REMOTE_ADDR'];
			mysqli_query($koneksi, "INSERT INTO cmas_notification (notification_id, notification_status, notification_description, notification_ip, notification_read, postdated, posted_id, posted_username, posted_nama) VALUE(NULL, 'Expired', '$udt[admin_nama]', '$notification_ip', '1', '$postdated', '$udt[admin_id]', '$udt[admin_username]', '$udt[admin_nama]')");
			
			$mdb = mysqli_query($koneksi, "SELECT * FROM cmas_metadata");
			$mdt = mysqli_fetch_array($mdb);
		?>
		<meta charset="<?php echo $mdt['metadata_charset']; ?>">
		<meta name="viewport" content="<?php echo $mdt['metadata_viewport']; ?>">
		<link href="../assets/images/<?php echo $mdt['metadata_gambar']; ?>" rel="shortcut icon" type="image/x-icon" />
		<link href="assets/css/loginpage.css" rel="stylesheet" type="text/css" />
		<link rel="preconnect" href="https://fonts.googleapis.com">
		<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
		<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap" rel="stylesheet">
	</head>
	<Body>
		<div id="container">
			<div id="containerbox">
				<div id="containerbg">
					<div id="form">
						<div id="formlogin">
							<div id="formcover">
								<div class="formcovertitles">
									<font color="red">SESSION EXPIRED</font>
								</div>
								<div class="formcoversubtitles">
									Your session login has been expired.<br>
									Please try to login back!
								</div>
								<div class="formcoverbutton">
									<a href="./" class="loginbutton">BACK TO LOGIN</a>
								</div>
							</div>
						</div>
					</div>
					<div id="copyright">
						<div class="copyrightlink">
							<?php echo "<a href='https://$mdt[metadata_url]' target='_blank'>VIEW WEBSITE</a>"; ?>
						</div>
						<div class="copyrightcopy">
							<?php echo $mdt['metadata_copyright']; ?>
						</div>
						<div class="copyrightdeveloped">
							<a href="https://www.maliniart.com/" target="_blank"><span id="malini">MALINI</span>ARTSTUDIO</a>
						</div>
					</div>
				</div>
			</div>
		</div>
	</Body>
</html>	