<?php
if ( (!isset($_SESSION['id']) || (trim($_SESSION['id']) == '' )) && (!isset($_SESSION['log_id']) || (trim($_SESSION['log_id']) == '')  ) ) {
?>
	<script>
		window.location="adminlogin.php";
	</script>
<?php
}
$session_id = $_SESSION['id'];
$session_lid = $_SESSION['log_id'];
?>