<?php

if (!function_exists('current_role')) {
    function current_role(): string
    {
        return $_SESSION['conference_role'] ?? 'author';
    }
}

if (!function_exists('current_conference')) {
    function current_conference(): int
    {
        return (int)($_SESSION['conference_id'] ?? 0);
    }
}
