array ("post", "string", ""), "user" => array ("post", "string", ""), "password" => array ("post", "string", ""), "passwordconf" => array ("post", "string", ""), ); getFields($fields); if ($password != $passwordconf) { $msg->raise("ERROR", "hta", _("Passwords do not match")); include("hta_adduser.php"); exit(); } if (!$hta->add_user($user, $password, $dir)) { include ("hta_adduser.php"); } else { $msg->raise("INFO", "hta", _("The user %s was added to the protected folder %s"), array($user, $dir)); include ("hta_edit.php"); } ?>