+if ($action eq "create") { &createUserForm }
+elsif ($action eq "change-auth") { &changeAuthForm }
+elsif ($action eq "edit") { &editRestrictionsForm }
+elsif ($action eq "delete") { &deleteUserForm }
+elsif ($action eq "quota") { &changeQuotaForm }
+elsif ($action eq "list") { &listFiles }
+elsif ($action eq "showquota") { &showQuota }
+elsif ($action eq "showconfig") { &showConfig }
+elsif ($action eq "userconfig") { &userConfigForm }
+elsif ($action eq "watch") { &watchLog }
+elsif ($action eq "fexsrv.log") { &getlog("fexsrv.log") }
+elsif ($action eq "fup.log") { &getlog("fup.log") }
+elsif ($action eq "fop.log") { &getlog("fop.log") }
+elsif ($action eq "error.log") { &getlog("error.log") }
+elsif ($action eq "editconfig") { &editFile("$FEXLIB/fex.ph") }
+elsif ($action eq "editindex") { &editFile("$docdir/index.html") }
+elsif ($action eq "backup") { &backup }
+elsif ($action eq "restore") { &restoreForm }
+
+if (defined $PARAM{"createUser"}) {
+ createUser($PARAM{"createUser"}, $PARAM{"authID"});
+} elsif (defined $PARAM{"changeAuthUser"}) {
+ if ($PARAM{"changeAuthUser"} =~ /^#.*/) {
+ &changeAuthForm;
+ } else {
+ changeUser($PARAM{"changeAuthUser"}, $PARAM{"authID"});
+ }
+} elsif (defined $PARAM{"showUserConfig"}) {
+ if ($PARAM{"showUserConfig"} =~ /^#.*/) {
+ &userConfigForm;
+ } else {
+ showUserConfig($PARAM{"showUserConfig"});
+ }
+} elsif (defined $PARAM{"deleteUser"}) {
+ if ($PARAM{"deleteUser"} =~ /^#.*/) {
+ &deleteUserForm;
+ } else {
+ deleteUser($PARAM{"deleteUser"});
+ }
+} elsif (defined $PARAM{"userQuota"}) {
+ if ($PARAM{"userQuota"} =~ /^#.*/) {
+ &changeQuotaForm;
+ } else {
+ if (defined $PARAM{"default quota"}) {
+ $user = normalize_user($PARAM{"userQuota"});
+ unlink "$user/\@QUOTA";
+ print "$user has now default quota:<p>\n";
+ print "recipient quota: $recipient_quota MB<br>\n";
+ print "sender quota: $sender_quota MB<br>\n";
+ &end_html;