mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Trying to fix problem where some do not see the settings page
This commit is contained in:
parent
72e1cff9af
commit
9b07da7075
@ -12,12 +12,12 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
if ($phpgw->acl->check('changepassword',1))
|
||||
if ($GLOBALS['phpgw']->acl->check('changepassword',1))
|
||||
{
|
||||
$file['Change your Password'] = $phpgw->link('/preferences/changepassword.php');
|
||||
$file['Change your Password'] = $GLOBALS['phpgw']->link('/preferences/changepassword.php');
|
||||
}
|
||||
$file['change your settings'] = $phpgw->link('/preferences/preferences.php','appname=preferences');
|
||||
$file['change your settings'] = $GLOBALS['phpgw']->link('/preferences/preferences.php','appname=preferences');
|
||||
|
||||
display_section('Preferences','Preferences',$file);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -11,13 +11,13 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$templates = $phpgw->common->list_templates();
|
||||
$templates = $GLOBALS['phpgw']->common->list_templates();
|
||||
while (list($var,$value) = each($templates))
|
||||
{
|
||||
$_templates[$var] = $templates[$var]['title'];
|
||||
}
|
||||
|
||||
$themes = $phpgw->common->list_themes();
|
||||
$themes = $GLOBALS['phpgw']->common->list_themes();
|
||||
while (list(,$value) = each($themes))
|
||||
{
|
||||
$_themes[$value] = $value;
|
||||
@ -65,21 +65,21 @@
|
||||
$sbox = createobject('phpgwapi.sbox');
|
||||
create_select_box('Country','country',$sbox->country_array);
|
||||
|
||||
$db2 = $phpgw->db;
|
||||
$phpgw->db->query("select distinct lang from lang",__LINE__,__FILE__);
|
||||
while ($phpgw->db->next_record())
|
||||
$db2 = $GLOBALS['phpgw']->db;
|
||||
$GLOBALS['phpgw']->db->query("select distinct lang from lang",__LINE__,__FILE__);
|
||||
while ($GLOBALS['phpgw']->db->next_record())
|
||||
{
|
||||
// $phpgw_info['installed_langs'][$phpgw->db->f('lang')] = $phpgw->db->f('lang');
|
||||
|
||||
$db2->query("select lang_name from languages where lang_id = '"
|
||||
. $phpgw->db->f('lang') . "'",__LINE__,__FILE__);
|
||||
. $GLOBALS['phpgw']->db->f('lang') . "'",__LINE__,__FILE__);
|
||||
$db2->next_record();
|
||||
|
||||
// When its not in the phpgw_langauges table, it will show ??? in the field
|
||||
// When its not in the phpgw_languages table, it will show ??? in the field
|
||||
// otherwise
|
||||
if ($db2->f('lang_name'))
|
||||
{
|
||||
$langs[$phpgw->db->f('lang')] = $db2->f('lang_name');
|
||||
$langs[$GLOBALS['phpgw']->db->f('lang')] = $db2->f('lang_name');
|
||||
}
|
||||
}
|
||||
create_select_box('Language','lang',$langs);
|
||||
@ -95,10 +95,10 @@
|
||||
create_select_box('Show current users on navigation bar','show_currentusers',$yes_and_no);
|
||||
}
|
||||
|
||||
reset($phpgw_info['user']['apps']);
|
||||
while (list($permission) = each($phpgw_info['user']['apps']))
|
||||
reset($GLOBALS['phpgw_info']['user']['apps']);
|
||||
while (list($permission) = each($GLOBALS['phpgw_info']['user']['apps']))
|
||||
{
|
||||
if ($phpgw_info['apps'][$permission]['status'] != 2)
|
||||
if ($GLOBALS['phpgw_info']['apps'][$permission]['status'] != 2)
|
||||
{
|
||||
$user_apps[$permission] = $permission;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user