<?php



ob_start();


require_once __DIR__ . '/../blanceup.php';


if (session_status() === PHP_SESSION_NONE) {
    session_start();
}


require_once __DIR__ . '/../config.php';


function require_admin_login() {
  
    $current_page = basename($_SERVER['PHP_SELF']);
    
  
    if (!isset($_SESSION['admin_logged_in']) || $_SESSION['admin_logged_in'] !== true) {
      
        if ($current_page !== 'login.php') {
            header("Location: login.php");
            exit;
        }
    }
}
?>