function edit_email_account($pDB, &$error) { global $arrLang; $bExito = TRUE; $error_pwd = ''; $virtual = FALSE; $pEmail = new paloEmail($pDB); if (isset($_POST['password1']) && trim($_POST['password1']) != "") { $username = $_POST['username']; $bool = $pEmail->setAccountPassword($username, $_POST['password1']); if (!$bool) { $error_pwd = _tr('Password could not be changed') . ': ' . $pEmail->errMsg; $bExito = FALSE; } } if ($_POST['old_quota'] != $_POST['quota']) { $bExito = $pEmail->setAccountQuota($_POST['username'], $_POST['quota']); if (!$bExito) { $error = _tr($pEmail->errMsg); } } if ($bExito && !empty($error_pwd)) { $error = $error_pwd; } return $bExito; }