Exemplo n.º 1
0
include_once 'includes/cphplib/cphplib.inc';
include_once 'configs/globals.php';
include_once 'includes/GlobalDB.php';
/**
 * The first thing to do can be to call the Analytics
 * class which will output nothing; but only keep
 * statistical information.
 */
$analytics = new Analytics();
/**
 * this can be done on any page
 * we use it without making any check; but it is
 * safe; because the function itself makes the necessary
 * checks
 */
$analytics->registerRefererURL();
$tpl = new Smarty();
$tpl->compile_dir = 'templates/templates_c';
$tpl->config_dir = 'templates/configs';
$tpl->cache_dir = 'templates/cache';
/**
 * Is this an authenticated user
 */
$access_isAuthenticated = isAuthenticated();
$access_name = '';
// name and surname of the user
$access_isGroupMember = false;
// is he/she a group member
$access_isGroupAdmin = false;
// is he/she admin of the group
/**