#ifndef PAGES_H #define PAGES_H #include "proto.h" #define PAGE_HEAD "\n" #define PAGE_TOP PAGE_HEAD "\n
\n\n
" #define PAGE_BOTTOM "

" struct { char *name; char *content; char *mime; int len; } PAGES[] = { { "unknown", "Error" PAGE_TOP "Error" PAGE_BOTTOM, "text/html", -1}, { "badrequest", "Bad Request" PAGE_TOP "Bad Request" PAGE_BOTTOM, "text/html", -1}, { "badresponse", "Bad Response" PAGE_TOP "Bad Response" PAGE_BOTTOM, "text/html", -1}, { "nodns", "DNS Lookup failed" PAGE_TOP "DNS Lookup for $HTTP_HOST failed" PAGE_BOTTOM, "text/html", -1}, { "nofile", "File not found" PAGE_TOP "$HTTP_FILE not found" PAGE_BOTTOM, "text/html", -1}, { "noconnect", "Connection failed" PAGE_TOP "Connection to $HTTP_HOST:$HTTP_PORT failed" PAGE_BOTTOM, "text/html", -1}, { "blocked", "Page Blocked" PAGE_TOP "$HTTP_HOST$HTTP_FILE is blocked" PAGE_BOTTOM, "text/html", -1}, { "badprotocol", "Protocol not implemented" PAGE_TOP "Protocol not implemented" PAGE_BOTTOM, "text/html", -1}, { "noaccess" , "Access denied" PAGE_TOP "Access denied" PAGE_BOTTOM, "text/html", -1}, { "badauth", "Authorization failed" PAGE_TOP "Authorization failed" PAGE_BOTTOM, "text/html", -1}, { /* borrowed from privoxy */ "tinygif", "\x47\x49\x46\x38\x39\x61\x01\x00\x01\x00\x80\x00\x00\xff\xff\xff\x00\x00\x00\x21\xf9\x04\x01\x00\x00\x00\x00\x2c\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02\x44\x01\x00\x3b", "image/gif", 43}, { "checkeredgif", "\107\111\106\070\071\141\004\000\004\000\200\000\000\310\310\310\377\377\377\041\376\016\111\040\167\141\163\040\141\040\142\141\156\156\145\162\000\041\371\004\001\012\000\001\000\054\000\000\000\000\004\000\004\000\000\002\005\104\174\147\270\005\000\073", "image/gif", 64}, { "tinyswf", "\x46\x57\x53\x04\x86\x01\x00\x00\x30\x0a\x00\xa0\x00\x0c\x01\x00\x43\x02\x00\x00\x00\x7f\x05\x3b\x01\x00\x00\x01\x00\xff\xd9\xff\xd8\xff\xd8\xff\xe0\x00\x10\x4a\x46\x49\x46\x00\x01\x01\x01\x00\x48\x00\x48\x00\x00\xff\xfe\x00\x17\x43\x72\x65\x61\x74\x65\x64\x20\x77\x69\x74\x68\x20\x54\x68\x65\x20\x47\x49\x4d\x50\xff\xdb\x00\x43\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xdb\x00\x43\x01\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xc0\x00\x11\x08\x00\x01\x00\x01\x03\x01\x22\x00\x02\x11\x01\x03\x11\x01\xff\xc4\x00\x15\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\xff\xc4\x00\x14\x10\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc4\x00\x14\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xc4\x00\x14\x11\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xda\x00\x0c\x03\x01\x00\x02\x11\x03\x11\x00\x3f\x00\xa0\x00\xff\xd9\xbf\x00\x1e\x00\x00\x00\x02\x00\x30\x0a\x00\xa0\x01\x41\x01\x00\xd9\x40\x00\x05\x00\x00\x00\x00\x10\x14\xca\x29\xd0\xb3\x46\xcd\x05\x34\x54\x00\x86\x06\x06\x01\x00\x02\x00\x00\x40\x00\x00\x00\x0a", "application/x-shockwave", 327}, { "empty", "", "text/plain", 0}, { NULL, NULL, NULL, 0} }; #endif /* PAGES_H */