Example #1
0
//Timezone
$tzlist = timezone_identifiers_list(4095);
sort($tzlist);
//Login method list
$lm_list = array('ldap' => _('LDAP'), 'pass' => _('PASSWORD'));
//Entities and Templates
$noentities = 0;
$notemplates = 0;
if ($pro) {
    $entity_list = Session::get_entities_to_assign($conn);
    if (count($entity_list) < 1) {
        $noentities = 1;
    }
    list($entities_all, $num_entities_all) = Acl::get_entities($conn, '', '', FALSE, FALSE);
    $templates = array();
    list($templates, $num_templates) = Session::get_templates($conn);
    if (count($templates) < 1) {
        $templates[0] = array('id' => '', 'name' => ' -- ' . _('No templates found') . ' -- ');
        $notemplates = 1;
    }
} else {
    list($menu_perms, $perms_check) = Session::get_menu_perms($conn);
}
//Initialize variables
$_SESSION['user_in_db'] = NULL;
$login = '';
$uuid = '';
$user_name = '';
$email = '';
$language = 'en_GB';
$tzone = date("e");