Functions | |
void | clear_local_substs (void) |
Clear out the list of substitution variables local to this session. | |
void | svprintf (char *keyname, int keytype, const char *format,...) |
void | svcallback (char *keyname, void(*fcn_ptr)()) |
Add a substitution variable (local to this session) that does a callback. | |
void | pvo_do_cmd (char *servcmd) |
back end for print_value_of() ... does a server command | |
void | print_value_of (char *keyname) |
Print the value of a variable. | |
void | do_template (void *templatename) |
Display a variable-substituted template. |
void svprintf | ( | char * | keyname, | |
int | keytype, | |||
const char * | format, | |||
... | ||||
) |
First scan through to see if we're doing a replacement of an existing key
Otherwise allocate a new one
Format the string and save it
Definition at line 43 of file subst.c.
References wcsubst::next, safestrncpy(), vsnprintf(), wcsubst::wcs_key, wcsubst::wcs_type, and wcsubst::wcs_value.
Referenced by display_add_remove_scripts(), display_aide_menu(), display_edit(), display_inetconf(), display_login(), display_main_menu(), do_generic(), do_rooms_view(), dummy_section(), embed_room_banner(), output_headers(), select_user_to_edit(), and zapped_list().
void svcallback | ( | char * | keyname, | |
void(*)() | fcn_ptr | |||
) |
Add a substitution variable (local to this session) that does a callback.
keyname | the keystring to substitute | |
fcn_ptr | the function callback to give the substitution string |
Definition at line 84 of file subst.c.
References wcsubst::next, wcsubst::wcs_function, wcsubst::wcs_key, and wcsubst::wcs_type.
Referenced by display_login(), and embed_room_banner().
void pvo_do_cmd | ( | char * | servcmd | ) |
back end for print_value_of() ... does a server command
servcmd | server command to execute on the citadel server |
Definition at line 102 of file subst.c.
References fmout(), serv_getln(), serv_puts(), and wprintf().
Referenced by print_value_of().
void print_value_of | ( | char * | keyname | ) |
Print the value of a variable.
keyname | get a key to print |
Page-local variables
Definition at line 130 of file subst.c.
References do_template(), escputs(), wcsubst::next, pvo_do_cmd(), wcsubst::wcs_function, wcsubst::wcs_key, wcsubst::wcs_type, wcsubst::wcs_value, and wprintf().
Referenced by do_template().
void do_template | ( | void * | templatename | ) |
Display a variable-substituted template.
templatename | template file to load |
Definition at line 199 of file subst.c.
References print_value_of(), and wprintf().
Referenced by change_start_page(), display_add_remove_scripts(), display_aide_menu(), display_changepw(), display_edit(), display_enter(), display_inetconf(), display_login(), display_main_menu(), display_menubar(), do_chat(), do_generic(), do_rooms_view(), dummy_section(), embed_room_banner(), output_headers(), print_value_of(), select_user_to_edit(), url_do_template(), wDumpContent(), and zapped_list().