<?php
// Start session
session_start();

// Set session variables to simulate an admin user
$_SESSION['user_id'] = 1;
$_SESSION['user_role'] = 'admin';
$_SESSION['user_name'] = 'admin';

// Now include the API file
include 'online_learning/api/get_learning_materials.php';
?>