<?php
require_once __DIR__ . '/../client/classes/User.php';

if (isset($_GET['user_id'])) {
    $user = new User();
    $user_id = $_GET['user_id'];
    if ($user->grantAdmin($user_id)) {
        echo "User with ID {$user_id} has been granted admin privileges.";
    } else {
        echo "Failed to grant admin privileges.";
    }
} else {
    echo "Please provide a user_id.";
}
?>