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

Function do_config_server

cgi-bin/admin.c:1245–1766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1243 */
1244
1245static void
1246do_config_server(http_t *http) /* I - HTTP connection */
1247{
1248 if (cgiGetVariable("CHANGESETTINGS"))
1249 {
1250 /*
1251 * Save basic setting changes...
1252 */
1253
1254 int num_settings; /* Number of server settings */
1255 cups_option_t *settings; /* Server settings */
1256 int advanced, /* Advanced settings shown? */
1257 changed; /* Have settings changed? */
1258 const char *debug_logging, /* DEBUG_LOGGING value */
1259 *preserve_jobs = NULL,
1260 /* PRESERVE_JOBS value */
1261 *remote_admin, /* REMOTE_ADMIN value */
1262 *remote_any, /* REMOTE_ANY value */
1263 *share_printers,/* SHARE_PRINTERS value */
1264 *user_cancel_any,
1265 /* USER_CANCEL_ANY value */
1266 *browse_web_if = NULL,
1267 /* BrowseWebIF value */
1268 *preserve_job_history = NULL,
1269 /* PreserveJobHistory value */
1270 *preserve_job_files = NULL,
1271 /* PreserveJobFiles value */
1272 *max_clients = NULL,
1273 /* MaxClients value */
1274 *max_jobs = NULL,
1275 /* MaxJobs value */
1276 *max_log_size = NULL;
1277 /* MaxLogSize value */
1278 const char *current_browse_web_if,
1279 /* BrowseWebIF value */
1280 *current_preserve_job_history,
1281 /* PreserveJobHistory value */
1282 *current_preserve_job_files,
1283 /* PreserveJobFiles value */
1284 *current_max_clients,
1285 /* MaxClients value */
1286 *current_max_jobs,
1287 /* MaxJobs value */
1288 *current_max_log_size;
1289 /* MaxLogSize value */
1290#ifdef HAVE_GSSAPI
1291 char default_auth_type[255];
1292 /* DefaultAuthType value */
1293 const char *val; /* Setting value */
1294#endif /* HAVE_GSSAPI */
1295
1296
1297 /*
1298 * Get the checkbox values from the form...
1299 */
1300
1301 debug_logging = cgiGetCheckbox("DEBUG_LOGGING") ? "1" : "0";
1302 remote_admin = cgiGetCheckbox("REMOTE_ADMIN") ? "1" : "0";

Callers 1

mainFunction · 0.85

Calls 15

cgiGetVariableFunction · 0.85
cgiGetCheckboxFunction · 0.85
cgiGetTextfieldFunction · 0.85
cgiStartHTMLFunction · 0.85
cgiTextFunction · 0.85
cgiSetVariableFunction · 0.85
cupsLastErrorStringFunction · 0.85
cgiCopyTemplateLangFunction · 0.85
cgiEndHTMLFunction · 0.85
cupsGetOptionFunction · 0.85
_cups_strcasecmpFunction · 0.85

Tested by

no test coverage detected