00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_SearchScript extends HFile{
00006 function HFile_SearchScript(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "1";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "gray", "brown", "blue");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array();
00028 $this->unindent = array();
00029
00030
00031
00032 $this->stringchars = array();
00033 $this->delimiters = array("~", "!", "@", "$", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array("");
00039 $this->blockcommenton = array("%-");
00040 $this->blockcommentoff = array("-%");
00041
00042
00043
00044 $this->keywords = array(
00045 "<A" => "1",
00046 "</A>" => "1",
00047 "<ABOVE>" => "1",
00048 "<ADDRESS>" => "1",
00049 "</ADDRESS>" => "1",
00050 "<APPLET" => "1",
00051 "</APPLET>" => "1",
00052 "<ARRAY>" => "1",
00053 "<AREA" => "1",
00054 "</AREA" => "1",
00055 "<B>" => "1",
00056 "</B>" => "1",
00057 "<BASE" => "1",
00058 "<BASEFONT" => "1",
00059 "<BGSOUND" => "1",
00060 "<BIG>" => "1",
00061 "</BIG>" => "1",
00062 "<BLINK>" => "1",
00063 "</BLINK>" => "1",
00064 "<BLOCKQUOTE>" => "1",
00065 "</BLOCKQUOTE>" => "1",
00066 "<BODY" => "1",
00067 "<BODY>" => "1",
00068 "</BODY>" => "1",
00069 "<BOX>" => "1",
00070 "<BR" => "1",
00071 "<BR>" => "1",
00072 "<CAPTION>" => "1",
00073 "</CAPTION>" => "1",
00074 "<CENTER>" => "1",
00075 "</CENTER>" => "1",
00076 "<CITE>" => "1",
00077 "</CITE>" => "1",
00078 "<CODE>" => "1",
00079 "</CODE>" => "1",
00080 "<DD>" => "1",
00081 "<DFN>" => "1",
00082 "<DIR>" => "1",
00083 "</DIR>" => "1",
00084 "<DIV" => "1",
00085 "</DIV>" => "1",
00086 "<DL>" => "1",
00087 "</DL>" => "1",
00088 "<DT>" => "1",
00089 "<EM>" => "1",
00090 "</EM>" => "1",
00091 "<EMBED" => "1",
00092 "<FIG>" => "1",
00093 "<FONT" => "1",
00094 "</FONT>" => "1",
00095 "<FORM>" => "1",
00096 "<FORM" => "1",
00097 "</FORM>" => "1",
00098 "<FRAME" => "1",
00099 "<FRAMESET" => "1",
00100 "</FRAMESET>" => "1",
00101 "<H" => "1",
00102 "<H1>" => "1",
00103 "<H2>" => "1",
00104 "<H3>" => "1",
00105 "<H4>" => "1",
00106 "<H5>" => "1",
00107 "<H6>" => "1",
00108 "</H1>" => "1",
00109 "</H2>" => "1",
00110 "</H3>" => "1",
00111 "</H4>" => "1",
00112 "</H5>" => "1",
00113 "</H6>" => "1",
00114 "<HEAD>" => "1",
00115 "</HEAD>" => "1",
00116 "<HR>" => "1",
00117 "<HR" => "1",
00118 "<HTML>" => "1",
00119 "</HTML>" => "1",
00120 "<I>" => "1",
00121 "</I>" => "1",
00122 "<IMG" => "1",
00123 "<INPUT>" => "1",
00124 "<INPUT" => "1",
00125 "<ISINDEX>" => "1",
00126 "<KBD>" => "1",
00127 "</KBD>" => "1",
00128 "<LI>" => "1",
00129 "<LINK" => "1",
00130 "</LI>" => "1",
00131 "<MAP" => "1",
00132 "</MAP>" => "1",
00133 "<MARQUEE" => "1",
00134 "</MARQUEE>" => "1",
00135 "<MENU>" => "1",
00136 "</MENU>" => "1",
00137 "<META" => "1",
00138 "<NEXTID" => "1",
00139 "<NOBR>" => "1",
00140 "</NOBR>" => "1",
00141 "<NOFRAMES>" => "1",
00142 "</NOFRAMES>" => "1",
00143 "<NOTE>" => "1",
00144 "</NOTE>" => "1",
00145 "<OL>" => "1",
00146 "</OL>" => "1",
00147 "<OPTION>" => "1",
00148 "<OPTION" => "1",
00149 "<P" => "1",
00150 "<P>" => "1",
00151 "</P>" => "1",
00152 "<PRE>" => "1",
00153 "</PRE>" => "1",
00154 "<PARAM>" => "1",
00155 "<RANGE>" => "1",
00156 "<ROOT>" => "1",
00157 "<SAMP>" => "1",
00158 "</SAMP>" => "1",
00159 "<SCRIPT" => "1",
00160 "</SCRIPT>" => "1",
00161 "<SELECT>" => "1",
00162 "</SELECT>" => "1",
00163 "<SMALL>" => "1",
00164 "</SMALL>" => "1",
00165 "<SOUND" => "1",
00166 "<SQRT>" => "1",
00167 "<STYLE>" => "1",
00168 "<STRIKE>" => "1",
00169 "</STRIKE>" => "1",
00170 "<STRONG>" => "1",
00171 "</STRONG>" => "1",
00172 "<SUB>" => "1",
00173 "</SUB>" => "1",
00174 "<SUP>" => "1",
00175 "</SUP>" => "1",
00176 "<SELECT" => "1",
00177 "<TABLE>" => "1",
00178 "<TABLE" => "1",
00179 "</TABLE>" => "1",
00180 "<TD" => "1",
00181 "<TD>" => "1",
00182 "</TD>" => "1",
00183 "<TEXT>" => "1",
00184 "<TEXTAREA" => "1",
00185 "<TEXTAREA>" => "1",
00186 "</TEXTAREA>" => "1",
00187 "<TH" => "1",
00188 "<TH>" => "1",
00189 "</TH>" => "1",
00190 "<TITLE>" => "1",
00191 "</TITLE>" => "1",
00192 "<TR" => "1",
00193 "<TR>" => "1",
00194 "</TR>" => "1",
00195 "<TT>" => "1",
00196 "</TT>" => "1",
00197 "<U>" => "1",
00198 "</U>" => "1",
00199 "<UL>" => "1",
00200 "</UL>" => "1",
00201 "<VAR>" => "1",
00202 "</VAR>" => "1",
00203 "<WBR>" => "1",
00204 "ACTION=" => "2",
00205 "ALIGN=" => "2",
00206 "ALINK" => "2",
00207 "ALT" => "2",
00208 "BACKGROUND=" => "2",
00209 "BEHAVIOR" => "2",
00210 "BELOW" => "2",
00211 "BGCOLOR=" => "2",
00212 "BORDER=" => "2",
00213 "CELLPADDING" => "2",
00214 "CELLSPACING" => "2",
00215 "COLOR=" => "2",
00216 "COLS" => "2",
00217 "COLSPAN" => "2",
00218 "CONTENT=" => "2",
00219 "DIRECTION" => "2",
00220 "FACE=" => "2",
00221 "FRAMEBORDER=" => "2",
00222 "FRAMESPACING=" => "2",
00223 "HEIGHT=" => "2",
00224 "HREF=" => "2",
00225 "HSPACE=" => "2",
00226 "HTTP-EQUIV=" => "2",
00227 "ISMAP" => "2",
00228 "LANGUAGE" => "2",
00229 "LINK" => "2",
00230 "METHOD=" => "2",
00231 "MARGINHEIGHT=" => "2",
00232 "MARGINWIDTH=" => "2",
00233 "MULTIPLE" => "2",
00234 "NAME=" => "2",
00235 "NORESIZE" => "2",
00236 "NOSHADE" => "2",
00237 "ONBLUR" => "2",
00238 "ONCLICK" => "2",
00239 "ONFOCUS" => "2",
00240 "ONLOAD" => "2",
00241 "ONMOUSEOUT" => "2",
00242 "ONMOUSEOVER" => "2",
00243 "REV=" => "2",
00244 "ROWS" => "2",
00245 "ROWSPAN" => "2",
00246 "SCROLLING" => "2",
00247 "SIZE=" => "2",
00248 "SRC=" => "2",
00249 "START" => "2",
00250 "TARGET=" => "2",
00251 "TEXT=" => "2",
00252 "TOPMARGIN" => "2",
00253 "TYPE=" => "2",
00254 "URL=" => "2",
00255 "VALIGN=" => "2",
00256 "VALUE=" => "2",
00257 "VLINK=" => "2",
00258 "VSPACE=" => "2",
00259 "WIDTH=" => "2",
00260 "and" => "3",
00261 "Boolplus" => "3",
00262 "Course" => "3",
00263 "else" => "3",
00264 "endif" => "3",
00265 "endfor" => "3",
00266 "exit" => "3",
00267 "exitfor" => "3",
00268 "Fine" => "3",
00269 "Fixed" => "3",
00270 "for" => "3",
00271 "foreach" => "3",
00272 "Freetext" => "3",
00273 "if" => "3",
00274 "in" => "3",
00275 "Medium" => "3",
00276 "not" => "3",
00277 "or" => "3",
00278 "Simple" => "3",
00279 "stop" => "3",
00280 "then" => "3",
00281 "to" => "3",
00282 "abs" => "4",
00283 "AddHeader" => "4",
00284 "asc" => "4",
00285 "date" => "4",
00286 "count" => "4",
00287 "eval" => "4",
00288 "exists" => "4",
00289 "GetCookie" => "4",
00290 "getenvvariable" => "4",
00291 "GetNextPageURLKeys" => "4",
00292 "GetPageURLKeys" => "4",
00293 "GetSummary" => "4",
00294 "GetURLKeys" => "4",
00295 "instr" => "4",
00296 "int" => "4",
00297 "isempty" => "4",
00298 "lcase" => "4",
00299 "left" => "4",
00300 "len" => "4",
00301 "log" => "4",
00302 "ltrim" => "4",
00303 "mid" => "4",
00304 "now" => "4",
00305 "print" => "4",
00306 "printhtmlesc" => "4",
00307 "printurlesc" => "4",
00308 "reverse" => "4",
00309 "right" => "4",
00310 "rtrim" => "4",
00311 "setenvvariable" => "4",
00312 "SetContentType" => "4",
00313 "SetCookie" => "4",
00314 "str" => "4",
00315 "strcomp" => "4",
00316 "trim" => "4",
00317 "ucase" => "4",
00318 "undate" => "4",
00319 "urlesc" => "4",
00320 "urlescpath" => "4",
00321 "val" => "4",
00322 "AccessQueryMode" => "5",
00323 "AccessQueryText" => "5",
00324 "Alias" => "5",
00325 "Author" => "5",
00326 "BeginHighlight" => "5",
00327 "ClientHost" => "5",
00328 "ClientSoftware" => "5",
00329 "Cluster" => "5",
00330 "Clusters" => "5",
00331 "ClusterKeywordCount" => "5",
00332 "ClusterCount" => "5",
00333 "ClusterEffort" => "5",
00334 "ClusterOrder" => "5",
00335 "ClusterPageSize" => "5",
00336 "ClusterScore" => "5",
00337 "ClusterStyle" => "5",
00338 "Collection" => "5",
00339 "CollectionName" => "5",
00340 "Comments" => "5",
00341 "Created" => "5",
00342 "Config" => "5",
00343 "Cookie" => "5",
00344 "DefaultList" => "5",
00345 "Description" => "5",
00346 "DocsCount" => "5",
00347 "DocsEnd" => "5",
00348 "DocsFound" => "5",
00349 "DocsSearched" => "5",
00350 "DocsStart" => "5",
00351 "Document" => "5",
00352 "DocumentPrint" => "5",
00353 "Documents" => "5",
00354 "EndHighlight" => "5",
00355 "Ext" => "5",
00356 "Filter" => "5",
00357 "HLBookmark" => "5",
00358 "HLFirstURL" => "5",
00359 "HLNavigate" => "5",
00360 "HLNextLabel" => "5",
00361 "HLPrevLabel" => "5",
00362 "HTMLBodyPrint" => "5",
00363 "HGMLBodyPrintPre" => "5",
00364 "HTMLHeadPrint" => "5",
00365 "Index" => "5",
00366 "Keywords" => "5",
00367 "KeywordSummary" => "5",
00368 "Mime-Type" => "5",
00369 "Modified" => "5",
00370 "Name" => "5",
00371 "NextDocMime" => "5",
00372 "NextDocURL" => "5",
00373 "NextDocXML" => "5",
00374 "NextPageURL" => "5",
00375 "PageNumber" => "5",
00376 "PageURLs" => "5",
00377 "Path" => "5",
00378 "PrevDocMime" => "5",
00379 "PrevDocURL" => "5",
00380 "PrevDocXML" => "5",
00381 "PrevPageURL" => "5",
00382 "QBEDOC" => "5",
00383 "QBE_Key" => "5",
00384 "QBE_Input" => "5",
00385 "QueryMode" => "5",
00386 "QueryText" => "5",
00387 "QueryWeight" => "5",
00388 "QueryZip" => "5",
00389 "Rank" => "5",
00390 "RefinedQueryZip" => "5",
00391 "Request" => "5",
00392 "Result" => "5",
00393 "ResultCount" => "5",
00394 "ResultErrorTemplate" => "5",
00395 "ResultField" => "5",
00396 "ResultMaxDocs" => "5",
00397 "ResultStart" => "5",
00398 "ResultTemplate" => "5",
00399 "Score" => "5",
00400 "ScoreThreshold" => "5",
00401 "ScriptName" => "5",
00402 "SearchURL" => "5",
00403 "ServerHost" => "5",
00404 "ServerKB" => "5",
00405 "ServerPort" => "5",
00406 "ServerURL" => "5",
00407 "Size" => "5",
00408 "Snippet" => "5",
00409 "SortSpec" => "5",
00410 "SourceQueryMode" => "5",
00411 "SourceQueryText" => "5",
00412 "State" => "5",
00413 "StoredKeywords" => "5",
00414 "StoredSummary" => "5",
00415 "Subject" => "5",
00416 "Title" => "5",
00417 "URL" => "5",
00418 "URL_HTML" => "5",
00419 "URL_QBE" => "5",
00420 "URL_XML" => "5",
00421 "ViewTemplate" => "5",
00422 "Web" => "5");
00423
00424
00425
00426
00427
00428
00429
00430
00431 $this->linkscripts = array(
00432 "1" => "donothing",
00433 "2" => "donothing",
00434 "3" => "donothing",
00435 "4" => "donothing",
00436 "5" => "donothing");
00437 }
00438
00439
00440 function donothing($keywordin)
00441 {
00442 return $keywordin;
00443 }
00444
00445 }?>