settings are now working again

This commit is contained in:
jengo 2000-09-05 06:03:15 +00:00
parent 2178f09de5
commit 8b804f6bb0
2 changed files with 12 additions and 6 deletions

View File

@ -19,7 +19,13 @@
displayed ("xxx not an object"). Fixed.
- Inventory program now supports changeable status fields.
- Added feature to show minium in stock products in different colors.
- Added error checking for changing a group name to a name that already exsists
- Removed session->hidden_var(), use link() from now on.
NOTE: You need to make sure you use the POST method. GET will cause problems.
- Cookie sessionid support works a little better now.
- Started adding LDAP account authencation support.
- Converted session->loginid, session->firstname, session->lastname, session->con to store
this data in the phpgw_info array.
[08212000] - removed db_lock() and db_unlock() I changed the phpgw_db_* to use them
properly

View File

@ -26,7 +26,7 @@
function display_option($text,$check,$option) {
global $phpgw, $phpgw_info;
if ($phpgw_info["user"]["permissions"][$check]) {
if ($phpgw_info["user"]["apps"][$check]) {
?>
<tr>
<td>
@ -147,7 +147,7 @@
display_option("show new messages on main screen","email","mainscreen_showmail");
display_option("show birthday reminders on main screen","addressbook","mainscreen_showbirthdays");
if ($phpgw_info["user"]["permissions"]["calendar"]) {
if ($phpgw_info["user"]["apps"]["calendar"]) {
?>
<tr>
<td><?php echo lang_pref("show high priority events on main screen"); ?> ?</td>
@ -197,10 +197,10 @@
<tr>
<td><?php echo lang_pref("Default application"); ?></td>
<td><select name="default_app">
<td><select name="default_app">
<option value="">&nbsp;</option>
<?php
$db_perms = $phpgw->accounts->read_apps($phpgw_info["user"]["sessionid"]);
$db_perms = $phpgw->accounts->read_apps($phpgw_info["user"]["userid"]);
while ($permission = each($db_perms)) {
if ($phpgw_info["apps"][$permission[0]]["enabled"]) {
echo "<option value=\"" . $permission[0] . "\"";
@ -227,7 +227,7 @@
<?php
}
if ($phpgw_info["user"]["permissions"]["headlines"]) {
if ($phpgw_info["user"]["apps"]["headlines"]) {
?>
<tr>
<td><?php echo lang_pref("select headline news sites"); ?>:</td>