F_getAuthorizedUsers (line 205)
Returns a comma separated string of ID of the users that belong to the same groups.
int
F_getAuthorizedUsers
(int $user_id)
F_isAuthorizedUser (line 163)
Returns true if the current user is authorized to update and delete the selected database record.
boolean
F_isAuthorizedUser
(string $table, string $field_id_name, int $value_id, string $field_user_id)
-
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 50)
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
XHTML
F_loginForm
(faction $faction, fid $fid, fmethod $fmethod, fenctype $fenctype, username $username, password $password, [isize $isize = 20])
-
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 93)
Display login page.
NOTE: This function calls exit() after execution.
void
F_login_form
()
F_logout_form (line 111)
Display logout form.
XHTML
F_logout_form
()
F_logout_page (line 140)
Display logout page.
NOTE: This function calls exit() after execution.
void
F_logout_page
()