tce__authorization_8php

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
tce_authorization.php File Reference

Namespaces

 com\tecnick\tcexam\shared
 TCExam Shared Area.
 

Variables

 $logged = false
 
 $PHPSESSIDSQL = F_escape_sql($db, $PHPSESSID)
 
 $session_hash = getPasswordHash($PHPSESSID)
 
 $sqls = ‘SELECT * FROM ‘.K_TABLE_SESSIONS.’ WHERE cpsession_id=\“.$PHPSESSIDSQL.’\”
 
if($rs=F_db_query($sqls, $db)) else
 
 $altusr = F_altLogin()
 

Detailed Description

This script handles user’s sessions. Just the registered users granted with a username and a password are entitled to access the restricted areas (level > 0) of TCExam and the public area to perform the tests. The user’s level is a numeric value that indicates which resources (pages, modules, services) are accessible by the user. To gain access to a specific resource, the user’s level must be equal or greater to the one specified for the requested resource. TCExam has 10 predefined user’s levels:

  • 0 = anonymous user (unregistered).
  • 1 = basic user (registered);
  • 2-9 = configurable/custom levels;
  • 10 = administrator with full access rights

Variable Documentation

$altusr = F_altLogin()

$logged = false

$PHPSESSIDSQL = F_escape_sql($db, $PHPSESSID)

$session_hash = getPasswordHash($PHPSESSID)

$sqls = ‘SELECT * FROM ‘.K_TABLE_SESSIONS.’ WHERE cpsession_id=\“.$PHPSESSIDSQL.’\”

if ($rs=F_db_query($sqls, $db)) else
Initial value:
{
F_display_db_error($exit=true)
Definition: tce_functions_errmsg.php:97

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy