Beispiel #1
0
function add_all_user_to_a_reader($id)
{
    $uids = get_all_uids();
    foreach ($uids as $uid) {
        add_permission($uid, $id, null);
    }
}
Beispiel #2
0
function modify_event_action($session_uid, $id)
{
    // needed to set the tab active
    $extras_active = true;
    $events_active = true;
    //check if the user is admin
    if (user_is_admin($session_uid)) {
        $event = get_event_by_id($id);
        // get all users uids
        $uids = get_all_uids();
        require 'templates/event.php';
    } else {
        require 'templates/login.php';
    }
}