-const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.5 2003/03/11 11:53:58 oes Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.70.2.6 2003/03/12 01:26:25 david__schmidt Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/Attic/cgi.c,v $
*
* Revisions :
* $Log: cgi.c,v $
+ * Revision 1.70.2.6 2003/03/12 01:26:25 david__schmidt
+ * Move declaration of struct tm dummy outside of a control block so it is
+ * accessible later on during snprintf in get_http_time.
+ *
* Revision 1.70.2.5 2003/03/11 11:53:58 oes
* Cosmetic: Renamed cryptic variable
*
#endif
{ "show-status",
cgi_show_status,
+#ifdef FEATURE_CGI_EDIT_ACTIONS
"View & change the current configuration",
+#else
+ "View the current configuration",
+#endif
TRUE },
{ "show-version",
cgi_show_version,
}
else
{
- err = cgi_error_disabled(csp, rsp);
+ err = cgi_error_404(csp, rsp, param_list);
}
}
if (!err) err = map(exports, "actions-help-prefix", 1, ACTIONS_HELP_PREFIX ,1);
#ifdef FEATURE_TOGGLE
if (!err) err = map_conditional(exports, "enabled-display", global_toggle_state);
+#else
+ if (!err) err = map_block_killer(exports, "can-toggle");
#endif
snprintf(buf, 20, "%d", csp->config->hport);