<?php
session_start();
// kalau belum login → lempar ke index
if (!isset($_SESSION['logged_in'])) {
header("Location: index.php");
exit;
}
?>