From b69fca14e76a2f5db0cd0924fe5e7056e94771b1 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 26 Feb 2013 15:49:37 -0800 Subject: initial doco --- doc/html/security_8php.html | 452 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 452 insertions(+) create mode 100644 doc/html/security_8php.html (limited to 'doc/html/security_8php.html') diff --git a/doc/html/security_8php.html b/doc/html/security_8php.html new file mode 100644 index 000000000..4805bbc8d --- /dev/null +++ b/doc/html/security_8php.html @@ -0,0 +1,452 @@ + + + + + + +The Red Project: include/security.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Project +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
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_min=PERMS_SITE)
 
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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)
+
+
+ +
+
+ + + + + + + +
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' 
)
+
+
+ +
+
+ + + + + + + + +
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(), 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(), photo_init(), photos_albums_list(), and photos_content().

+ +
+
+ +
+
+ + + + + + + + +
public_permissions_sql ( $observer_hash)
+
+ +

Referenced by display_content().

+ +
+
+ +
+
+ + + + + + + + +
if (!function_exists('init_groups_visitor')) stream_perms_api_uids ( $perms_min = PERMS_SITE)
+
+
+
+
+ + + + -- cgit v1.2.3