function chg_settings($row) { if (isset($_GET, $_POST, $_GET['account_id']) && count($_POST) && ($ac_id = (int) $_GET['account_id'])) { $acc = new accounts(); $acc->account_id = $ac_id; $acc->read_repository(); if ($acc->data['account_id']) { $email = addslashes($this->__get_email($ac_id)); $name = addslashes(${$acc}->data['firstname'] . ' ' . $acc->data['lastname']); $login = addslashes($acc->data['account_lid']); $alias = addslashes(htmlspecialchars($acc->data['account_lid'])); $status = $acc->data['status'] != 'A' ? 'users_opt & ~ 2097152' : 'users_opt|2097152'; $GLOBALS['phpgw']->db->query("UPDATE phpgw_fud_users SET name='{$name}', email='{$email}', login='******', alias='{$alias}', users_opt={$status} WHERE egw_id=" . $ac_id); } } }