tce_functions_authorization.php

tce_functions_authorization.php source file reference

Package: com\tecnick\tcexam\shared

Tags

  • file: Functions for Authorization / LOGIN
  • author: Nicola Asuni
  • since: 2001-09-26

Functions

F_loginForm()

File: tce_functions_authorization.php line 39

F_loginForm(mixed $faction, mixed $fid, mixed $fmethod, mixed $fenctype, mixed $username) : XHTML

Parameters

  • $faction : mixed
  • $fid : mixed
  • $fmethod : mixed
  • $fenctype : mixed
  • $username : mixed

Return values

XHTML —

string for login form

F_login_form()

File: tce_functions_authorization.php line 156

F_login_form() : mixed

NOTE: This function calls exit() after execution.

F_logout_form()

File: tce_functions_authorization.php line 207

F_logout_form() : XHTML

Return values

XHTML —

string for logout form.

F_logout_page()

File: tce_functions_authorization.php line 242

F_logout_page() : mixed

NOTE: This function calls exit() after execution.

F_isAuthorizedUser()

File: tce_functions_authorization.php line 263

F_isAuthorizedUser(mixed $table, mixed $field_id_name, mixed $value_id, mixed $field_user_id) : bool

Parameters

  • $table : mixed: (string) table to be modified
  • $field_id_name : mixed: (string) name of the main ID field of the table
  • $value_id : mixed: (int) value of the ID field of the table
  • $field_user_id : mixed: (string) name of the foreign key to to user_id

Tags

  • author: Nicola Asuni
  • since: 2006-03-11

Return values

bool —

true if the user is authorized, false otherwise

F_getAuthorizedUsers()

File: tce_functions_authorization.php line 333

F_getAuthorizedUsers(mixed $user_id) : string

Parameters

  • $user_id : mixed: (int) user ID

Tags

  • author: Nicola Asuni
  • since: 2006-03-11

Return values

string

F_syncUserGroups()

File: tce_functions_authorization.php line 363

F_syncUserGroups(mixed $usrid, mixed $grpids) : mixed

Parameters

  • $usrid : mixed: (int) ID of the user to update.
  • $grpids : mixed: (mixed) Group ID or comma separated list of group IDs (0=all available groups).

Tags

  • author: Nicola Asuni
  • since: 2012-09-11

F_isSslCertificateValid()

File: tce_functions_authorization.php line 430

F_isSslCertificateValid() : true

Tags

  • author: Nicola Asuni
  • since: 2013-03-26

Return values

true —

if the client has a valid SSL certificate, false otherwise.

F_getSSLCertificateHash()

File: tce_functions_authorization.php line 457

F_getSSLCertificateHash(string $cert[, bool $pkcs12 = false ]) : array<string|int, mixed>

Parameters

  • $cert : string: String containing the certificate data.
  • $pkcs12 : bool = false: Set this variable to true if the certificate is in PKCS12 format.

Tags

  • author: Nicola Asuni
  • since: 2013-07-01

Return values

array<string|int, mixed> —

containing the hash code and the validity end date in unix epoch.

F_getSSLClientHash()

File: tce_functions_authorization.php line 492

F_getSSLClientHash() : string

Tags

  • author: Nicola Asuni
  • since: 2013-07-01

Return values

string —

containing the hash code.