The Red Matrix
|
Functions | |
authenticate_success ($user_record, $login_initial=false, $interactive=false, $return=false, $update_lastlog=false) | |
change_channel ($change_channel) | |
permissions_sql ($owner_id, $remote_verified=false, $groups=null) | |
item_permissions_sql ($owner_id, $remote_verified=false, $groups=null) | |
public_permissions_sql ($observer_hash) | |
get_form_security_token ($typename= '') | |
check_form_security_token ($typename= '', $formname= 'form_security_token') | |
check_form_security_std_err_msg () | |
check_form_security_token_redirectOnErr ($err_redirect, $typename= '', $formname= 'form_security_token') | |
check_form_security_token_ForbiddenOnErr ($typename= '', $formname= 'form_security_token') | |
if(!function_exists('init_groups_visitor')) | stream_perms_api_uids ($perms_min=PERMS_SITE) |
stream_perms_xchans ($perms_min=PERMS_SITE) | |
authenticate_success | ( | $user_record, | |
$login_initial = false , |
|||
$interactive = false , |
|||
$return = false , |
|||
$update_lastlog = false |
|||
) |
Referenced by api_login(), and register_post().
change_channel | ( | $change_channel | ) |
Referenced by api_user(), authenticate_success(), import_post(), FKOAuth1\loginUser(), manage_content(), and new_channel_post().
check_form_security_std_err_msg | ( | ) |
Referenced by check_form_security_token_redirectOnErr().
check_form_security_token | ( | $typename = '' , |
|
$formname = 'form_security_token' |
|||
) |
Referenced by check_form_security_token_ForbiddenOnErr(), and check_form_security_token_redirectOnErr().
check_form_security_token_ForbiddenOnErr | ( | $typename = '' , |
|
$formname = 'form_security_token' |
|||
) |
Referenced by group_content().
check_form_security_token_redirectOnErr | ( | $err_redirect, | |
$typename = '' , |
|||
$formname = 'form_security_token' |
|||
) |
get_form_security_token | ( | $typename = '' | ) |
item_permissions_sql | ( | $owner_id, | |
$remote_verified = false , |
|||
$groups = null |
|||
) |
Construct permissions
default permissions - anonymous user
Profile owner - everything is visible
Authenticated visitor. Unless pre-verified, check that the contact belongs to this $owner_id and load the groups the visitor belongs to. If pre-verified, the caller is expected to have already done this and passed the groups into this function.
Referenced by channel_content(), items_fetch(), lastpost_content(), page_content(), pdl_selector(), share_init(), and zot_feed().
permissions_sql | ( | $owner_id, | |
$remote_verified = false , |
|||
$groups = null |
|||
) |
Construct permissions
default permissions - anonymous user
Profile owner - everything is visible
Authenticated visitor. Unless pre-verified, check that the contact belongs to this $owner_id and load the groups the visitor belongs to. If pre-verified, the caller is expected to have already done this and passed the groups into this function.
Referenced by attach_by_hash(), attach_by_hash_nodata(), attach_count_files(), attach_list_files(), attach_mkdir(), menu_fetch(), photo_init(), photos_albums_list(), photos_content(), photos_list_photos(), and z_readdir().
public_permissions_sql | ( | $observer_hash | ) |
Referenced by display_content(), and search_content().
if (!function_exists('init_groups_visitor')) stream_perms_api_uids | ( | $perms_min = PERMS_SITE | ) |
Referenced by api_status_show(), api_statuses_public_timeline(), and api_users_show().
stream_perms_xchans | ( | $perms_min = PERMS_SITE | ) |
Referenced by display_content(), and search_content().