/*****************************************************************************/ /* 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 */ /*****************************************************************************/