function GROUP_DEFAULT_PASSWORD_SAVE() { $gpid = $_GET["ChangeDefaultGroupPassword"]; $group = new groups($gpid); $group->DefaultGroupPassword = $_GET["password"]; if (!$group->edit_DefaultGroupPassword()) { echo $group->ldap_error; exit; } if ($_GET["change_now"] == "on") { if (!$group->changeAllMembersPassword()) { echo "Members password:failed\n"; exit; } } }