MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cgiStartHTML

Function cgiStartHTML

cgi-bin/html.c:146–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 */
145
146void
147cgiStartHTML(const char *title) /* I - Title of page */
148{
149 /*
150 * Disable any further authentication attempts...
151 */
152
153 cupsSetPasswordCB(cgi_null_passwd);
154
155 /*
156 * Tell the client to expect UTF-8 encoded HTML...
157 */
158
159 if (cgi_multipart)
160 puts(cgi_multipart);
161
162 puts("Content-Type: text/html;charset=utf-8\n");
163
164 /*
165 * Send a standard header...
166 */
167
168 cgiSetVariable("TITLE", title);
169 cgiSetServerVersion();
170
171 cgiCopyTemplateLang("header.tmpl");
172}
173
174
175/*

Callers 15

mainFunction · 0.85
cgiMoveJobsFunction · 0.85
cgiPrintCommandFunction · 0.85
cgiPrintTestPageFunction · 0.85
mainFunction · 0.85
do_job_opFunction · 0.85
mainFunction · 0.85
do_class_opFunction · 0.85
show_all_classesFunction · 0.85
show_classFunction · 0.85
mainFunction · 0.85
do_printer_opFunction · 0.85

Calls 4

cupsSetPasswordCBFunction · 0.85
cgiSetVariableFunction · 0.85
cgiSetServerVersionFunction · 0.85
cgiCopyTemplateLangFunction · 0.85

Tested by

no test coverage detected