UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / src / cgi / cgilib.h
blob3247aa562f4df0ebd2abbcb56e4a3f4cb458332e
1 /* cgilib.h - headers for cgilib.c
3 Copyright (C) 1999 Russell Kroll <rkroll@exploits.org>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 /* other programs that link to this should provide parsearg() ... */
21 void parsearg (const char *var, const char *value);
23 /* actually extract the values from QUERY_STRING */
24 int extractcgiargs(void);
26 /* see if a host is allowed per the hosts.conf */
27 int checkhost(const char *check);
30 * Output a string taking care to assure that any html meta characters
31 * are output properly.
33 void html_puts(const char *s);
36 * Print the standard http header, html header which is common to all
37 * html pages.
39 void html_begin(const char *title, int refresh);
42 * Print the standard footer which appears on every html page and close out
43 * the html document.
45 void html_finish(void);