<?php
/************************************************************************/
/*     PROGRAMMER     :  SMA                                            */
/*     SCRIPT NAME    :  graphs.php                                     */
/*     CREATED ON     :  15/JULY/2006                                   */
/*     UPDATED ON     :  20/AUG/2025 (Modernized)                       */
/*     PURPOSE        :  Entry point to access graphs section,          */
/*                       based on privileges granted                    */
/************************************************************************/

require_once 'adminuser.php'; // assumes adminuser class is modernized

session_start();

// Ensure admin user is logged in
if (!isset($_SESSION['ADMINUSERID'])) {
    header('Location: login.php');
    exit;
}

$userobj = new adminuser();
$adminUserId = (int) $_SESSION['ADMINUSERID'];

// At this point, you could use $userobj->GetAdminUserLink() or similar
// to determine graph privileges or redirect to specific graph pages
// Example: header('Location: graph_returndays.php');
