X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fuseredit.c;h=265f9158792467ba1add965fb165f13269b1fbc1;hb=2f170b199ecc5f646c995c729935d87daa554ca3;hp=f8a685513e0dad4eb53596ada245128ce6527c27;hpb=072710cf56b3a60b9a614c17a6c76fb712d869e0;p=citadel.git diff --git a/webcit/useredit.c b/webcit/useredit.c index f8a685513..265f91587 100644 --- a/webcit/useredit.c +++ b/webcit/useredit.c @@ -35,7 +35,7 @@ void select_user_to_edit(char *message, char *preselect) if (message != NULL) wprintf(message); - wprintf("
\n"); + wprintf("
\n"); svprintf("BOXTITLE", WCS_STRING, _("Add users")); do_template("beginbox"); @@ -44,15 +44,15 @@ void select_user_to_edit(char *message, char *preselect) "user name in the box below and click 'Create'.")); wprintf("

"); - wprintf("
\n"); + wprintf("
\n"); wprintf(_("New user: ")); wprintf("
\n" "" - "
\n", _("Create")); + "
\n", _("Create")); do_template("endbox"); - wprintf("
"); + wprintf(""); svprintf("BOXTITLE", WCS_STRING, _("Edit or Delete users")); do_template("beginbox"); @@ -61,33 +61,33 @@ void select_user_to_edit(char *message, char *preselect) "name from the list and click 'Edit'.")); wprintf("

"); - wprintf("
" - "
\n"); - wprintf("\n"); serv_puts("LIST"); serv_getln(buf, sizeof buf); if (buf[0] == '1') { while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) { extract_token(username, buf, 0, '|', sizeof username); - wprintf(""); escputs(username); wprintf("\n"); } } - wprintf("
\n"); + wprintf("
\n"); wprintf("", _("Edit configuration")); wprintf("", _("Edit address book entry")); wprintf("", _("Delete user"), _("Delete this user?")); - wprintf("
\n"); + wprintf("\n"); do_template("endbox"); - wprintf("
\n"); + wprintf("
\n"); wDumpContent(1); } @@ -189,7 +189,7 @@ void display_edit_address_book_entry(char *username, long usernum) { serv_getln(buf, sizeof buf); if (buf[0] != '2') { sprintf(error_message, - "" + "" "%s

\n", &buf[4]); select_user_to_edit(error_message, username); return; @@ -200,7 +200,7 @@ void display_edit_address_book_entry(char *username, long usernum) { if (vcard_msgnum < 0) { sprintf(error_message, - "%s

\n", + "%s

\n", _("An error occurred while trying to create or edit this address book entry.") ); select_user_to_edit(error_message, username); @@ -250,7 +250,7 @@ void display_edituser(char *supplied_username, int is_new) { serv_getln(buf, sizeof buf); if (buf[0] != '2') { sprintf(error_message, - "" + "" "%s

\n", &buf[4]); select_user_to_edit(error_message, username); return; @@ -278,109 +278,109 @@ void display_edituser(char *supplied_username, int is_new) { output_headers(1, 1, 2, 0, 0, 0); wprintf("
\n"); - wprintf("
"); - wprintf(""); + wprintf("
"); + wprintf(""); wprintf(_("Edit user account: ")); escputs(username); - wprintf("
\n"); + wprintf("
\n"); wprintf("
\n
\n"); wprintf("
" "
\n"); - wprintf("
\n" - "\n" + "\n"); - wprintf("\n" - "\n", + wprintf("\n" + "\n", is_new, usernum); - wprintf("\n", flags); + wprintf("\n", flags); - wprintf("
"); + wprintf("
"); - wprintf("\n"); + wprintf("\" maxlength=\"20\">\n"); wprintf("\n"); - wprintf("\n"); + wprintf("\" maxlength=\"6\">\n"); - wprintf("\n"); + wprintf("\" maxlength=\"6\">\n"); - wprintf("\n"); + wprintf("\n"); - wprintf("\n"); + wprintf("\" maxlength=\"7\">\n"); now = time(NULL); - wprintf(""); + wprintf(""); - wprintf("\n"); + wprintf("\" maxlength=\"5\">\n"); - wprintf("
"); + wprintf("
"); wprintf(_("Password")); - wprintf("" - "" + "
"); wprintf(_("Permission to send Internet mail")); wprintf(""); wprintf("
"); + wprintf("
"); wprintf(_("Number of logins")); - wprintf("" - "" + "
"); + wprintf("
"); wprintf(_("Messages submitted")); - wprintf("" - "" + "
"); + wprintf("
"); wprintf(_("Access level")); - wprintf("" - "" + "
"); + wprintf("
"); wprintf(_("User ID number")); - wprintf("" - "" + "
"); + wprintf("
"); wprintf(_("Date and time of last login")); - wprintf("" - "" + "
"); + wprintf("
"); wprintf(_("Auto-purge after this many days")); - wprintf("" - "" + "
\n"); + wprintf("
\n"); - wprintf("\n" + wprintf("\n" " " - "\n" - "

\n", _("Save changes"), _("Cancel")); + "\n" + "

\n", _("Save changes"), _("Cancel")); - wprintf("\n"); + wprintf("\n"); wprintf("
\n"); wDumpContent(1); @@ -424,7 +424,7 @@ void edituser(void) { serv_getln(buf, sizeof buf); if (buf[0] != '2') { sprintf(message, - "" + "" "%s

\n", &buf[4]); } else { @@ -456,7 +456,7 @@ void delete_user(char *username) { serv_getln(buf, sizeof buf); if (buf[0] != '2') { sprintf(message, - "" + "" "%s

\n", &buf[4]); } else { @@ -488,7 +488,7 @@ void create_user(void) { } else { sprintf(error_message, - "" + "" "%s

\n", &buf[4]); select_user_to_edit(error_message, NULL); }