com-tecnick-tcexam-shared

# Procedural File: tce_functions_authorization.php Source Location: /shared/code/tce_functions_authorization.php ## Page Details: Functions for Authorization / LOGIN #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2001-09-26
license: | GNU Affero General Public License
### F_getAuthorizedUsers [line 242]
`string F_getAuthorizedUsers( int $user_id)`
Returns a comma separated string of ID of the users that belong to the same groups. #### Tags:
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2006-03-11
license: | GNU Affero General Public License
#### Parameters
int | $user_id | user ID
[ Top ] ### F_isAuthorizedUser [line 194]
`boolean F_isAuthorizedUser( string $table, string $field_id_name, int $value_id, string $field_user_id)`
Returns true if the current user is authorized to update and delete the selected database record. #### Tags:
return: | true if the user is authorized, false otherwise
author: | Nicola Asuni
copyright: | Copyright © 2004-2010, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link: | www.tecnick.com
since: | 2006-03-11
license: | GNU Affero General Public License
#### Parameters
string | $table | table to be modified
string | $field_id_name | name of the main ID field of the table
int | $value_id | value of the ID field of the table
string | $field_user_id | name of the foreign key to to user_id
[ Top ] ### F_loginForm [line 70]
`XHTML F_loginForm( faction $faction, fid $fid, fmethod $fmethod, fenctype $fenctype, username $username, password $password, [isize $isize = 20])`
Returns XHTML / CSS formatted string for login form. The CSS classes used are: div.login_form : container for login box div.login_form div.login_row : container for label + input field or button div.login_form div.login_row span.label : container for input label div.login_form div.login_row span.formw : container for input form #### Tags:
return: | string for login form
#### Parameters
faction | $faction | String action attribute
fid | $fid | String form ID attribute
fmethod | $fmethod | String method attribute (get/post)
fenctype | $fenctype | String enctype attribute
username | $username | String user name
password | $password | String password
isize | $isize | int enctype input fields horizontal size
[ Top ] ### F_login_form [line 116]
`void F_login_form( )`
Display login page. NOTE: This function calls exit() after execution. [ Top ] ### F_logout_form [line 143]
`XHTML F_logout_form( )`
Display logout form. #### Tags:
return: | string for logout form.
[ Top ] ### F_logout_page [line 171]
`void F_logout_page( )`
Display logout page. NOTE: This function calls exit() after execution. [ Top ] Documentation generated on Mon, 06 Dec 2010 12:03:04 +0100 by phpDocumentor 1.4.3