com-tecnick-tcexam-shared
[ class tree: com-tecnick-tcexam-shared ] [ index: com-tecnick-tcexam-shared ] [ all elements ]

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-2008, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2001-09-26
license:  GNU General Public License








F_getAuthorizedUsers [line 247]

int F_getAuthorizedUsers( int $user_id)

Returns a comma separated string of ID of the users that belong to the same groups.



Tags:

return:  user group ID, 0 in case of error
author:  Nicola Asuni
copyright:  Copyright © 2004-2008, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2006-03-11
license:  GNU General Public License


Parameters

int   $user_id   user ID
[ Top ]



F_isAuthorizedUser [line 188]

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-2008, Nicola Asuni - Tecnick.com S.r.l. - ITALY - www.tecnick.com - info@tecnick.com
link:  www.tecnick.com
since:  2006-03-11
license:  GNU 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 117]

void F_login_form( )

Display login page.

NOTE: This function calls exit() after execution.




[ Top ]



F_logout_form [line 135]

XHTML F_logout_form( )

Display logout form.



Tags:

return:  string for logout form.


[ Top ]



F_logout_page [line 164]

void F_logout_page( )

Display logout page.

NOTE: This function calls exit() after execution.




[ Top ]



Documentation generated on Fri, 05 Dec 2008 16:03:53 +0100 by phpDocumentor 1.4.1