From a47971aefd2bee45f4e57dd1fc3ea24bb370881f Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Jun 2014 18:32:40 +0200 Subject: Some doco work. Changed main.bb and added a return link to all .bb files and began planning new entries for user orientated documentation. --- doc/old/html/security_8php.html | 462 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 462 insertions(+) create mode 100644 doc/old/html/security_8php.html (limited to 'doc/old/html/security_8php.html') diff --git a/doc/old/html/security_8php.html b/doc/old/html/security_8php.html new file mode 100644 index 000000000..6edd01940 --- /dev/null +++ b/doc/old/html/security_8php.html @@ -0,0 +1,462 @@ + + + + + + +The Red Matrix: include/security.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Matrix +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
security.php File Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+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=NULL)
 
 stream_perms_xchans ($perms=NULL)
 
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
authenticate_success ( $user_record,
 $login_initial = false,
 $interactive = false,
 $return = false,
 $update_lastlog = false 
)
+
+ +

Referenced by api_login(), openid_content(), and register_post().

+ +
+
+ +
+
+ + + + + + + + +
change_channel ( $change_channel)
+
+
+ +
+
+ + + + + + + +
check_form_security_std_err_msg ()
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
check_form_security_token ( $typename = '',
 $formname = 'form_security_token' 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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' 
)
+
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
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 block_content(), channel_content(), items_fetch(), page_content(), pdl_selector(), share_init(), widget_item(), 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(), chat_content(), chat_message(), chatroom_enter(), chatroom_list(), chatsvc_content(), chatsvc_post(), menu_fetch(), photo_init(), photos_albums_list(), photos_content(), photos_list_photos(), RedCollectionData(), RedFileData(), 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 = NULL)
+
+
+ +
+
+ + + + + + + + +
stream_perms_xchans ( $perms = NULL)
+
+ +

Referenced by display_content(), and search_content().

+ +
+
+
+
+ -- cgit v1.2.3