[0001] [0002] [0003] [0004] [0005] [0006] [0007] [0008] [0009] [0010] [0011] [0012] [0013] [0014] [0015] [0016] [0017] [0018] [0019] [0020] [0021] [0022] [0023] [0024] [0025] [0026] [0027] [0028] [0029] [0030] [0031] [0032] [0033] [0034] [0035] [0036] [0037] [0038] [0039] [0040] [0041] [0042] [0043] [0044] [0045] [0046] [0047] [0048] [0049] [0050] [0051] [0052] [0053] [0054] [0055] [0056] [0057] [0058] [0059] [0060] [0061] [0062] [0063] [0064] [0065] [0066] [0067] [0068] [0069] [0070] [0071] [0072] [0073] [0074] [0075] [0076] [0077] [0078] [0079]
/*****************************************************************************/ /* Query.h */ /*****************************************************************************/ #ifndef QUERY_H_LOADED #define QUERY_H_LOADED 1 #define DEFAULT_CGI_QUERY "/cgi-bin/query" #define DEFAULT_OSU_QUERY "/htbin/query" #define DEFAULT_WASD_QUERY "/cgi-bin/query" #define DEFAULT_CGI_EXTRACT "/cgi-bin/extract" #define DEFAULT_OSU_EXTRACT "/htbin/extract" #define DEFAULT_WASD_EXTRACT "/cgi-bin/extract" #define DEFAULT_EXTRACT_RECORDS 25 #define DEFAULT_STRFTIME_FORMAT "%a, %d %b %Y %R" #define MAX_RECORD_SIZE 32767 /* the first comma delimits an empty file type (e.g. README.;) */ #define DEFAULT_TEXT_TYPES \ ",ADA,ASCII,BAS,C,CNF,COB,CONF,COM,CPP,CXX,DIS,FOR,JAVA,JS,H,LIS,LOG,MAR,\ PAS,PHP,PL,PRO,RELEASE_NOTES,SDML,TEX,TEXT,TXT" #define DEFAULT_HTML_TYPES "HTM,HTML,SHTML,HTMLX" #define DEFAULT_ABOUT_PATH "/query/-/aboutquery.html" #define COMMON_STYLE "\ body { margin:0.5em; background-color:white; color:black; \ font-family:sans-serif; }\n\ a { text-decoration:none; color:black; \ border:1px solid slategray; border-radius:3px; padding:1px 5px 2px 5px; }\n\ .header { padding:0.5em; background-color: gainsboro; \ border:1px solid lightslategray; border-radius:1px; \ font-size: 140%; font-weight: bold; word-spacing:0.3em; }\n\ .otherbutton { display:inline-block; margin-left:2em; }\n\ " #define DEFAULT_QUERY_STYLE COMMON_STYLE "\ li { margin:1px; }\n\ li:first-child { margin:8px 0 0 0; }\n\ li:last-child { margin:0 0 12px 0; }\n\ li:only-child { margin:8px 0 12px 0; }\n\ .document { margin-left:1.0em; font-size:90%; }\n\ .filename { font-weight:normal; font-size:90%; }\n\ .footer { padding:0.7em 1em 0.7em 1em; background-color: gainsboro; \ border:1px solid lightslategray; border-radius:1px; \ vertical-align:top; min-height:1.3em; }\n\ .hit { font-weight:bold; padding:10px; }\n\ .hit a { background-color:whitesmoke; }\n\ .ishtml { padding:0 0 0 0.5em; }\n\ .istext { padding:0 0 0 0.5em; font-family:monospace; }\n\ .ishtml a, .istext a { border:1px dotted slategray; border-radius:2px; \ padding:0 2px 0 2px; background-color:whitesmoke; }\n\ .query { margin:1em; }\n\ .statistics { font-size:80%; font-style:italic; }\n\ .summary { display:inline-block; font-weight:bold; }\n\ " #define DEFAULT_EXTRACT_STYLE COMMON_STYLE "\ pre { margin-left:1.5em; }\n\ .buttonbar { padding:0.7em 1em 0.7em 1em; \ border:1px solid lightslategray; border-radius:1px; \ background-color: gainsboro; min-height:1.3em; }\n\ .beginend { display:inline-block; }\n\ .buttonbar a { text-decoration:none; color:inherit; \ border:1px solid slategray; border-radius:3px; padding:1px 5px 2px 5px; }\n\ .butbartop { border-top-width:0; padding-top:0.2em; \ border-radius:0 0 1px 1px; }\n\ .header { border-bottom-width:0; border-radius:1px 1px 0 0; }\n\ .highlight { border: 1px dotted slategray; \ padding:0 2px 0 2px; background-color:yellow; }\n\ " #endif /* QUERY_H_LOADED */ /*****************************************************************************/