Procedural File: tce_functions_authorization.php
Source Location: /shared/code/tce_functions_authorization.php
Page Details:
Functions for Authorization / LOGIN
Tags:
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:
Parameters
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:
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 |
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:
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 |
F_login_form [line 116]
Display login page. NOTE: This function calls exit() after execution.
F_logout_form [line 143]
Display logout form.
Tags:
F_logout_page [line 171]
Display logout page. NOTE: This function calls exit() after execution.
|
|