Administrative screen to add/change/delete user accounts
[Configuration Mechanisms]


Functions

void select_user_to_edit (char *message, char *preselect)
 show a list of available users to edit them
long locate_user_vcard (char *username, long usernum)
 Locate the message number of a user's vCard in the current room.
void display_edit_address_book_entry (char *username, long usernum)
 Display the form for editing a user's address book entry.
void display_edituser (char *supplied_username, int is_new)
 Edit a user. If supplied_username is null, look in the "username" web variable for the name of the user to edit.
void edituser (void)
 do the backend operation of the user edit on the server
void delete_user (char *username)
 burge a user
void create_user (void)
 create a new user take the web environment username and create it on the citadel server

Function Documentation

void select_user_to_edit ( char *  message,
char *  preselect 
)

show a list of available users to edit them

Parameters:
message the header message???
preselect which user should be selected in the browser

Definition at line 20 of file useredit.c.

References do_template(), escputs(), extract_token(), output_headers(), serv_getln(), serv_puts(), svprintf(), wDumpContent(), and wprintf().

Referenced by create_user(), delete_user(), display_edit_address_book_entry(), display_edituser(), edituser(), session_loop(), and submit_vcard().

long locate_user_vcard ( char *  username,
long  usernum 
)

Locate the message number of a user's vCard in the current room.

Parameters:
username the plaintext name of the user
usernum the number of the user on the citadel server
Returns:
the message id of his vcard

Search for the user's vCard

Iterate through the message list looking for vCards

If there's no vcard, create one

Definition at line 103 of file useredit.c.

References extract_token(), serv_getln(), serv_printf(), and serv_puts().

Referenced by display_edit_address_book_entry(), and display_reg().

void display_edit_address_book_entry ( char *  username,
long  usernum 
)

Display the form for editing a user's address book entry.

Parameters:
username the name of the user
usernum the citadel-uid of the user

Locate the user's config room, creating it if necessary

Definition at line 175 of file useredit.c.

References do_edit_vcard(), locate_user_vcard(), select_user_to_edit(), serv_getln(), and serv_printf().

Referenced by display_edituser(), and edituser().

void display_edituser ( char *  supplied_username,
int  is_new 
)

Edit a user. If supplied_username is null, look in the "username" web variable for the name of the user to edit.

If "is_new" is set to nonzero, this screen will set the web variables to send the user to the vCard editor next.

Parameters:
supplied_username user to look up or NULL if to search in the environment
is_new should we create the user?

Definition at line 226 of file useredit.c.

References axdefs, bstr(), delete_user(), display_edit_address_book_entry(), escputs(), extract_int(), extract_long(), extract_token(), output_headers(), safestrncpy(), select_user_to_edit(), serv_getln(), serv_printf(), wDumpContent(), and wprintf().

Referenced by create_user(), and session_loop().

void edituser ( void   ) 

do the backend operation of the user edit on the server

If we are in the middle of creating a new user, move on to the vCard edit screen.

Definition at line 393 of file useredit.c.

References bstr(), display_edit_address_book_entry(), safestrncpy(), select_user_to_edit(), serv_getln(), and serv_printf().

Referenced by session_loop().

void delete_user ( char *  username  ) 

burge a user

Parameters:
username the name of the user to remove

Definition at line 451 of file useredit.c.

References bstr(), safestrncpy(), select_user_to_edit(), serv_getln(), and serv_printf().

Referenced by display_edituser().


Generated on Wed Jun 20 23:13:14 2007 for webcit by  doxygen 1.5.2