Trying to fix problem where some do not see the settings page

This commit is contained in:
Miles Lott 2001-09-01 20:01:05 +00:00
parent 72e1cff9af
commit 9b07da7075
2 changed files with 15 additions and 15 deletions

View File

@ -12,12 +12,12 @@
/* $Id$ */ /* $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); display_section('Preferences','Preferences',$file);
?> ?>

View File

@ -11,13 +11,13 @@
/* $Id$ */ /* $Id$ */
$templates = $phpgw->common->list_templates(); $templates = $GLOBALS['phpgw']->common->list_templates();
while (list($var,$value) = each($templates)) while (list($var,$value) = each($templates))
{ {
$_templates[$var] = $templates[$var]['title']; $_templates[$var] = $templates[$var]['title'];
} }
$themes = $phpgw->common->list_themes(); $themes = $GLOBALS['phpgw']->common->list_themes();
while (list(,$value) = each($themes)) while (list(,$value) = each($themes))
{ {
$_themes[$value] = $value; $_themes[$value] = $value;
@ -65,21 +65,21 @@
$sbox = createobject('phpgwapi.sbox'); $sbox = createobject('phpgwapi.sbox');
create_select_box('Country','country',$sbox->country_array); create_select_box('Country','country',$sbox->country_array);
$db2 = $phpgw->db; $db2 = $GLOBALS['phpgw']->db;
$phpgw->db->query("select distinct lang from lang",__LINE__,__FILE__); $GLOBALS['phpgw']->db->query("select distinct lang from lang",__LINE__,__FILE__);
while ($phpgw->db->next_record()) while ($GLOBALS['phpgw']->db->next_record())
{ {
// $phpgw_info['installed_langs'][$phpgw->db->f('lang')] = $phpgw->db->f('lang'); // $phpgw_info['installed_langs'][$phpgw->db->f('lang')] = $phpgw->db->f('lang');
$db2->query("select lang_name from languages where lang_id = '" $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(); $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 // otherwise
if ($db2->f('lang_name')) 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); create_select_box('Language','lang',$langs);
@ -95,10 +95,10 @@
create_select_box('Show current users on navigation bar','show_currentusers',$yes_and_no); create_select_box('Show current users on navigation bar','show_currentusers',$yes_and_no);
} }
reset($phpgw_info['user']['apps']); reset($GLOBALS['phpgw_info']['user']['apps']);
while (list($permission) = each($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; $user_apps[$permission] = $permission;
} }