// WFM HTML Dialog Routines #include "wfm.h" // // Prompt for delete / move operation // void multiprompt_ui(char *m_action) { int i; int res; int level; char **responses; struct stat fileinfo; char M_action[64]={0}; res=cgiFormStringMultiple("multiselect_filename", &responses); // pre-check for filenames so, that if there is an error, HTML is not yet out, allowing error dialog to be rendered if(res == cgiFormNotFound) { checkfilename(NULL); } else { for(i=0; responses[i]; i++) checkfilename(responses[i]); } cgiHeaderContentType("text/html"); snprintf(M_action, sizeof(M_action), "%c%s Confirmation", toupper(m_action[0]), m_action+1); html_title(M_action); fprintf(cgiOut, "\n" "\n" "
\n" "\n" "\n\n" " |