diff --git a/admin/deletegroup.php b/admin/deletegroup.php index de40c3c60f..528705cc89 100755 --- a/admin/deletegroup.php +++ b/admin/deletegroup.php @@ -47,9 +47,9 @@ $phpgw->common->navbar(); echo '

'; - echo lang_admin("Sorry, the follow users are still a member of the group x",$group_name) - . '
' . lang_admin("They must be removed before you can continue") - . ''; + echo lang_admin("Sorry, the follow users are still a member of the group x",$group_name) + . '
' . lang_admin("They must be removed before you can continue") + . ''; echo '
'; diff --git a/admin/editaccount.php b/admin/editaccount.php index e8003293e8..92c34369f1 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -63,13 +63,13 @@ while ($permission = each($new_permissions)) { if ($phpgw_info["apps"][$permission[0]]["enabled"]) { - $phpgw->permissions->add($permission[0]); + $phpgw->accounts->add_app($permission[0]); } } //$phpgw->permissions->add("hr"); if ($new_permissions["anonymous"] && ! $new_permissions["admin"]) - $phpgw->permissions->add("anonymous"); + $phpgw->accounts->add_app("anonymous"); if (! $n_account_status) $n_account_status = "L"; @@ -99,7 +99,7 @@ $phpgw->db->query("update accounts set firstname='" . addslashes($n_firstname) . "'," . " lastname='" . addslashes($n_lastname) . "', permissions='" - . $phpgw->permissions->add_rebuild() . "', status='" + . $phpgw->accounts->add_app("",True) . "', status='" . "$n_account_status', groups='" . $phpgw->groups->array_to_string("none",$n_groups) . "' where loginid='$n_loginid'"); @@ -113,11 +113,11 @@ $phpgw->common->header(); $phpgw->common->navbar(); + $account_status = $phpgw->db->f("status"); + $db_perms = $phpgw->accounts->read_apps($phpgw->db->f("loginid")); + $phpgw->db->query("select * from accounts where con='$con'"); $phpgw->db->next_record(); - - $account_status = $phpgw->db->f("status"); - $db_perms = $phpgw->permissions->read_other($phpgw->db->f("loginid")); ?>
@@ -146,7 +146,7 @@