DownloadRawTest

contents

  1. <?php /* --- ۞---> text { encoding:utf-8;bom:no;linebreaks:unix;tabs:4sp; } */
  2. if (isset($_GET['zoogleimg'])) { zoogleimg(); die(); }
  3. $cz_version = '1.2.1'; // Upgraded for php8
  4. // if grabbing your prefs from a site-wide init, now is the time..
  5. //require_once $_SERVER['DOCUMENT_ROOT'].'/inc/init.php';
  6. /*
  7. Welcome to corzoogle!
  8. the real-time search engine for humans and their documents
  9. (c) copyright corz.org 2004->tomorrow!
  10. v- -v- IMPORTANT -v- -v- -v- -v- FOR WEB SITES -v- -v- -v- -v- IMPORTANT -v- -v-
  11. This software performs REAL-TIME searches on the raw data of your
  12. filesystem. Unlike other search systems which "index" content on a
  13. daily/weekly/manual basis, corzoogle searches LIVE. If a file is
  14. altered and you then search, it will appear in the results
  15. *immediately*.
  16. This live raw searching is good, but you don't want it to happen to
  17. a file with passwords in it. corzoogle comes with THREE ways to
  18. protect your passwords. Firstly whole folders can be excluded..
  19. /includes/ are generally excluded, ironically
  20. You can also exclude specific named files from the search,
  21. "config.php" files spring to mind. Lastly, including the word
  22. "nosearch" *anywhere* in any file (a standard comment is ideal) and
  23. that file will NOT be searched.
  24. All these options are completely configurable in the preferences
  25. section below.
  26. -^- -^- IMPORTANT -^- -^- -^- -^- FOR WEB SITES -^- -^- -^- -^- IMPORTANT -^- -^-
  27. If you're using corzoogle to search your own personal hard drive,
  28. documents, mail archive, research notes, or whatever, you can
  29. probably forget all this stuff and just drop this very file into
  30. whatever folder you want to (recursively **) search. of course
  31. you'll need to have a webserver running to use this. [I kneel in the
  32. church of..] Apache is installed as standard on Mac OS X, most
  33. Linux/*nix/BSD distros, and also real easy to install on Windows
  34. boxes too, unless you're ronnie heh. remember, the smaller the area
  35. corzoogle has to cover, the quicker the search will be, so if you
  36. are using corzoogle to search HUGE (20,000+ docu- ments) archives,
  37. you might want to copy corzoogles into the subfolders for rapid
  38. local searches.
  39. Any web server that can run php should have no trouble. even
  40. [*tssssss*] IIs, I guess. it's "built" into most XP's & win2K's.
  41. untested, syat. Apache runs great on windows, and the Apache team
  42. have done a marvellous job with their Windows binary installers.
  43. Windows users might also want to check out something called "WAMP".
  44. With a webserver running on your desktop machine, corzoogle doubles
  45. up as a rapid real-time 'desktop' search engine. Handy.
  46. Feel free to mail me about anything corzoogle-related, putting
  47. 'corzoogle' somewhere in the subject header appeases my shitlist
  48. daemon.
  49. hey! it's cz!
  50. ;o)
  51. ** .. and all the folders inside it, and inside them, and so on.
  52. ps.. hoping you might find customisation desirable, I've designed
  53. and coded corzoogle considering readablility over cleverness,
  54. although there are a couple of clever bits, too.
  55. If you are new to php, maybe even if you're not, there's probably
  56. something of value in my copious commantage. some gags, too. most
  57. importantly, the routines are designed for speed. if something ugly
  58. is faster than something cute, we go with ugly. with a built-in
  59. timer, it's easy enough to test even minute performance variations.
  60. if you see something slow, let me know!
  61. FINAL NOTE: error_reporting is OFF by default. this saves us some
  62. potential needless headaches, but also, of course, means that if for
  63. some reason you can't get corzoogle working, you won't know why!
  64. It's unlikely, but if you ever need to enable error reporting,
  65. search for :errors: in this file and uncomment that line. Then MAIL
  66. ME the error!
  67. If you want a version with loads of debug output lines included,
  68. drop me a mail. This would not only help you, but me!
  69. Then, with my debugger handy, you have the option to spew out wads
  70. of debugging information, which while slowing down your searches,
  71. could prove invaluable in pinning down any server issues you might
  72. be experiencing.
  73. */
  74. //*> Preferences..
  75. //*> Security Prefs..
  76. /*
  77. Ignore Folders
  78. The important IGNORE folders. Their contents will NOT be searched. Security
  79. aside, this is useful for avoiding image galleries, smilie folders,
  80. etcetera. but you may wish to search for filenames in these places, so it's
  81. up to you..
  82. */
  83. $ignore_folders = 'err,inc,includes,cgi-bin,private';
  84. /*
  85. You only need to enter one instance of 'inc', (for example) to cover every
  86. 'inc/' folder in your entire website.
  87. NOTE: You do not need to add slashes to the start or end of each entry,
  88. though it will do no harm if you do.
  89. ALSO NOTE: You can be more specific, too, eg. 'tools/secret'
  90. */
  91. /*
  92. Filenames to NEVER search inside, anywhere, ever.
  93. */
  94. $private = 'config.php,robots.txt,links.php,readme.html,--Slideshow--.php,--Thumbs--.php'; // <-------‹‹ !!:!:!! IMPORTANT !!:!:!!
  95. /* This is especially for files which would normally be *allowed* by
  96. their $extensions, like config.php files */
  97. // :!: note: invisible files (beginning with a dot '.') are NEVER searched :!:
  98. /*
  99. putting "nosearch" (no quotes) anywhere inside a file means it will NOT be scanned */
  100. $dont_search = 'nosearch';
  101. /*
  102. ..or some other word or phrase of your choosing.
  103. A simple html comment.. <!-- nosearch --> ..is ideal. CaSe must mach
  104. exactly. obviously, the file you are reading now will never appear in your
  105. search results. of course, in reality, most all of these files are searched
  106. otherwise, how would we know which ones to *display*?
  107. */
  108. /*
  109. Allowed File Extensions..
  110. File types to search inside.
  111. Separate extensions with a comma, the dot "." is not required.
  112. */
  113. $extentions = 'htm,html,txt,phps,php,php4,php3,blog,comment,nfo,ino,h,au3,pl,sh,bat,conf';
  114. /*
  115. You can include extensions for any file which has searchable content.
  116. You can also add the "gz" extension, and have corzoogle examine inside
  117. gzipped pages/archives (note: there is a slight speed penalty for this).
  118. */
  119. //*> Search Preferences..
  120. /*
  121. searching will stop after this many results.
  122. default: $max_hits = 200;
  123. */
  124. $max_hits = 200;
  125. /*
  126. perhaps I will add a message along the lines of..
  127. "consider narrowing your search by using more search terms"
  128. /* search between..
  129. [optional] default: $search_between = array('<body','</body>');
  130. by default, corzoogle will search for content anywhere between the <body> and </body> tags.
  131. you can alter this behaviour here, perhaps broadening searches to <html></html> tags, or
  132. whatever you like. you could even make up your own <start-search><end-search> tags. using the
  133. <html></html> tags will always get you more hits, generally, but will degrades the quality of
  134. the results both at the search and result presentation stages.
  135. This works independently of title scoring and descriptions. note: no closing '>' on the
  136. first entry. this is important, particularly for body tags, which sometimes have extra
  137. parameters. <tr> and <div> also come to mind.
  138. if a file doesn't have this tag (and it's allowed by its extension, like a plain text file),
  139. then the whole file is searched. comment out to disable search_between altogether.
  140. */
  141. $search_between = array('<title', '</body>');
  142. // note: you can mix tags.. $search_between = array('<title','</body>'); for instance
  143. /*
  144. this means "Search Between Tag is Case Insensitive". it's around 3% slower, but if you
  145. have a mix of case in the html tags of your documents (*tsss*) you can enable this
  146. */
  147. $sbtici = false; // (true/false) default: $sbtici = false;
  148. /* you can leave the above at "false" generally, if you are searching between
  149. <body></body> tags and some document has <BODY></BODY> tags instead,
  150. corzoogle will just search the whole thing
  151. */
  152. /*
  153. or you can tell corzoogle to ONLY search documents that contain your
  154. $search_between tags. enable this only if you understand the implications,
  155. particularly if you (like me) split you page structures and body content
  156. into separate files, the one with the <body> tags may have no content! this
  157. is highly useful if you utilise custom search_between tags, or want to limit
  158. your searching to only particular kinds of content, however. */
  159. $enforce_between = false; // (true/false) default: $enforce_between = false;
  160. /* filename searching..
  161. [optional] default: $do_filenames = true;
  162. corzoogle can return matches for filenames, too. users only need to
  163. include a word with a dot "." to invoke this filename-searching
  164. behaviour. searching for..
  165. download.php
  166. would return a list of all documents containing the term "download.php"
  167. as usual, but also an additional list of *files* matching
  168. "download.php".
  169. secure index.php
  170. would return documents containing the words "secure" AND "download.php",
  171. and the very same list of matching files as our last query. most likely
  172. successful file-name searching will be best achieved with single terms..
  173. security.txt
  174. you can use wildcard file matching too. a search for..
  175. .html
  176. will return a list of all files matching .html, in other words, all html
  177. files in corzoole's search zone, or any file that contains the term
  178. ".html" in its name. it works the other way too, a search for..
  179. html.
  180. achieves exactly the same file search result, though probably with a
  181. great deal less regular page hits above it. this is useful when
  182. searching *only* for matching filenames.
  183. To invoke this file searching behaviour, all you do is add a dot!
  184. This directive also affects the +10 bonus that hits get for matching
  185. each query string in their file name, which is a nice touch. A search
  186. for "security" would match all documents containing that word, but push
  187. those with the words "security" *anywhere* in their file name a little
  188. closer to the top of the pile. 3 matching terms in the filename would be
  189. +30, etc. You can set the bonus here too.
  190. */
  191. $do_filenames = true;
  192. $filename_bonus = 10;
  193. /*
  194. If you like, you can have corzoogle *always* return matching file names.
  195. This is by request.
  196. */
  197. $always_filenames = false;
  198. // If $always_filenames is true, shall corzoogle automatically place the dot
  199. // before or after the query? This won't affect the number of file hits returned,
  200. // but will affect the regular results. See above for details?
  201. $anf_hack_after = true;
  202. /*
  203. scoring prefs (ranking) ..
  204. corzoogle ranks hits by the frequency of search terms contained within the document if
  205. the user inputs multiple terms, the search is narrowed down to documents containing ALL
  206. the terms. In other words, "boolean AND".
  207. you can use individual boolean NOT's, for instance..
  208. mac osx sudo box -apple -madness
  209. searches for words containing "mac" AND "osx" AND "sudo" AND "box", but will NOT
  210. return any hits for documents containing the word "apple", or the word "madness".
  211. simple scoring:
  212. each term scores 3 points per occurrence. in a search for..
  213. mac osx sudo box
  214. a document containing nine instances of the word "mac", six instances of the
  215. word "osx", and three instances each of the words "sudo" and "box, would score..
  216. (9*3)+(6*3)+(3*3)+(3*3) = 27+15+9+9 = 63
  217. this simple scoring may be just what you need, but corzoogle's default is to use..
  218. weighted_scoring..
  219. [need] default: $weighted_scoring = true;
  220. */
  221. $weighted_scoring = true;
  222. /*
  223. with weighted scoring the earlier words score more heavily..
  224. that same search now scores (9*4)+(6*3)+(3*2)+(3*1) = 36+18+6+3 = 60. not 63. read on..
  225. "mac"'s score is capped at $q_word_max (default is 33, set below). no one single
  226. word can score more than $q_word_max points (in either simple or weighted scoring mode)
  227. if there had been fifty hits for "mac", it still would have scored 33 points.
  228. so the actual score is 60.
  229. if someone had searched for the same terms in *this* order..
  230. sudo box mac osx
  231. that same document would have scored (3*4)+(3*3)+(9*2)+(3*1) = 12+9+18+3 = 42
  232. normally the first term scores 4, the second 3, and so on until all terms
  233. score one point.
  234. You can set a higher weight here..
  235. */
  236. $search_weight = 4; // (integer) default: $search_weight = 4;
  237. /*
  238. individual query term scoring continues up to a maximum of this amount..
  239. (integer) default: $q_max_score = 100;
  240. */
  241. $q_max_score = 100;
  242. // if you lower this right down, "phrases" will get higher ranking.
  243. // between these few numbers you can completely control your results ranking.
  244. /* regardless of any scoring prefs, exact case-sensitive word matches always scores
  245. an additional 1 point bonus. this is in addition to max scores. if two documents
  246. contain the exact number of matched terms, the one with an exact case-sensitive
  247. match will always pip the other at the post. */
  248. /*
  249. you can also set the value that one single word can achieve in the results. works
  250. in simple or weighted mode. default is one third (33%) of $q_max_score. depending
  251. on your document content, you may want to adjust this, anything in the 20-60%
  252. works well. 33% is good for general usage. if you are doing a lot of single-word
  253. queries, or are using a large $search_weight, you might want to set this a wee bit higher.
  254. */
  255. $q_word_max = 33; // (integer) default: $q_word_max = 33;
  256. /*
  257. which is a simple cap, set to prevent runaway terms from affecting the results too
  258. much. the examples above were cleverly chosen to produce the same results in both
  259. modes. nah, it was just a "coincedence".
  260. although we do check for "stop-words" (common words like "the", "and", etc), in
  261. reality, users don't input these kinds of words, mostly they are genuinely
  262. searching for real documents!
  263. you can choose your own stopwords here, too.
  264. */
  265. $stop_words = array ('' // some of these are probably not necessary
  266. ,'&nbsp;',';o','a','A','all','and','are','as', 'at','be','but','by','can','do','don\'t'
  267. ,'for','got','have','he','here','I','in','if','is','it','like','me','my','n','no'
  268. ,'o','of','on','one','or','out','she','so','t','than','then','that','that\'s'
  269. ,'the','The','there','there\'s','these','this','to','too','was','we','with','you'
  270. );
  271. /*
  272. if any of these stop-words are removed from the search, it will be reported back
  273. to the user (optionally). try a few and you'll see. remember to "escape"
  274. (put a backslash in front of) all single quotes inside stop-words here,
  275. 'won\'t', for instance. or else use double-quotes around those ones..
  276. "won't", "can't", etc /* I still can't decide which is faster, single or
  277. double quotes. my brain says
  278. single quotes should *always* be faster, as there's less to check for. hmmph. */
  279. // report stop words removed from search (handy for debugging, perhaps)
  280. $report_stop_words = true;
  281. // NOTE: stop-word reporting is only enabled when phrase matching is disabled..
  282. /*
  283. phrase matching..
  284. */
  285. $match_phrases = true; // (true/false) default: $match_phrases = true;
  286. /*
  287. If the original query is a phrase (two words or more), and all the terms exist in a
  288. document, it is then checked for matching "phrases"
  289. searching for..
  290. Wonkey Man Mac
  291. matches "and I came upon The Wonkey Man Machine and gasped like a silly monkey"
  292. jackpot! whole query phrase exists *in entirety* inside the document,
  293. with the exact SaMe cAsE..
  294. bonus = 20% + (10% * per query term in phrase) = 20% + 30% = 50%
  295. exact matching query phrase of three words, this is a good match.
  296. wonkey man mac
  297. (a case insensitive match) scores 10% + 5%/term = 25%
  298. the longer the matching phrase, the bigger the extra bonus. all these
  299. scores are relative to..
  300. $phrase_max_score
  301. (integer) default: $phrase_max_score = 50;
  302. */
  303. $phrase_max_score = 50;
  304. /*
  305. this scoring element is in *addition* to $q_max_score, and is in itself a
  306. *relative* score, read on ...
  307. */
  308. /*
  309. titles scoring..
  310. (true/false) default: $title_scoring = true;
  311. IMPORTANT:
  312. unlike query term scoring, these scores are *not* caps. The numbers given in the examples
  313. below are correct at the default of $title_max_score = 100; If you alter $title_max_score,
  314. you also alter those values, in other words, title scores are *relative* to whatever maximum
  315. value you set here.
  316. This enables us to set a convenient body-to-title ratio, adjusting the level of importance,
  317. or "weight" of either aspect, depending on what _you_ need. you could set this so even the
  318. best matching titles add only another 20, or make title searching THE most important factor,
  319. setting it to 150, 200, or more.
  320. this is how corzoogle scores a document for its document <title>..
  321. if the whole query string is a phrase (two words or more) and matches the title
  322. even in part, (case in-sensitive match), the document scores +20
  323. if that same query string also matches the entire title *exactly* in a case-
  324. insensitive manner, a further 60 points are awarded (80 for this title)
  325. OR
  326. title and query match *exacitaly*, CaSe AND Length, so it's +80. (maxed!)
  327. OR (no "phrases" found)..
  328. the page scores +10 for each query term that's in the title *somewhere*
  329. in a search for..
  330. Mac Madness on Mars
  331. a document with the title "mars madness for your macintosh" would score +30
  332. a document with the title "The mac madness on Mars" would score +80
  333. a document with the title "Mac Madness on Mars" would score +100
  334. */
  335. $title_scoring = true;
  336. /*
  337. you can set the maximum score (weight) a <title> can achieve. default is 100
  338. */
  339. $title_max_score = 100;
  340. /* score all titles..
  341. (true/false) default: $score_all_titles = false;
  342. by default, corzoogle will only take titles into consideration if there has already
  343. been a match in the body of the document (or whatever you have set it to $search_between)
  344. a document's <title> will only be scored if it has already been matched by its content.
  345. if you are searching between <body> tags, the header part of the document simlply wont
  346. be scanned for matches unless there has been FULL match somewhere in the body content of
  347. the document (and that means ALL terms in a multiple query).
  348. only documents that are hits because of matching <body> content will be scrutinized for
  349. their title content, then scored and weighted according to its relevance, again giving
  350. the possibility of more fine-tuned results.
  351. if you want, you can direct corzoogle to look at ALL titles, regardless of whether
  352. there was a body text match or not. if this is set to true, even a single term from a
  353. multi-term query will trigger a hit. in some searches there will be a small (2-3%)
  354. performance penalty for this, but if you need to score all titles, here you go..
  355. */
  356. $score_all_titles = false;
  357. /*
  358. Content As Title
  359. default: $contents_as_title = false;
  360. under certain circumstances, you may want to have corzoogle use the body of the
  361. text as the title for the hit, rather than its filename. This only comes into effect if
  362. the document has no "real" title, and you have set $score_all_titles = true; (above)
  363. this may be useful where you have a lot of text files with intelligible titles.
  364. */
  365. $contents_as_title = false;
  366. /*
  367. "content as title" length
  368. default: $cat_length = 33;
  369. The title will truncate at this point.
  370. */
  371. $cat_length = 33;
  372. /*
  373. note: in the absence of a <title> tag, the filename acts as the document's title
  374. */
  375. /* show scores
  376. (true/false) default: $show_scores = false;
  377. mainly for debugging and tweaking your scoring system. fairly ugly
  378. */
  379. $show_scores = false;
  380. /*
  381. Search inside php/html tags?
  382. You can choose to not search for text inside html/php elements..
  383. if you are using corzoogle as an onsite "grep", set this to true.
  384. setting to false will generally speed up searches for words like "bottom"
  385. but slow down most other searches slightly.
  386. NOTE: this isn't 100% foolproof. If you have a document with malformed tags
  387. corzoogle (or rather, the php strip_tags function) will err on the side of
  388. caution, and search inside it, ignoring it's tagness, but not always.
  389. this relies on the built-in php tag stripping mechanism which can sometimes
  390. have *unexpected results*.
  391. If your document contains unencoded < and > characters, this will fail.
  392. note AGAIN: this IS NOT 100% foolproof!
  393. If documents are inexplicably not showing up in results where you expect
  394. them to, this is probably the cause. So set it to true. The 'snippets' will
  395. still have the tags stripped from them.
  396. */
  397. $search_in_tags = false;// (true/false) default: $search_in_tags = false;
  398. // (we'll see!) $allowed_tags = '<pre>';
  399. $allowed_tags = '';
  400. // really, I need to write my own tag-stripping mechanism, the built-in one
  401. // sometimes makes a right mess! (actually, it's getting better these days)
  402. //*> Results Preferences..
  403. /*
  404. A note about how disabling search_between can alter results..
  405. Contrary to what one might imagine, disabling search_between can wildly
  406. alter the quality and quantity of your results. it all depends on how your
  407. pages are designed, and wether or not you enable $search_in_tags (further
  408. down the prefs). when you disable $search_between, corzoogle always scans
  409. the whole document.
  410. Consider this.. you have a php document, and the whole page is contained
  411. within it, the html being output by "echo" commands. if you are searching
  412. between <body> tags, corzoogle will find those and do as you expect. if,
  413. however, you disable $search_between, you are asking corzoogle to scan the
  414. entire document. as the whole document is inside one big <?php tag, if you
  415. also disable $search_in_tags, the document will be ignored in its entirety!
  416. outputing whole documents with echo commands isn't very clever, but still,
  417. folks do it. they'd be better served moving the html to another file and
  418. "including" it. easier to edit too. armed with this information you can
  419. better tweak your searching. also consider custom $search_between tags.
  420. */
  421. /* Show recent searches..
  422. (true/false) default: $recent_hits = true;
  423. whether to allow "most recent searches" at the foot of the results page.
  424. this is fun, you can see what folks have been searching for. creates live
  425. links, the unfollowed ones being "other people's" searches. interesting
  426. data. I might make it "random recent searches"
  427. */
  428. $recent_hits = true;
  429. /*
  430. :!: to do this, corzoogle creates a file called ".corzoogles" in the same
  431. folder as this file. If the folder doesn't have write access (likely), you
  432. will get an error. The error message will guide you into the solution.
  433. Probably the best method for "live" sites would be to create the file
  434. locally (by simply corzoogling once) and then upload the ".corzoogles" file
  435. to your website, chmod it to 777 (or use FTP client to set its write
  436. permissions to ALL)
  437. */
  438. /*
  439. how many recent hits?
  440. we only want to show 'so many' past hits
  441. default: $hits_length = 80; (enough hits to fill 80 characters)
  442. coupled with the "recent-hits" css style, you can pretty much create
  443. any effect here, position them elsewhere on the page, etc..
  444. */
  445. $hits_length = 80;
  446. /*
  447. hits file
  448. [file path] default: $hits_file = '.corzoogles';
  449. Where to store the recent his information.
  450. By default, it's a file called ".corzoogles" in the same directory as
  451. corzoogle.php, but you can change that here, perhaps to your temp
  452. directory.. $hits_file = '/tmp/.corzoogles';
  453. NOTE: YOU MUST USE THE FULL SYSTEM PATH!!!
  454. i.e. if your site *actually* lives in /var/www/vhosts/mysite/httpdocs/ and
  455. you want your hits file in your https://mysite/inc/log/ folder, you would
  456. use..
  457. $hits_file = '/var/www/vhosts/mysite/httpdocs/inc/log/.corzoogles';
  458. If you are using the system's temp folder, note two things:
  459. * it may be periodically cleaned out by the system, and your recent hits
  460. could occasionally reset - no biggie, and..
  461. * on a shared server, there may be other corzoogle users, so it's a
  462. good idea to use a unique name, like .ht_mydomain_corzoogles
  463. */
  464. $hits_file = '.corzoogles';
  465. // Use rel=nofollow on these links?
  466. $no_follow_recent_hits = true;
  467. /*
  468. use preview snippets.. [default: $use_snippets = true;]
  469. corzoogle grabs previews from the body of the text, one for each search
  470. term, and strings them all together to create a nice preview snippet. this
  471. is good.
  472. */
  473. $use_snippets = true;
  474. /*
  475. Snippet Length
  476. The total length of the preview can be configured here. the default is 300.
  477. small is best. this remains constant regardless of the number of query
  478. terms; corzoogle will grab a small chunk of text from the query term
  479. onwards.
  480. If there were five words in the query, it will create five snippets, each (
  481. $snippet_length / 5 ) characters long and join them together.
  482. */
  483. $snippet_length = 300;
  484. /*
  485. Descriptions in result text.. [bool][default: $use_descriptions = true;]
  486. If a <description> meta tag exists in the document, we can optionally
  487. instruct corzoogle to display it directly between the title and the preview
  488. snippet of each result.
  489. */
  490. $use_descriptions = true;
  491. /*
  492. Highlight Exact Hits [bool][default: $highlight_exact_hits = false;]
  493. add fairly ugly highlights to exact case-matched words in the preview..
  494. If you searched for BigBob, then "bigbob" and "BIGBOB" are still hits, of course,
  495. and get their usual coloring in the preview, but "BigBob" gets a yellow highlighter-
  496. pen type mark through it. *eew*
  497. */
  498. $highlight_exact_hits = false;
  499. /*
  500. Preview has "context" [bool][default: $preview_has_context = true;]
  501. Normally we return the preview snippet starting directly at the query term.
  502. In a search for "mac", the preview might begin.. "mac news and information.
  503. this is the most up-to-date...".
  504. If we set this to true, the preview snippet begins *before* the query, and
  505. the query is placed some way into the snippet, so now the same result might
  506. read.. "click here for the latest mac news and information. this is the most
  507. up-to-date..." which gives the result some context, aids clarity.
  508. */
  509. $preview_has_context = true;
  510. /*
  511. Clean-Up Entities.. [bool][default: $clean_entities = true;]
  512. Attempt to clean up entities inside the snippets - helps if you like your
  513. results to validate no matter how messed up the searched documents are! Will
  514. use utf-8 encoding, where available.
  515. */
  516. $clean_entities = true;
  517. /*
  518. Note: if you run a non-english site, this may or may not preserve the
  519. character encoding, depending on which version of php you run. Suck it and
  520. see.
  521. By default, corzoogle presents the query term one quarter of the way into
  522. the snippet. this is expressed as 1/4, so the context ratio is 4. If you'd
  523. like the term to appear earlier in the snippet use 5 or 6. To have the term
  524. appear exactly half way through the snippet, use 2.
  525. Because of the law of diminishing thingamybobs, it is impossible to get the
  526. query term to appear right at the start by using some HUGE number**, just
  527. make $preview_has_context = false!
  528. */
  529. $context_ratio = 5;
  530. // ** well, maybe a Really Big Number!
  531. /* Deepness: [bool][default: $deepness = false;]
  532. If you are running corzoogle inside a subfolder of the web server, but want to
  533. search from the dir ABOVE that, you can specify that here. Your results will
  534. be a adjusted accordingly. (dir = directory = folder)
  535. remember: specifying deepness means you search from the dir ABOVE the dir that
  536. corzoogle.php lives IN THE REAL FILE SYSTEM, symbolic links are followed.
  537. */
  538. $deepness = false;
  539. /*
  540. okay, deepness examples..
  541. 1) I have a server.. "soho" (http://soho) .. this is a local webserver. In
  542. it I have a copy of the php documentation, in a folder called "phpman". I
  543. want to search only in the documentation
  544. $deepness = false;
  545. corzoogle URL = http://soho/phpman/corzoogle.php
  546. 2) Same server, I have a virtual host called "dev", inside that I have a
  547. folder called "search". I have renamed corzoogle to "index.php" and dropped
  548. it into the "search" folder. I want to search from http://dev (more
  549. exciting developer documents)
  550. $deepness = true;
  551. corzoogle URL = http://dev/search/
  552. 3) I have a virtual host called "corzorg" (http://corzorg) and I want to
  553. search it ALL
  554. $deepness = false;
  555. corzoogle URL = http://corzorg/corzoogle.php
  556. Hopefully that makes things clear
  557. :!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!:
  558. :!: you can drop corzoogle into ANY folder at ANY depth and it will, by default, produce :!:
  559. :!: correct results, correct URL's. "deepness" is only needed for searching from ABOVE. :!:
  560. :!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!:
  561. I just thought I'd do a cute notice box.
  562. /*
  563. embedded "corzoogle" image [string][default: $logo = 'embedded';]
  564. Lots of folks don't realise that the image is embedded *inside* this script.
  565. yes, this is funky, and does make corzoogle totally portable. however, if
  566. you run corzoogle on a live website, remember, the image is generated for
  567. *every* hit on corzoogle.php.
  568. In other words, using a static image is preferable for live web sites
  569. (download one from my site, or save it from any corzoogle page).
  570. This way, the user's web browser cache will keep the image handy, save you
  571. some bandwidth and CPU. Sure, not a lot, but it all mounts up. It will also
  572. appear quicker to the user. On a local site/intranet, this isn't an issue.
  573. Options are 'embedded' or '/path/to/image.png'..
  574. $logo = 'embedded';
  575. $logo = '/img/corzoogle_sm.png';
  576. */
  577. //$logo = '/img/corzoogle_sm_blue.png';
  578. $logo = 'embedded';
  579. /*
  580. Show user options?
  581. Currently there are options for:
  582. Match whole words.
  583. */
  584. $do_user_options = true;
  585. /*
  586. User Option: Return only matching WHOLE Words.
  587. If you search for "prefer", you will get results back for documents that
  588. contain "preference", "preferred" and so on. If you prefer, you can have
  589. corzoogle return only hits for matching whole words.
  590. Depending on your site's content, this may be more useful.
  591. If you don't want to enable your users to search for only whole words, set
  592. this to false */
  593. $option_whole_words = true;
  594. /*
  595. You can also override this behaviour and disable the whole_word option in
  596. the process.. with this set to true, the previous setting is ignored. You
  597. can still have user options, but "whole words" will not be among them. Set
  598. to false to enable the user to choose.
  599. */
  600. $always_whole_words = false;
  601. /*
  602. Currently Whole Words is the only user option, so these two preference are
  603. redundant.
  604. */
  605. //*> File preferences..
  606. /*
  607. Extension Mangling
  608. Let's say you have a php site, and you keep your content in files ending
  609. .htm, but if they are accessed directly, you redirect (with htaccess) to the
  610. php container page. now you can have corzoogle alter the extension for you,
  611. so the link goes directly to the php file.
  612. Another use is for file.php.comment files, rather than the raw comment file,
  613. you want the user to load the page it is attached to. It is also handy for
  614. sending hits for index.php, /readme.htm and /header.html and such to plain
  615. "/". Uncomment to use this feature..
  616. */
  617. //$mangle = array( '.htm'=>'.php', '.php.comment'=>'.php#comments');
  618. // note the double extension on the third entry. handy!
  619. // also note, mangling doesn't operate on your ".blog" files, if you use that.
  620. /*
  621. corzblog..
  622. If you run corzblog (my blogging system) and want your blogs and blog
  623. archives to be searchable (or at least, have corzoogle return valid links to
  624. them) alter this to whatever extension you use for your blogs, usually
  625. '.blog'
  626. */
  627. $blog_file_name = 'blogz.blog';
  628. /*
  629. corzoogle can translate a file hit such as..
  630. /blog/arc/2003-nov.blog
  631. into..
  632. /blog/index.php?archive=2003-nov
  633. you could use this mechanism for other generated pages, too, but you'd
  634. need to slightly alter the code inside the look_in_file function.
  635. Perhaps plug-ins are in corzoogle's future!
  636. Enter the name of blog archive directory (inside blog folder)..
  637. */
  638. $arc_name = 'arc';
  639. /*
  640. Blog Flat Links?
  641. Are you using corzblog's flat-links capability (with mod_rewrite), enable this.
  642. The above link would then be: /blog/2003-nov
  643. */
  644. $blog_flatlinks = true;
  645. //*> Hosting Preferences..
  646. /*
  647. Embedded corzoogle! [bool][default: $embedded = false;]
  648. It's always been easy enough to run corzoogle from inside another page, but
  649. now it's even easier! just set this to true, and include corzoogle in your
  650. page...
  651. include 'corzoogle.php';
  652. Remember to enclose in php tags if it isn't already.
  653. corzoogle will return its results in the same given space. Remember to set
  654. "deepness" if you are in a sub-folder of your site, e.g..
  655. https://mysite.org/search/index.php
  656. And also to use a *real* image for your logo, or else the logo will be
  657. disabled. You might also want to do some (small) CSS for the "#description"
  658. text.
  659. */
  660. $embedded = false;
  661. /*
  662. Page Styles
  663. If NOT running embedded, you will probably want to include some styles sheets.
  664. A sample is included.
  665. */
  666. $page_styles = 'corzoogle.css';
  667. /*
  668. NOTE:
  669. You can include multiple sheets, separating them with commas, e.g..
  670. $page_styles = '/styles/site.css,corzoogle.css';
  671. */
  672. /*
  673. Bottom Fix Styles
  674. corzoogle can include an extra sheet on pages where there is less than
  675. a standard "page" of output, which is to say, the main search page, and
  676. a results page with less than three $bfix_limit (next pref) hits returned.
  677. */
  678. $bfix_styles = '/inc/css/bfix.css';
  679. /*
  680. Bottom Fix limit
  681. */
  682. $bfix_limit = 3;
  683. // more results than this gets the regular styles.
  684. /* Site Notice.
  685. You can put a notice under the corzoogle search form if you like.
  686. This only appears on the front page, not with the results.
  687. The css style (class) is named "corzoogle-notice".
  688. As well as site notices, it's a fine place to put search tips!
  689. (note: corzoogle tips are syndicated - feel free to include!)
  690. */
  691. $notice = '';
  692. /*
  693. Custom Site Header (for when not embedded).
  694. Enter the FULL path, e.g. $_SERVER['DOCUMENT_ROOT'].'/inc/header.php'
  695. Leave empty to disable.
  696. */
  697. $custom_header = '';
  698. // Custom Site Footer (for when not embedded)..
  699. // Leave empty to disable.
  700. //
  701. $custom_footer = '';
  702. // If you wish to support old IE browsers, you can include an HTML5 shiv..
  703. // (leave blank to disable)
  704. $html_js = ''; //$html_js = '/inc/js/html5.js';
  705. /*
  706. This should be fine as is. You might know better.
  707. This is used for checking referrer information (for hot-linking)
  708. and also for building the file-paths of $filename matches..
  709. */
  710. $domain = $_SERVER['HTTP_HOST'];
  711. /*
  712. Hot-Linking. FALSE! FALSE! FALSE!!! okay, maybe true.
  713. You can even *allow* hot-linking, if you like (crazy person)..
  714. I'm easing up about this. it's not so bad, you know, folks could search
  715. your content from other sites. why not! okay dammit, true it is..
  716. */
  717. $allow_hot_link = true;
  718. /*
  719. if you do *not* allow hot-linking, what message will be displayed
  720. when someone attempts to hot-link? .. */
  721. $hot_link_message = 'thanks for droppping by!';
  722. /* Search Redirection..
  723. [optional] default: $redirect = false;
  724. By default, corzoogle sends the queries to itself, of course.
  725. Optionally, you can have corzoogle redirect your queries to another corzoogle
  726. engine, even one existing in a different domain or website. (that you own)
  727. Remember, if the receiving corzoogle engine is in a different domain from the
  728. sending corzoogle, you must allow hot-linking at the receiving end.
  729. */
  730. $redirect = false;
  731. $redirect_to = 'https://'.$domain.'/physics/search/index.php';
  732. /* Of course, a simple form would suffice!
  733. See inside echoform() for more details */
  734. /*
  735. Notify web master on searches [bool][default: $notify = false;]
  736. Someone asked for this, a nice idea if you are one of those webmasters who
  737. *really cares* about their visitors. email the webmaster on every search.
  738. let me know if you want more features here currently corzoogle will report
  739. what was searched for, and the number of hits they got.
  740. */
  741. $notify = false;
  742. /*
  743. Mailer Line-Breaks [default: $mail_lb = PHP_EOL;]
  744. What a pain, having to specify this.
  745. Normally we use full windows (\r\n) linebreaks between (additional) x-headers
  746. (when using postfix php wrapper you might be better to use PHP_EOL, to work
  747. around a bug there) we always use regualar UNIX \n linebreaks for body text.
  748. */
  749. $mail_lb = PHP_EOL;
  750. /*
  751. Notification Mail Prefs..
  752. You might need to mess about with this.
  753. The mail function will insert this into the mail..
  754. The search query was.. "<search query here>" [XX hits]
  755. */
  756. $to_addy = "me@example.com";
  757. $from_addy = "corzoogle@example.com";
  758. $email_subject = "corzoogler!";
  759. $email_body = "There has been a new corzoogle search! @ https://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."\n\n";// optional information..
  760. $email_body .= "Their IP was: ".$_SERVER['REMOTE_ADDR']."\n";
  761. $email_body .= "Their Browser was: ".@$_SERVER['HTTP_USER_AGENT']."\n";
  762. // it's usually best to limit extra headers to only one or two lines
  763. $xmail_headers = 'X-Mailer: corzoogle realtime search engine v'.$cz_version.' (php v'.phpversion().")".$mail_lb;
  764. //$xmail_headers .= "Reply-To: $from_addy".$mail_lb;
  765. /*
  766. bot hits (they follow our "latest hits", too.)
  767. if the user agent is in this list, the webmaster won't get notified
  768. $nomail_list = array(
  769. 'ai_archiver',
  770. 'almaden.ibm.com/cs/crawler',
  771. 'ia_archiver',
  772. 'Ask Jeeves/Teoma',
  773. 'BecomeBot',
  774. 'ConveraCrawler',
  775. 'Exabot@exava.com',
  776. 'FAST Enterprise Crawler',
  777. 'Feedster Crawler',
  778. 'FeedValidator',
  779. 'findlinks/',
  780. 'gazz/',
  781. 'Gigabot',
  782. 'Girafabot',
  783. 'globalspec.com/Ocelli',
  784. 'googlebot',
  785. 'Jetbot',
  786. 'larbin_',
  787. 'msnbot',
  788. 'NG/2.0',
  789. 'nhnbot@naver.com',
  790. 'slurp',
  791. 'statbot@gmail.com',
  792. 'Syndic8',
  793. 'Yahoo-MMCrawler',
  794. 'YahooFeedSeeker',
  795. 'ZyBorg'
  796. );
  797. */
  798. // alternatively, you can use an external list.
  799. // uncomment this line and enter the full path from your server root..
  800. //$nomail_list = '/inc/data/bot_agents.txt';
  801. // The bot list is a simple plain text list of strings that will match bots separated by
  802. // UNIX "\n" line breaks. At corz.org, other scripts also consult this list.
  803. // NOTE: You can use regular expression in your entries, e.g. to match a bot string from the start,
  804. // use a start of line anchor, e.g.. ^BlackWidow
  805. /*
  806. :!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!:
  807. :!: You are finished here now, please save this file and corzoogle for "pass" to :!:
  808. :!: see if any of your passwords turn up. No really, please do that right now! :!:
  809. :!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!::!:
  810. That's it!
  811. I hope you enjoy using corzoogle as much as I do!
  812. for now..
  813. ;o)
  814. *///:end: of ordinary user preferences
  815. //*> Debugging Prefs..
  816. /*
  817. report no errors.
  818. I made this the default, saves email.
  819. :!: on real live webservers, PHP error reporting should ALWAYS be OFF, but
  820. amazingly, often isn't. You can set this in your scripts, or in your root
  821. .htaccess file. You'll definitely want to enable error *logging* instead.
  822. */
  823. // error_reporting(0); // the default for all real production servers.
  824. //error_reporting(~0); // :errors: for debugging, uncomment this AND PLEASE MAIL ME THE OUTPUT!
  825. /*
  826. Display All Paths
  827. Have corzoogle spit out every folder it has searched inside.
  828. For debugging only!
  829. */
  830. $display_path = false;
  831. /*
  832. Maximum Execution Time
  833. For HUGE sites/archives (TB's), use whatever you like.
  834. (we are waiting for the filesystem to do a *full* text search)
  835. On sites/regular sized archives (say, under 5000 documents), you can usually
  836. ignore this, generally, times will be in the 0.01s-1.0s range, well within
  837. php's default of 30 seconds.
  838. Even my home dev server (an old laptop) can corzoogle 5000 documents
  839. in under .5s!
  840. */
  841. ini_set ('max_execution_time', 60);
  842. /*
  843. Safe Level
  844. This has nothing to do with security default: $safe_level = 0;
  845. Normally, you wont ever need to touch this setting, but if you are having
  846. trouble getting corzoogle to work on your site, you could try increasing
  847. this number to 1 or 2 and see if that fixes it. Generally there will be
  848. slight performance losses for enabling these safety features. At any rate,
  849. switch on error reporting and send me a copy of any errors you get. ta.
  850. */
  851. $safe_level = 0;
  852. //*> End Preferences
  853. /*
  854. okay, let's shake this thing.. */
  855. //*> Begin..
  856. ob_start();
  857. if ($use_utf8 = true) ini_set('default_charset','utf-8');
  858. global $corzoogle, $qc, $q_scored;
  859. $score = $hit_name = array();
  860. // Get user prefs into shape..
  861. $extentions = array_flip(explode(',', $extentions));
  862. // we flip it so we can use isset($extensions[extension]), which is waaaay faster than using in_array()
  863. $ignore = explode(',', $ignore_folders);
  864. $ifc = count($ignore);
  865. for ($i=0; $i < $ifc; $i++) {
  866. $ignore[$i] = '/'.trim($ignore[$i], ' \\/').'/';
  867. }
  868. // this will be filled with the query with stop words removed.
  869. $stripped_q = '';
  870. // corzblog..
  871. $blog_ext = substr($blog_file_name, strrpos($blog_file_name, '.')); // ".blog"
  872. //*> User Options..
  873. $whole_words_only = false;
  874. $user_opt['wwo'] = false;
  875. if ($always_whole_words) {
  876. $option_whole_words = false;
  877. $user_opt['wwo'] = true;
  878. $whole_words_only = true;
  879. }
  880. if ($do_user_options) {
  881. if ($option_whole_words) {
  882. if (isset($_GET['wwo'])) {
  883. if ($_GET['wwo'] == 1) {
  884. $user_opt['wwo'] = true;
  885. $whole_words_only = true;
  886. }
  887. }
  888. }
  889. }
  890. // option-specifics..
  891. if ($whole_words_only) {
  892. $boundaries = explode('|', '!|@|#|$|%|^|&|*|(|)|[|]|,|..|/|"|{|}|\|~');
  893. }
  894. /* Start Timer..
  895. My corzoogle searches 7035 documents in 0.19s. This is how I know..
  896. */
  897. $search_time = explode(' ',microtime());
  898. $start_time = $search_time[1].substr($search_time[0],1);
  899. //*> The Query..
  900. if (isset($_GET['q'])) {
  901. $q = xssclean(trim($_GET['q'] ?? ''));
  902. // remove quotes - phrase matching is automatic!
  903. $q = str_replace('"', '', $q);
  904. // this is inserted back in the query field, *usually* the last search string
  905. $result_txt = htmlentities($q, ENT_COMPAT, 'UTF-8');
  906. if ($always_filenames) {
  907. if ($anf_hack_after) {
  908. $q .= '.'; // optional hack to *always* search for file names (by request)
  909. } else {
  910. $q = '.'.$q;
  911. }
  912. }
  913. // get the query string into shape..
  914. //
  915. // query is too short!
  916. if (strlen($q) < 3) {
  917. $stripped_q = '';
  918. $result_txt = 'need three characters!';
  919. } else {
  920. // strip out the stop words; and, the, of, etc
  921. $stripped_q = strip_stuffing($q);
  922. $stripped_q = strip_stoppers($stripped_q);
  923. if (strlen($stripped_q) == 0) {
  924. $result_txt = 'more than common words!';
  925. } else if (strlen($stripped_q) <= 2) {
  926. $stripped_q = '';
  927. $result_txt = 'need real words!';
  928. }
  929. }
  930. // need more definite rules for strings of small "weird" words :2do:
  931. /*
  932. a search for "man+of+war" is now "man+war", "of" was removed. "of"
  933. will still be taken into account when we match for "phrases", though.
  934. */
  935. // create an array of query terms..
  936. $corzoogle = explode(' ', $stripped_q);
  937. // a few checks..
  938. // remove duplicate query terms..
  939. $corzoogle = array_unique($corzoogle);
  940. // better do this again
  941. $qc = count($corzoogle);
  942. /*
  943. -queries .. (boolean NOT)
  944. don't report files containing query terms preceded by a '-' character
  945. a search for something like "bandy-legged" would pass unmolested..
  946. */
  947. $not_this = array();
  948. for ($i=0; $i<$qc; $i++) {
  949. $neg = @$corzoogle[$i];
  950. if (substr($neg,0,1) == '-') {
  951. // build an array of NOTs
  952. $not_this[$i] = substr($corzoogle[$i],1);
  953. // remove this term from the search array
  954. unset($corzoogle[$i]);
  955. }
  956. }
  957. /*
  958. query may contain boolean NOT's, this will prevent phrase matching of
  959. "good" parts. when phrase matching, in a search for..
  960. oh macness -drop
  961. we'd be looking for "oh macness -drop" instead of just "oh macness".
  962. this fixes that..
  963. if someone puts there boolean NOT's in the middle of a query phrase
  964. they DESERVE to find nothing! but we check for this anyway. *sigh*
  965. */
  966. foreach ($not_this as $stripper) {
  967. $q = str_replace($stripper,'',$q);
  968. $q = str_replace('-','',$q);
  969. $q = str_replace(' ',' ',$q);
  970. }
  971. $q = trim($q);
  972. // better do this again!
  973. $qc = count($corzoogle);
  974. /* Filename Searching..
  975. Okay, this is neat. if a query term has a word with a dot, it looks like
  976. what we have here is a filename, so let's also look for a matching file
  977. name. the engine's running, so let's grab the first filename from the query
  978. string and get outta here..
  979. We can match "parts" of filenames too. ie. index. would return all
  980. "index.whatevers", or any file with the term "index" in its name, as well as
  981. the usual documents containing that term. .index would achieve the same
  982. result, but with probably much less regular page hits.
  983. */
  984. if ($do_filenames == true) {
  985. foreach($corzoogle as $query_word) {
  986. if (strstr($query_word, '.')) {
  987. if ($query_word[0] == '.') {
  988. $query_word = substr($query_word, 1);
  989. } elseif (substr($query_word, -1) == '.') {
  990. $query_word = substr($query_word, 0, -1);
  991. }
  992. $sys_filename = $query_word;
  993. break 1;
  994. }
  995. }
  996. }
  997. // someone is searching your files from outside your website!
  998. if (isset($_SERVER['HTTP_REFERER'])) {
  999. if (!stristr(@$_SERVER['HTTP_REFERER'], $domain) and ($allow_hot_link == false)) {
  1000. $stripped_q = '';
  1001. $result_txt = $hot_link_message;
  1002. }
  1003. } elseif ($allow_hot_link == false) {
  1004. $stripped_q = '';
  1005. $result_txt = $hot_link_message;
  1006. }
  1007. /*
  1008. reset the counters
  1009. (you could add extra deepness here if you really needed it)
  1010. */
  1011. if ($deepness) {
  1012. $path = array('../');
  1013. } else {
  1014. $path = array('./');
  1015. }
  1016. $hit = 0;
  1017. $fn_count = 0;
  1018. }
  1019. if ($embedded != true) {
  1020. do_header(); // this takes us up to "...<body>"
  1021. if (file_exists($custom_header)) { include $custom_header; }
  1022. }
  1023. if ($embedded != true) {
  1024. echo '
  1025. <section class="content corzoogle-container">';
  1026. }
  1027. // splurge out a nice search form
  1028. echoform();
  1029. /*
  1030. version info */
  1031. if (array_key_exists('version', $_GET)) {
  1032. echo '
  1033. <div class="centered">
  1034. corzoogle™ v',$cz_version,' &nbsp;&copy;&nbsp; 2004 -&gt; ',date("Y"),' corz.org
  1035. </div>';
  1036. }
  1037. /*
  1038. Let's search.. */
  1039. if (($stripped_q != '') and ($qc != 0)) {
  1040. $filename_hit = array();
  1041. burrow();
  1042. /*
  1043. The actual searching happens HERE! --->>> ! <<<--- ;o)
  1044. */
  1045. //*> Report Hits..
  1046. //
  1047. // STOP THE CLOCK!!!
  1048. $search_time = explode(' ',microtime());
  1049. $total_time = ($search_time[1].substr($search_time[0],1)) - $start_time;
  1050. if ($hit < $bfix_limit and isset($bfix_styles) and !empty($bfix_styles)) {
  1051. echo '
  1052. <link rel="stylesheet" href="',$bfix_styles,'" type="text/css" media="screen" />';
  1053. }
  1054. // report the hits..
  1055. if ($q != '') {
  1056. $plu = '';
  1057. $hc = count($hit_name);
  1058. if ($hc != 1) { $plu = 's'; } // pluralise hit(s) text
  1059. // rank the results, according to $score..
  1060. if (count($score) != false) { // there might be no hits
  1061. array_multisort($score, SORT_DESC, $preview, $hit_name, $pop_title, $file_path); // php magic!
  1062. }
  1063. // useful corzoogle links. no one sees this unless they corzoogle first!
  1064. if (isset($_GET['q'])) do_links();
  1065. // print out query, timer and counter results..
  1066. //
  1067. $a = '';
  1068. echo '
  1069. <section class="corzoogle-info">
  1070. <div class="found-info ',$cz_version,'">
  1071. corzoogle found&nbsp;'.
  1072. $hit .'&nbsp;hit'. $plu .' for "';
  1073. // create the "q1+q2+q3" text..
  1074. foreach($corzoogle as $some_term) {
  1075. $a .= $some_term .'+';
  1076. }
  1077. // print out, removing the last "+"
  1078. echo substr($a, 0, -1);
  1079. // report boolean NOT words..
  1080. if (count($not_this) != 0) {
  1081. echo '" (not ';
  1082. foreach ($not_this as $notword) {
  1083. echo ' "',$notword,'"';
  1084. }
  1085. echo ') ';
  1086. } else {
  1087. echo '"';
  1088. }
  1089. echo ' in '.substr($total_time,0,4),' seconds',$maxed,'<br />
  1090. <span class="search-items">(searching ',$file_count,' items)</span>
  1091. </div>
  1092. </section>';
  1093. //*> Print Results..
  1094. echo '
  1095. <section class="search-results">';
  1096. for ($i=0; $i<$hit; $i++) {
  1097. // if ($i>=$max_hits) break;
  1098. echo '
  1099. <div class="result">
  1100. <a href="', str_replace(' ', '%20', $file_path[$i]),'" title="',$pop_title[$i],'">',$hit_name[$i],'</a><br />
  1101. ',$preview[$i],' <br />';
  1102. if ($show_scores) echo'
  1103. <span class="score">score: ',$score[$i], '</span>';
  1104. echo '
  1105. </div>
  1106. ';
  1107. }
  1108. echo '
  1109. </section>';
  1110. /*
  1111. stop-words removed from the search? let's report that..
  1112. (they are taken into consideration for phrases)
  1113. */
  1114. if (!$match_phrases and $report_stop_words) { // only report if phrase matching is disabled
  1115. $removed = trim($removed);
  1116. if ($removed != '') {
  1117. echo '
  1118. <div class="stop-words" id="zooglestops" >
  1119. The following common words were removed from the search: <span class="removed">'.$removed.'</span>
  1120. </div>';
  1121. }
  1122. }
  1123. /*
  1124. additionally, we found the following matching filenames..
  1125. */
  1126. if ($sys_filename == true) {
  1127. if (count($filename_hit) > 0) {
  1128. echo '
  1129. <section class="file-results" id="corfile">
  1130. <div class="label-file-results">corzoogled ',$fn_count,' file names matching "'.$sys_filename .'".. </div><br />';
  1131. for ($i=0;$i<$fn_count;$i++) { // test speed of list/each combo
  1132. if ($filename_hit[$i] != '') {
  1133. echo '
  1134. <a class="file-result" href="',$filename_hit[$i],'" title="',basename($filename_hit_name[$i]),'">'
  1135. ,$filename_hit_name[$i],'</a><br />';
  1136. }
  1137. }
  1138. echo '
  1139. </section>';
  1140. }
  1141. }
  1142. /*
  1143. show most recent searches, just for fun..
  1144. */
  1145. if ($recent_hits) {
  1146. // add query string to the recent searches..
  1147. $past_hits = latest_hits($hit);
  1148. echo '
  1149. <aside>
  1150. <div class="recent-hits">
  1151. most recent searches<br />';
  1152. foreach ($past_hits as $previous) {
  1153. $nofollow = '';
  1154. if ($no_follow_recent_hits) {
  1155. $nofo = ' rel="nofollow"';
  1156. }
  1157. // we grab the current request URI minus the query. this allows us to keep groovy short
  1158. // links like /search?q= in our recent hits, rather than either a) reverting them to the
  1159. // real URI (e.g. corzoogle.php) or else doing: search?q=foo?q=bar?q=baz in recent hits.
  1160. $p_uri = explode('?', $_SERVER['REQUEST_URI'], 2);
  1161. echo '
  1162. <a',$nofollow,' href="'. array_shift($p_uri),'?q=',
  1163. str_replace(' ', '+', $previous),'" title="Search for &quot;',$previous .'&quot;">',$previous,'</a>';
  1164. }
  1165. echo '
  1166. </div>
  1167. </aside>';
  1168. }
  1169. }
  1170. }
  1171. // Whatever, we need a gap at the bottom. White space is important..
  1172. echo '
  1173. <!-- corzoogled! -->';
  1174. // :todo:
  1175. // perhaps put the menu (css) bottom left for first page visits (no searches yet)
  1176. // i spotted more than one person visit corzoogle, then come back again to the
  1177. // download page from a GOOGLE search for "corzoogle download". how mad is that! hahah
  1178. if (!$embedded) {
  1179. echo '
  1180. </section>';
  1181. if (($stripped_q != '') and ($qc != 0) and file_exists($_SERVER['DOCUMENT_ROOT'].'/inc/footer.php')) {
  1182. if (file_exists($custom_footer)) { include $custom_footer; }
  1183. }
  1184. echo '
  1185. </body>
  1186. </html>';
  1187. }
  1188. // feed the browser..
  1189. ob_end_flush();
  1190. // send mail to caring webmasters..
  1191. if (($notify == true) and ($stripped_q != '')) {
  1192. $user_agent = @$_SERVER['HTTP_USER_AGENT'];
  1193. $got_bot = false;
  1194. if (isset($nomail_list)) {
  1195. if (is_regex_listed($nomail_list, $user_agent)) {
  1196. $notify = false;
  1197. }
  1198. }
  1199. if ($notify) {
  1200. notify_webmaster();
  1201. }
  1202. }
  1203. if (!empty($GLOBALS['do_debug'])) debug('out'); // :debug
  1204. /*
  1205. That's all folks! Now the funky functions.
  1206. I like them underneath..
  1207. */
  1208. // Used to validate User Agent Strings.
  1209. //
  1210. // Returns true if there is a matching entry in a given list, otherwise false.
  1211. // NOTE: You can use regular expression in the entries.
  1212. //
  1213. function is_regex_listed($list_array_file, $test_ref) {
  1214. $list_array = GrabListFileIntoArray($list_array_file);
  1215. if (!is_array($list_array)) { return false; }
  1216. foreach ($list_array as $list_ref) {
  1217. $list_ref = trim($list_ref);
  1218. if ($list_ref) {
  1219. if (@preg_match("/$list_ref/i", $test_ref)) {
  1220. return true;
  1221. }
  1222. }
  1223. }
  1224. return false;
  1225. }
  1226. function GrabListFileIntoArray($list_file) {
  1227. if (!file_exists($list_file)) { return ''; }
  1228. return file($list_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
  1229. }
  1230. // /*
  1231. // burrow..
  1232. // Fast File System Burrowing..
  1233. // */
  1234. // function burrow() {
  1235. // global $display_path, $domain, $extentions, $file_count, $sys_filename, $filename_hit,
  1236. // $filename_hit_name, $fn_count, $hit, $ignore, $level, $maxed, $max_hits, $path, $private;
  1237. // // build a string of the paths inside this root..
  1238. // $search_path='';
  1239. // for ($i=0 ; $i <= $level ; $i++) {
  1240. // $search_path .= $path[$i];
  1241. // // remove those important IGNORE directories from the search path..
  1242. // $search_path = str_replace($ignore, '', $search_path);
  1243. // }
  1244. // // for debugging purposes..
  1245. // if ($display_path) { echo "<pre>$search_path</pre>"; }
  1246. // // go in and read the directory's contents..
  1247. // $dirhandle = opendir($search_path);
  1248. // while ($file = readdir($dirhandle)) {
  1249. // // skip 'dir' entries and invisibles (esp' mac ._resource.frk files)
  1250. // if ($file[0] != '.') { // a quick way to grab the 1st character
  1251. // $file_count++; // totale grandé
  1252. // // if it's a "regular file"..
  1253. // if (is_file($search_path.$file)) {
  1254. // // is this a $sys_filename I see before me?
  1255. // if ($sys_filename == true) {
  1256. // if (stristr($file, $sys_filename)) { // for exact matching filenames.. use: if ($file == $sys_filename) {
  1257. // $filename_hit[$fn_count] = $search_path.$file;
  1258. // $filename_hit_name[$fn_count++] = 'https://'.$domain.substr($search_path.$file,1);
  1259. // }
  1260. // }
  1261. // // get the file extension..
  1262. // $fext = substr($file, strrpos($file, '.')+1);
  1263. // // if we are permitted to search this filetype, then do it..
  1264. // // the answer could be '0' here, is why the triple ===
  1265. // if (isset($extentions[$fext]) and strpos($private, $file) === false) {
  1266. // look_in_file($search_path.$file);
  1267. // }
  1268. // if ($hit >= $max_hits) {
  1269. // $maxed = ' (search limit reached)';
  1270. // return;
  1271. // }
  1272. // // or is it a directory?
  1273. // // if so, add it to the path and loop into it.
  1274. // //
  1275. // } elseif (is_dir($search_path.$file)) {
  1276. // $path[++$level] = ($file.'/');
  1277. // burrow();
  1278. // $level--;
  1279. // }
  1280. // }
  1281. // }
  1282. // closedir($dirhandle);
  1283. // }
  1284. /*
  1285. burrow..
  1286. Fast File System Burrowing..
  1287. Pass the initial path as an argument to kick it off, e.g., burrow($initial_path);
  1288. */
  1289. // function burrow($current_path = '') {
  1290. // global $display_path, $domain, $extentions, $file_count, $sys_filename, $filename_hit,
  1291. // $filename_hit_name, $fn_count, $hit, $ignore, $level, $maxed, $max_hits, $private;
  1292. // // If this is the initial root call, bootstrap it from your original global setup
  1293. // if ($current_path === '') {
  1294. // global $path;
  1295. // $current_path = isset($path[0]) ? $path[0] : '';
  1296. // }
  1297. // // Ensure the path has a strict trailing slash for clean concatenation
  1298. // $current_path = rtrim($current_path, '/') . '/';
  1299. // // Remove ignored directory patterns from the active search path
  1300. // if (!empty($ignore)) {
  1301. // $current_path = str_replace($ignore, '', $current_path);
  1302. // }
  1303. // // Debugging output
  1304. // if ($display_path) {
  1305. // echo "<pre>" . htmlspecialchars($current_path) . "</pre>";
  1306. // }
  1307. // // Defensive check: if str_replace broke the path or it doesn't exist, halt recursion
  1308. // if (!is_dir($current_path)) {
  1309. // return;
  1310. // }
  1311. // $dirhandle = @opendir($current_path);
  1312. // if (!$dirhandle) {
  1313. // return;
  1314. // }
  1315. // while (($file = readdir($dirhandle)) !== false) {
  1316. // // Skip '.' and '..' and any Unix hidden files/Mac resource forks safely
  1317. // if ($file[0] !== '.') {
  1318. // $file_count++; // Grand total of items encountered
  1319. // $full_item_path = $current_path . $file;
  1320. // // Check if it is a regular file
  1321. // if (is_file($full_item_path)) {
  1322. // // Match system filenames
  1323. // if ($sys_filename === true || (is_string($sys_filename) && $sys_filename !== '')) {
  1324. // if (stristr($file, (string)$sys_filename)) {
  1325. // $filename_hit[$fn_count] = $full_item_path;
  1326. // $filename_hit_name[$fn_count++] = 'https://' . $domain . substr($full_item_path, 1);
  1327. // }
  1328. // }
  1329. // // Isolate extension cleanly
  1330. // $dot_pos = strrpos($file, '.');
  1331. // $fext = ($dot_pos !== false) ? substr($file, $dot_pos + 1) : '';
  1332. // // Verify permissions and privacy boundaries
  1333. // if (isset($extentions[$fext]) && strpos($private, $file) === false) {
  1334. // look_in_file($full_item_path);
  1335. // }
  1336. // if ($hit >= $max_hits) {
  1337. // $maxed = ' (search limit reached)';
  1338. // closedir($dirhandle);
  1339. // return;
  1340. // }
  1341. // // If it's a directory, pass the path forward locally to recurse cleanly
  1342. // } elseif (is_dir($full_item_path)) {
  1343. // $level++;
  1344. // burrow($full_item_path);
  1345. // $level--;
  1346. // }
  1347. // }
  1348. // }
  1349. // closedir($dirhandle);
  1350. // }
  1351. /*
  1352. burrow..
  1353. Fast File System Burrowing..
  1354. Pass the initial path as an argument to kick it off, e.g., burrow($initial_path);
  1355. */
  1356. function burrow($current_path = '') {
  1357. global $display_path, $domain, $extentions, $file_count, $sys_filename, $filename_hit,
  1358. $filename_hit_name, $fn_count, $hit, $ignore, $level, $maxed, $max_hits, $private, $path;
  1359. // If this is the initial root call, bootstrap it from your original global setup
  1360. if ($current_path === '') {
  1361. $current_path = isset($path[0]) ? $path[0] : '';
  1362. }
  1363. // Ensure the path has a strict trailing slash for clean concatenation
  1364. $current_path = rtrim($current_path, '/') . '/';
  1365. // Remove ignored directory patterns from the active search path
  1366. if (!empty($ignore)) {
  1367. $current_path = str_replace($ignore, '', $current_path);
  1368. }
  1369. // Debugging output
  1370. if ($display_path) {
  1371. echo "<pre>" . htmlspecialchars($current_path) . "</pre>";
  1372. }
  1373. // Defensive check: if str_replace broke the path or it doesn't exist, halt recursion
  1374. if (!is_dir($current_path)) {
  1375. return;
  1376. }
  1377. $dirhandle = @opendir($current_path);
  1378. if (!$dirhandle) {
  1379. return;
  1380. }
  1381. while (($file = readdir($dirhandle)) !== false) {
  1382. // Skip '.' and '..' and any Unix hidden files/Mac resource forks safely
  1383. if ($file[0] !== '.') {
  1384. $file_count++; // Grand total of items encountered
  1385. $full_item_path = $current_path . $file;
  1386. // Check if it is a regular file
  1387. if (is_file($full_item_path)) {
  1388. // Match system filenames
  1389. if ($sys_filename === true || (is_string($sys_filename) && $sys_filename !== '')) {
  1390. if (stristr($file, (string)$sys_filename)) {
  1391. $filename_hit[$fn_count] = $full_item_path;
  1392. $filename_hit_name[$fn_count++] = 'https://' . $domain . substr($full_item_path, 1);
  1393. }
  1394. }
  1395. // Isolate extension cleanly
  1396. $dot_pos = strrpos($file, '.');
  1397. $fext = ($dot_pos !== false) ? substr($file, $dot_pos + 1) : '';
  1398. // Verify permissions and privacy boundaries
  1399. if (isset($extentions[$fext]) && strpos($private, $file) === false) {
  1400. look_in_file($full_item_path);
  1401. }
  1402. if ($hit >= $max_hits) {
  1403. $maxed = ' (search limit reached)';
  1404. closedir($dirhandle);
  1405. return;
  1406. }
  1407. // If it's a directory, pass the path forward locally to recurse cleanly
  1408. } elseif (is_dir($full_item_path)) {
  1409. $level++;
  1410. $path[$level] = $file . '/'; // Populate global path array for external dependency
  1411. burrow($full_item_path);
  1412. $level--;
  1413. }
  1414. }
  1415. }
  1416. closedir($dirhandle);
  1417. }
  1418. /*
  1419. Examine File Contents..
  1420. */
  1421. function look_in_file ($file) {
  1422. global $arc_name, $allowed_tags, $blog_ext, $blog_file_name, $blog_flatlinks, $blogz_path, $boundaries, $cat_length, $clean_entities, $contents_as_title,
  1423. $context_ratio, $corzoogle, $deepness, $default_boolean, $domain, $dont_search, $pop_title, $enforce_between, $file_path,
  1424. $hit_name, $sys_filename, $filename_hit, $filename_bonus, $highlight_exact_hits, $hit, $level, $mangle, $mangle_merge,
  1425. $match_phrases, $not_this, $path, $phrase_max_score, $preview, $preview_has_context, $q, $qc, $q_max_score, $q_word_max,
  1426. $weighted_scoring, $safe_level, $score, $score_all_titles, $search_between, $sbtici, $search_in_tags, $snippet_length,
  1427. $title_scoring, $title_max_score, $use_descriptions, $use_snippets, $search_weight, $whole_words_only; // yeah, it's gettin outta hand!
  1428. $term_tally = 0;
  1429. $title = '';
  1430. $in_title= false;
  1431. $search_path='';
  1432. for ($i=0; $i <= $level; $i++) {
  1433. $search_path .= $path[$i];
  1434. }
  1435. /*
  1436. Where corzoogle opens and reads the file..
  1437. $file_data = the raw text of the file, remains constant
  1438. $search_data = the (modified) text we will be searching through
  1439. */
  1440. $fext = substr($file, strrpos($file, '.')); // ".html"
  1441. if ($safe_level > 0) {
  1442. $search_data = $file_data = implode('', file($file)); // 50% slower!
  1443. } else {
  1444. if ($fext !== '.gz') {
  1445. $file_handle = fopen($file, 'rb');
  1446. if (filesize($file) > 0) {
  1447. $search_data = $file_data = fread($file_handle, filesize($file));
  1448. } else {
  1449. $search_data = $file_data = '';
  1450. }
  1451. fclose($file_handle);
  1452. // gzipped files.. //:test: woopelganger
  1453. // If you use this, remember to add .gz to your list of allowed extensions.
  1454. // Note, there will be a slight speed penalty for enabling this functionality.
  1455. } else {
  1456. if (filesize($file) > 0) {
  1457. $search_data = $file_data = file_get_contents('compress.zlib://'.$file);
  1458. // this will also reveal file names inside tar.gz files
  1459. } else {
  1460. $search_data = $file_data = '';
  1461. }
  1462. }
  1463. }
  1464. $file_name = basename($file);
  1465. /*
  1466. boolean NOT checking..
  1467. multiple -not terms are checked..
  1468. if the file contains one of your -terms, it's damned!
  1469. */
  1470. foreach($not_this as $notz) {
  1471. if (stristr($search_data, $notz)) {
  1472. return;
  1473. }
  1474. }
  1475. /*
  1476. "nosearch" tag?..
  1477. Is the word "nosearch" (or your custom $dont_search word) inside this file?
  1478. If not, and it's not damned, we will investigate further..
  1479. */
  1480. if (strpos($file_data, $dont_search)) {
  1481. return;
  1482. }
  1483. /*
  1484. we have a candidate! */
  1485. /* search_between..
  1486. if there's a $search_between tag in the document, use it to search between..
  1487. (tags configurable in prefs) default is search between <body></body> tags. */
  1488. /* neater, but slower..
  1489. if Search Between Tags Is Case Insensitive: */
  1490. if ($sbtici == true) {
  1491. if (count($search_between) != 0) {
  1492. if (!strpos($file_data, $search_between[0]) === false ) {
  1493. if ($between_str = stristr($file_data,$search_between[0])) {
  1494. $end_point = strpos($between_str, $search_between[1]);
  1495. if ($end_point == false) { $end_point = strlen($between_str) + 1; }
  1496. $search_data = substr($between_str, // <- the string
  1497. strpos($between_str,'>') + 1, // <- start (after starting tag)
  1498. $end_point - strpos($between_str,'>') - 1); // <- length
  1499. } elseif ($enforce_between == true) return;
  1500. }
  1501. }
  1502. // uglier, faster..
  1503. //
  1504. } else {
  1505. if (count($search_between) != 0) {
  1506. if (!strpos($file_data, $search_between[0]) === false ) {
  1507. $s_start = strpos ($file_data, $search_between[0]) + strlen($search_between[0]) + 1;
  1508. $end_point = strpos($file_data, $search_between[1]);
  1509. if ($end_point === false) $end_point = strlen($file_data) + 1;
  1510. // reconstruct the tag, it can be stripped away later with strip_tags()
  1511. $search_data = $search_between[0].'>'.substr($file_data, $s_start, $end_point - $s_start);
  1512. } elseif ($enforce_between == true) {
  1513. return;
  1514. }
  1515. }
  1516. }
  1517. /* if the file has a real <title>, we'll use it, and score for it..
  1518. if not, we'll use the filename in its place. getting the <title>
  1519. this early on causes a :speed: hit, usually worth it. */
  1520. $name_is_title = false;
  1521. if ($score_all_titles == true) {
  1522. if (!$title = get_title($file_data)) {
  1523. $name_is_title = true;
  1524. if ($contents_as_title == true) {
  1525. $title = substr(strip_tags($search_data),0,$cat_length).'...';
  1526. } else {
  1527. // if the filename becomes the title, we'll chop off the extension..
  1528. $title = substr($file_name,0,strrpos($file_name,'.'));
  1529. }
  1530. }
  1531. }
  1532. // regardless of the number of query terms, we want a $snippet_length
  1533. // character preview (default is 300)
  1534. $num_o_q = count($corzoogle); // number of query terms
  1535. $preview_length = ($snippet_length / $num_o_q); // simple arithmetic
  1536. $snippet = '';
  1537. $found = 0;
  1538. // score progressively less for 2nd, 3rd and 4th query terms..
  1539. if ($weighted_scoring) { $weight = $search_weight; } else { $weight = 3; }
  1540. /*
  1541. where corzoogle examines the file contents...
  1542. */
  1543. //*> Check Query Terms..
  1544. // (walk through the $corzoogle array, one-by-one)
  1545. //
  1546. foreach($corzoogle as $query_word) {
  1547. if ($search_in_tags == false) {
  1548. $search_data = strip_tags($search_data, $allowed_tags);
  1549. }
  1550. // kill two birds with one stone..
  1551. // the most important line of the program
  1552. if ($match_str = stristr($search_data, $query_word)) { // $match_str now is all the data from {match} to EOF
  1553. if (!$whole_words_only) {
  1554. $match_pos = strpos($search_data, $match_str); //Case-SenSitiVe
  1555. } else {
  1556. // If whole word searching is enabled, check if it is a whole word, if not, return.
  1557. $t_search_data = ' '.str_replace($boundaries, ' ', $search_data).' '; // quicker than bundling, somehow.
  1558. $match_pos = stripos($t_search_data, ' '.$query_word.' ');
  1559. if ($match_pos === false) {
  1560. return;
  1561. }
  1562. }
  1563. // We got a match!
  1564. $found++;
  1565. // this makes the preview more understandable..
  1566. if ($preview_has_context == true) {
  1567. $snip_from = $match_pos - ($preview_length/$context_ratio);
  1568. if ($snip_from < 0) $snip_from = 0;
  1569. $snippet .= substr($search_data, $snip_from, $preview_length) .'.. ';
  1570. } else {
  1571. $snippet .= substr($match_str, 0, $preview_length) .'.. ';
  1572. }
  1573. // only on word boundries.. (what about entities?)//2do
  1574. $snippet = substr(minify_str(strip_tags($snippet)), 0, strrpos($snippet, ' ') + 1);
  1575. // make that three birds
  1576. $term_scored = 0;
  1577. // $term_scored += ($weight * substr_count($search_data, $query_word));
  1578. // a wee bonus for case-sensitive exact match..
  1579. $exact_bonus = substr_count($search_data, $query_word);
  1580. if ($exact_bonus != 0) { $term_scored += 1; }
  1581. $term_scored += ($weight * $exact_bonus);
  1582. // case-matching..
  1583. if (ucfirst($query_word) !== $query_word) {
  1584. $term_scored += ($weight * substr_count($search_data, ucfirst($query_word))); // handy function
  1585. }
  1586. if (strtolower($query_word) !== $query_word) {
  1587. $term_scored += ($weight * substr_count($search_data, strtolower($query_word)));
  1588. }
  1589. if (strtoupper($query_word) !== $query_word) {
  1590. $term_scored += ($weight * substr_count($search_data, strtoupper($query_word)));
  1591. }
  1592. if ($term_scored == 0) {
  1593. $term_scored += ($weight * @substr_count($search_data, substr($match_str, 0, strpos($match_str, ' '))));
  1594. } // any @ is just for speed! if (strpos(.. - aarrgh! no! hahah
  1595. // max $q_word_max points per query term (set in prefs)..
  1596. if ($term_scored > $q_word_max) $term_scored = $q_word_max;
  1597. // if weighted, after 4th term, all matches score one point
  1598. // these terms are the bit-players in our search adventure
  1599. if ($weighted_scoring) {
  1600. $weight--;
  1601. if ($weight == 0) $weight++;
  1602. }
  1603. $term_tally += $term_scored; // add this query term's score to the tally
  1604. }
  1605. // you can only score so many points by way of query terms (set in prefs)..
  1606. if ($term_tally > $q_max_score) { $q_scored = $q_max_score; } else { $q_scored = $term_tally; }
  1607. // okay, four birds. if the file has a real <title>, we'll use it, and score for it..
  1608. if (($score_all_titles == true) and ($title_scoring == true) and (stristr($title, $query_word))) {
  1609. $in_title = true;
  1610. }
  1611. } // finished walking $corzoogle array now
  1612. /*
  1613. if *all* the query terms didn't appear inside this file, go back to burrow()ing
  1614. it is _crucial_ that we return at this point for NON-matching files. :speed:
  1615. */
  1616. if (($found != $num_o_q) and ($in_title == false)) return;
  1617. /*
  1618. ..or else continue, it's a $hit!
  1619. Filename bonus: if any of the query terms are in the filename
  1620. */
  1621. if (($sys_filename) and ($name_is_title == false)) {
  1622. foreach($corzoogle as $query_word) {
  1623. if (stristr($file, $query_word)) {
  1624. $q_scored += $filename_bonus;
  1625. }
  1626. }
  1627. }
  1628. //*> Phrase Matching..
  1629. //
  1630. $phrase_scored = 0;
  1631. if ($match_phrases == true) {
  1632. // if the original query is a phrase (has a space inside it)
  1633. if (strrpos($q, ' ')) {
  1634. /*
  1635. even if "and", "am", "I" or whatever (stop words) were removed from the query array,
  1636. we still use the *entire* query string when looking for matching *phrases*.
  1637. you only get this far if we already have a document matching all terms.
  1638. */
  1639. // query exists (with the SaMe cAsE) *in entirety* inside this file, +30% (jackpot!)
  1640. // fastest tests first..
  1641. if (strpos($search_data, $q)) {
  1642. $phrase_scored += ($phrase_max_score * (3/10));
  1643. // the longer the query, the higher the bonus..
  1644. $phrase_scored += str_word_count($q)*$phrase_max_score * (1.5/10); // previously 1/10
  1645. // or +20% for a phrase match with a different CaSe..
  1646. } elseif (stristr($search_data, $q)) {
  1647. // "man mac" would match "The BIG Man Machine ..."
  1648. $phrase_scored += ($phrase_max_score * (2/10));
  1649. $phrase_scored += str_word_count($q) * 5;
  1650. }
  1651. }
  1652. // up to the maximum set in the preferences..
  1653. if ($phrase_scored > $phrase_max_score) $phrase_scored = $phrase_max_score;
  1654. // consider "fuzzy" searching here. :2do:
  1655. // now we set the total score for terms..
  1656. $score[$hit] = $q_scored + $phrase_scored;
  1657. }
  1658. // we'll use this for our links..
  1659. $file_path[$hit] = $file;
  1660. //*> Create Preview Snippet..
  1661. //
  1662. if ($use_snippets == true) {
  1663. $text_preview = $snippet;
  1664. // sometimes we still have a tiny string. like when the query matches right at the end.
  1665. // so we'll just pad that out with some body text instead..
  1666. if (strlen($text_preview) < 33) {
  1667. $text_preview = strip_tags($search_data);
  1668. $text_preview .= substr($text_preview, 0, $snippet_length);
  1669. }
  1670. }
  1671. // Evil Entities..
  1672. if ($clean_entities) {
  1673. $text_preview = switch_entities(@html_entity_decode($text_preview, ENT_QUOTES, 'UTF-8'));
  1674. // this MUST be done after the main (walking corzoogle) loop, but *before* adding styling (next)..
  1675. }
  1676. // Description..
  1677. $description_tag = '';
  1678. // are we using these in results?
  1679. if ($use_descriptions == true) {
  1680. // if so, does this document have a <description> tag?
  1681. $description_tag = get_description($file_data);
  1682. // if all that worked out we'll put this description below our preview title
  1683. if (strlen($description_tag) > 0) {
  1684. $description_tag = '
  1685. <div class="description">
  1686. '.$description_tag.'..
  1687. </div>';
  1688. $text_preview = $description_tag.$text_preview;
  1689. }
  1690. }
  1691. /*
  1692. just for looks.. */
  1693. // this will prevent us getting <- W I D E -> previews..
  1694. $wrappers = array('>','<','_','.','(','-');
  1695. $splitter = array('> ',' <',' _','. ',' (','- ');
  1696. $text_preview = str_replace($wrappers, $splitter, $text_preview);
  1697. /* colour the found query terms by their capitalisation..
  1698. this technique works fine, looks nice, but it's a bit boring */
  1699. foreach ($corzoogle as $rep) {
  1700. $text_preview = str_replace(strtolower($rep),
  1701. '<span class="hit-lower">'. strtolower($rep) .'</span>', $text_preview);
  1702. $text_preview = str_replace(ucfirst($rep),
  1703. '<span class="hit-case">'. ucfirst($rep) .'</span>', $text_preview);
  1704. $text_preview = str_replace(strtoupper($rep),
  1705. '<span class="hit-upper">'. strtoupper($rep) .'</span>', $text_preview);
  1706. // you can add ugly highlights, too..
  1707. if ($highlight_exact_hits == true) {
  1708. $text_preview = str_replace($rep, '<span style="background: #FFFF33;">'.$rep.'</span>', $text_preview); //2do - use scheme
  1709. }
  1710. }
  1711. // the preview is ready..
  1712. $preview[$hit] = stripslashes($text_preview);
  1713. /*
  1714. corzblog
  1715. */
  1716. if ($fext == $blog_ext) {
  1717. $is_blog = true;
  1718. $blogz_path = '';
  1719. $bfile = basename($file);
  1720. $hit_name[$hit] = str_replace($blog_ext, '', $bfile);
  1721. // work out the path parts we need..
  1722. $this_blog_path = dirname($file);
  1723. $blog_path = explode('/', $this_blog_path); // split it up
  1724. foreach ($blog_path as $element) {
  1725. if (stristr($element,$arc_name)) break;
  1726. $blogz_path .= $element.'/'; // put it back together
  1727. }
  1728. // I use flat links, these days..
  1729. if ($blog_flatlinks) {
  1730. if (stristr($this_blog_path, $arc_name)) {
  1731. $file_path[$hit] = $blogz_path . $hit_name[$hit];
  1732. $pop_title[$hit] = $hit_name[$hit] = 'blog archive: '.$hit_name[$hit];
  1733. } elseif ($bfile == $blog_file_name) {
  1734. $file_path[$hit] = $pop_title[$hit] = substr($blogz_path, 1);
  1735. $hit_name[$hit] = substr($file_path[$hit], 1, -1);
  1736. } elseif ($bfile == 'about'.$blog_ext) {
  1737. $file_path[$hit] = substr($blogz_path, 1).'about-blog';
  1738. $pop_title[$hit] = $hit_name[$hit] = 'about-blog';
  1739. }
  1740. } else {
  1741. $file_path[$hit] = $blogz_path .'index.php?archive='. $hit_name[$hit];
  1742. }
  1743. // end corzblog specific code
  1744. } else {
  1745. $is_blog = false;
  1746. }
  1747. //*> Extension Mangling..
  1748. //
  1749. if ($is_blog == false) {
  1750. if (is_array($mangle) and count($mangle) != 0) {
  1751. // run through each mangled pair, switching key for value.. (we test entire path, can do lotta mangle!)
  1752. foreach ($mangle as $key => $value) {
  1753. if (substr($file_path[$hit], (0 - strlen($key))) == $key) {
  1754. $new_hit = str_replace($key, $value, $file_path[$hit]);
  1755. $file_path[$hit] = $new_hit;
  1756. }
  1757. }
  1758. }
  1759. // Mouse-Over title (full site path)
  1760. $pop_title[$hit] = substr($file_path[$hit], 1);
  1761. //*> <title> scoring..
  1762. //
  1763. if (!$score_all_titles == true) {
  1764. if (!$title = get_title($file_data)) $title = substr($file_name,0,strrpos($file_name,'.'));
  1765. }
  1766. if ($title_scoring) {
  1767. /*
  1768. an important small (stop) word may have been removed. but such a word
  1769. can be important in the "phrase", so we use the whole query string.
  1770. */
  1771. // phrase in the title..
  1772. $t_scored = 0;
  1773. // check that q is a phrase. (another way to do this)
  1774. if ((strrpos($q, ' ') > 0)) {
  1775. /*
  1776. The whole query string matches a part of the title (case insensitive).
  1777. A search for "dog spot" would return the "my dog spot" page,
  1778. along with the usual dog spot documents. This is stylish, huh.
  1779. And what a punchline! obfuscated php..
  1780. if (stristr(substr($title,strpos($title,$q),strlen($q)),$title[0]) == $q) $t_scored+=20;
  1781. *ahem*, where was I.. ah yes, this three-stage approach works well..
  1782. */
  1783. // the *direct hit* .. full query matches the title exacitaly!
  1784. if ($title == $q) {
  1785. $t_scored = $title_max_score;
  1786. // case-insensitive exact match
  1787. } elseif (strlen(stristr($title, $q)) == strlen($title)) {
  1788. $t_scored += ($title_max_score*(3/5));
  1789. // now a case-insensitive full title match..
  1790. } elseif (stristr($title, $q)) {
  1791. $t_scored += ($title_max_score*(2/5));
  1792. }
  1793. }
  1794. // no phrases, okay, check for individual words in the title..
  1795. $tmp_score = 0;
  1796. if ($t_scored == 0) {
  1797. // +20% for each query term that's in there *somewhere*..
  1798. foreach ($corzoogle as $query_word) {
  1799. if (stristr($title, $query_word)) $tmp_score += ($title_max_score/5);
  1800. }
  1801. // up to a maximum of 80% of $title_max_score, a direct hit will always score higher.
  1802. if ($tmp_score > ($title_max_score*(4/5))) $tmp_score = ($title_max_score*(4/5));
  1803. $t_scored += $tmp_score;
  1804. }
  1805. if ($t_scored > $title_max_score) $t_scored = $title_max_score;
  1806. // add the title score to the running total..
  1807. $score[$hit] += $t_scored;
  1808. } // finished title scoring
  1809. // if there is no title, or it contains a variable, the filename will do fine
  1810. if (strpos($title, '$') > -1 ) {
  1811. $hit_name[$hit] = $file_name; }
  1812. else {
  1813. $hit_name[$hit] = $title; }
  1814. } // not a blog
  1815. // increase our hit counter for the next (possible) hit..
  1816. $hit++;
  1817. }
  1818. /*
  1819. Web Master Email Notifications..
  1820. */
  1821. function notify_webmaster() {
  1822. global $q, $to_addy, $email_subject, $email_body, $from_addy, $hit, $cz_version, $mail_lb, $xmail_headers;
  1823. $xmail_headers = "From: $from_addy".$mail_lb.$xmail_headers;
  1824. if (isset($_SERVER['HTTP_REFERER']) and ($_SERVER['HTTP_REFERER'] != $_SERVER['HTTP_HOST'] )) {
  1825. $email_body .= "\nReferred by.. ".$_SERVER['HTTP_REFERER']."\n\n"; }
  1826. $email_body .= "\nThe search query was.. \"$q\" [$hit hits]\n";
  1827. $email_body .= "\n-- \ncorzoogle mailer v$cz_version (c) corz.org\n"; // everything after "-- " becomes the sig
  1828. mail($to_addy, $email_subject, $email_body, $xmail_headers);
  1829. }
  1830. /*
  1831. Recent Searches..
  1832. Interestingly, this affects folks' search queries..
  1833. */
  1834. function latest_hits($add=true) {
  1835. global $hits_length, $hits_file, $q, $result_txt;
  1836. if ($add && empty($result_txt)) { return array(); }
  1837. $past_hits = array();
  1838. if (!empty($hits_file) && file_exists($hits_file)) {
  1839. $grab_hits = file_get_contents($hits_file);
  1840. if ($grab_hits !== false) {
  1841. $existing_hits = json_decode($grab_hits, true);
  1842. if (is_array($existing_hits)) {
  1843. $past_hits = $existing_hits;
  1844. }
  1845. }
  1846. }
  1847. if ($add && !empty($result_txt) && !in_array($result_txt, $past_hits, true)) {
  1848. array_unshift($past_hits, $result_txt);
  1849. }
  1850. $filtered_hits = array();
  1851. foreach ($past_hits as $old_hit) {
  1852. if (strlen(implode(' ', $filtered_hits)) >= $hits_length) {
  1853. break;
  1854. }
  1855. $filtered_hits[] = $old_hit;
  1856. }
  1857. $past_hits = $filtered_hits;
  1858. $is_writable = (!empty($hits_file) && file_exists($hits_file)) ? is_writable($hits_file) : (!empty($hits_file) && is_writable(dirname($hits_file)));
  1859. if ($is_writable) {
  1860. $sa = json_encode($past_hits, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
  1861. file_put_contents($hits_file, $sa, LOCK_EX);
  1862. } else if (!empty($hits_file)) {
  1863. echo '
  1864. <div class="no-write">
  1865. <h3>Your recent searches file is not writable!<br />
  1866. <small>Recent seaches cannot be stored!</small></h3>
  1867. <p>Please manually create the "', htmlspecialchars($hits_file) ,'" file, and make it world-writeable, or else allow (temporary) write access to the directory that I live in, so I can create the file myself.
  1868. <p>You can give the folder write-access in a shell/terminal (<a title="or use sudo. e.g. sudo chmod 777 /path/to/folder">as root</a>)..
  1869. <blockquote>
  1870. <p><strong>chmod 777 /path/to/folder</strong><br />
  1871. </blockquote>
  1872. <p>or from your desktop, using the properties or "get info" for that folder, or with any decent text editor, save a blank ".corzoogles" file next to "corzoogle.php"
  1873. <p>You could do the whole lot in a shell, too (<a title="or use sudo. e.g. sudo chmod 777 /path/to/folder">as root</a>)..
  1874. <blockquote>
  1875. <p><strong>touch /path/to/folder/.corzoogles<br />
  1876. chmod 777 /path/to/folder/.corzoogles</strong>
  1877. </blockquote>
  1878. <p>Alternatively, switch off recent searches in the preferences!<br />
  1879. </div>';
  1880. }
  1881. return $past_hits;
  1882. }
  1883. /*
  1884. Print Out the Search Form..
  1885. With a slight alteration, you can easily use this on other pages, too
  1886. like your 404 page, for instance. With maybe something like..
  1887. $insert = substr($_SERVER['REQUEST_URI'], (strrpos($_SERVER['REQUEST_URI'], '/')+1));
  1888. form input value="'. $insert .'";
  1889. (pseudo code, you get the idea)
  1890. hit a 404 at corz.org for a demo. I use a "static" png logog onsite, btw.
  1891. In quotes because it will actually change color with the current scheme!)
  1892. You can download Clever-404.php from https://corz.org/public/machine/
  1893. Note: if you use corzoogle on the web, you must leave the copyright notice
  1894. intact
  1895. Here's some HTML you can copy and paste directly into your page..
  1896. <form method="get" action="/corzoogle.php" id="corzoogle">
  1897. <div class="search-form">
  1898. <!-- corzoogle™ powered search (c) copyright corz.org 2004-&gt;tomorrow! -->
  1899. <!-- you cannot legally remove this copyright notice -->
  1900. <a href="https://corz.org/server/tools/corzoogle/" title="corzoogle™.. the realtime personal search engine, from corz.org">
  1901. <img src="',$logo,'" alt="logo for corzoogle; fast realtime personal search engine from corz.org" class="dim"></a><br>
  1902. <br>
  1903. <input name="q" maxlength="256" value="" id="cz" autofocus="autofocus" title="narrow the search with multiple terms
  1904. use - to exclude words
  1905. to search for files, add a dot, anywhere
  1906. click the 'tips' link for more info" type="text">
  1907. <input id="cz-search" value="do it!" title="corzoogle locates!" type="submit">
  1908. </div>
  1909. </form>
  1910. */
  1911. function echoform() {
  1912. global $do_user_options, $embedded, $logo, $notice, $qc, $result_txt, $redirect_to, $redirect, $user_opt, $option_whole_words;
  1913. $do_image = false;
  1914. if ((!$embedded) or ($embedded and stristr($logo, 'embed'))) $do_image = true;// end with "png" for IE pngfix
  1915. if ($logo =='embedded') { $logo = $_SERVER['PHP_SELF'] .'?zoogleimg=do.png'; }
  1916. if ($redirect) { $target = $redirect_to; } else { $target = $_SERVER['REQUEST_URI']; }
  1917. echo'
  1918. <form method="get" action="',$target,'" id="corzoogle">
  1919. <div class="search-form">
  1920. <!-- corzoogle™ powered search (c) copyright corz.org 2004-&gt;tomorrow! -->
  1921. <!-- you cannot legally remove this link and copyright notice, though you may move them in the page -->
  1922. <!-- If you require a developer license, please contact me directly! -->
  1923. <a href="https://corz.org/server/tools/corzoogle/" title="corzoogle™.. the realtime personal search engine, from corz.org">';
  1924. if ($do_image == true) {
  1925. echo '
  1926. <img src="',$logo,'" alt="logo for corzoogle; fast realtime personal search engine from corz.org" class="dim" />';
  1927. }
  1928. echo '</a><br />
  1929. <br />
  1930. <input type="text" name="q" maxlength="256" value="',$result_txt,'" id="cz" autofocus="autofocus" title="Narrow the search with multiple terms.
  1931. Use -word to exclude words.
  1932. To search for files, add a dot, anywhere.
  1933. Click the \'tips\' link for more info." />
  1934. <input id="cz-search" type="submit" value="do it!" title="corzoogle locates!" />';
  1935. // User Options..
  1936. if ($do_user_options) {
  1937. // quicker to set regardless of enablement.
  1938. $opt_wwo = '';
  1939. if ($user_opt['wwo']) {
  1940. $opt_wwo = ' checked="checked"';
  1941. }
  1942. echo '<br />
  1943. <div class="corzoogle-options" title="corzoogle can return only pages containing the WHOLE word.
  1944. A search for &quot;foo&quot; will NOT return results for pages containing the word &quot;food&quot;
  1945. ( unless they also contain the word &quot;foo&quot; ! )">';
  1946. if ($option_whole_words) {
  1947. echo '
  1948. <input type="checkbox" value="1" name="wwo" id="opt-wwo" class="check-box"',$opt_wwo,' />
  1949. <label for="opt-wwo" class="checkbox-label">whole words only</label>';
  1950. }
  1951. echo '
  1952. </div>';
  1953. }
  1954. if (!empty($notice) and !isset($qc)) {
  1955. //if (!empty($notice)) {
  1956. echo '
  1957. <div class="corzoogle-notice">
  1958. ',$notice,'
  1959. </div>';
  1960. }
  1961. echo '
  1962. </div>
  1963. </form>';
  1964. }
  1965. /*
  1966. Print out Header..
  1967. */
  1968. function do_header() {
  1969. $addstr = '';
  1970. if (isset($GLOBALS['q']) and $GLOBALS['q'] != '') {
  1971. $addstr = ' - searching for &quot;'.$GLOBALS['q'].'&quot; ';
  1972. }
  1973. echo '<!DOCTYPE html>
  1974. <html lang="en">
  1975. <head>
  1976. <meta charset="utf-8">
  1977. <meta name="viewport" content="initial-scale=1.0, width=device-width" />
  1978. <title>corzoogle - the fast, real-time search engine (v',$GLOBALS['cz_version'],')',$addstr,'</title>';
  1979. if ($GLOBALS['html_js'] !== '') {
  1980. echo '
  1981. <!--[if lt IE 9]><script nonce="'.$_SERVER['CSP_NONCE'].'" src=',$GLOBALS['html_js'],'></script><![endif]-->';
  1982. }
  1983. echo '
  1984. <meta name="description" content="corzoogle - Fast realtime search engine for home or website, from corz.org. Fast. Portable. Cool." />
  1985. <meta name="generator" content="corzoogle" />
  1986. <meta name="author" content="corz.org" />';
  1987. $style_sheets = explode(',', $GLOBALS['page_styles']);
  1988. foreach ($style_sheets as $my_sheet) {
  1989. echo '
  1990. <link rel="stylesheet" href="',$my_sheet,'" type="text/css" media="screen"/>';
  1991. }
  1992. echo '
  1993. </head>
  1994. <body>';
  1995. }
  1996. /*
  1997. corzoogle links..
  1998. Please leave these links intact!
  1999. Please do leave a link to the "tips" somewhere, which I keep updated.
  2000. https://corz.org/server/tools/corzoogle/tips.txt has minimal html formatting,
  2001. in simple divs, so you can load it in an iframe or whatever,users do deserve
  2002. the latest and best help available. In other words, I syndicate the tips. If
  2003. you think you can improve on the tips, or any other thing, by all means do.
  2004. */
  2005. function do_links() {
  2006. global $hc;
  2007. echo '
  2008. <div class="corz-links">
  2009. <a href="https://corz.org/server/tools/corzoogle/index.php" title="what\'s it all about?">about</a>
  2010. &bull;
  2011. <a href="https://corz.org/server/tools/corzoogle/download.php" title="download corzoogle">download</a>
  2012. &bull;
  2013. <a href="https://corz.org/server/tools/corzoogle/tips.php" title="handy tips, ways to get the most from your corzoogling">tips</a>
  2014. </div>';
  2015. }
  2016. /*
  2017. Get Description()
  2018. we can (optionally) display these under the titles of results
  2019. */
  2020. function get_description ($doc_string) {
  2021. $description_tag = '';
  2022. // The easy but mega-slow method.. $meta_tags = get_meta_tags($file); etc.
  2023. // The (much) quicker way.. not clever, but trés rapido!
  2024. // (must avoid regex at all costs). At least now everyone has stripos()!
  2025. // In actual fact, the old (even uglier!) method is still faster, but only *just*
  2026. if (stripos($doc_string, 'meta name="description"')) {
  2027. $start_at = stripos($doc_string, 'meta name="description"')+33;
  2028. $content = substr($doc_string, $start_at, 333); // 333 characters maximum description
  2029. $end_at = strpos($content, '"');
  2030. $description_tag = substr($content, 0, $end_at);
  2031. }
  2032. if (stripos($doc_string, "meta name='description'")) {
  2033. $start_at = stripos($doc_string, "meta name='description'")+33;
  2034. $content = substr($doc_string, $start_at, 333);
  2035. $end_at = strpos($content, "'");
  2036. $description_tag = substr($content, 0, $end_at);
  2037. }
  2038. if (stripos($doc_string, 'meta name=description')) {
  2039. $start_at = stripos($doc_string, 'meta name=description')+30;
  2040. $content = substr($doc_string, $start_at, 333);
  2041. $end_at = stripos($content, '>');
  2042. $description_tag = substr($content, 0, $end_at);
  2043. }
  2044. return $description_tag;
  2045. }
  2046. /*
  2047. Strip "stop-words" from the query..
  2048. Accepts $string, returns $string minus any stop-words
  2049. */
  2050. function strip_stoppers($string) {
  2051. global $removed, $stop_words;
  2052. // stop-words themselves are up in the prefs now.
  2053. $words = explode (' ', $string);
  2054. $qs = count($stop_words);
  2055. reset($words);
  2056. foreach ($words as $key => $val) {
  2057. for($i=0;$i<$qs;$i++) {
  2058. if (($words[$key] == $stop_words[$i]) or ($words[$key] == ucfirst($stop_words[$i]))) {
  2059. unset($words[$key]);
  2060. $removed .=' '.$stop_words[$i];
  2061. break 1;
  2062. } elseif (strlen($words[$key]) < 2) {
  2063. // if ($report_stop_words) {
  2064. // $removed .=' '.$words[$key];
  2065. // }
  2066. unset($words[$key]);
  2067. break 1;
  2068. }
  2069. }
  2070. }
  2071. return implode(' ', $words);
  2072. }
  2073. /*
  2074. Strip other stuff from query..
  2075. */
  2076. function strip_stuffing($some_string) {
  2077. // there are lots of silly people about, so we remove a few undesirables, there will be more.
  2078. $nonos = array('<','>','..',' .'.'. ',',',';','[',']','\\',' \\',
  2079. '\\ ','/',' /','/ ','*','~','#','•','°',
  2080. "\n","\r","\t","\r\n",'&','?','$','%','+','=','»','«'); // we leave :()" for now. might need those
  2081. $some_string = str_replace($nonos, '', $some_string); // remove undesirables
  2082. // in case folks have extra spaces in between the words..
  2083. $spacers = array(' ',' ',' ',' '); // goan remove one. I dare ye!
  2084. $some_string = str_replace($spacers, ' ', $some_string); // str_replace has back-to-front syntax.
  2085. $some_string = str_replace('+', ' ', $some_string); // yes, I know *why*. it's still annoying.
  2086. $some_string = trim($some_string); // might add "te rms" in the future, hmm..
  2087. return $some_string;
  2088. }
  2089. /*
  2090. Get The Title..
  2091. something like if (eregi ("<title>(.*)</title>", etc.. is less reliable
  2092. */
  2093. function get_title($string) {
  2094. $t_end = 0;
  2095. if ($grab_this = stristr($string, '<title>')) {
  2096. $grab_this = substr($grab_this, 7, 248);
  2097. $t_end = strpos($grab_this, '<');
  2098. }
  2099. return substr($grab_this, 0, $t_end);
  2100. }
  2101. // damn php 5.3!
  2102. function switch_entities($string) {
  2103. if (!defined('PHP_VERSION_ID')) {
  2104. $version = explode('.', PHP_VERSION);
  2105. define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2]));
  2106. }
  2107. if (PHP_VERSION_ID >= 50390) {
  2108. return htmlentities($string, ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8');
  2109. } else {
  2110. return @htmlentities($string, ENT_NOQUOTES, 'UTF-8'); // @ in case it's a REALLY old php, will fall-back to Latin1
  2111. }
  2112. }
  2113. /*
  2114. xss clean-up
  2115. clean up against potential xss attacks
  2116. adapted from the bitflux xss prevention techniques..
  2117. http://blog.bitflux.ch/wiki/XSS_Prevention
  2118. any comments or suggestions about this to
  2119. security at corz dot org, ta.
  2120. */
  2121. function xssclean($string) {
  2122. // skip any null or non string values
  2123. if (is_null($string) || !is_string($string)) {
  2124. return false;
  2125. }
  2126. // fix &entity\n;
  2127. $string = str_replace(array('&amp;','&lt;','&gt;'), array('&amp;amp;','&amp;lt;','&amp;gt;'), $string);
  2128. // URL decode
  2129. $string = urldecode($string);
  2130. // convert Hexadecimals
  2131. //$string = preg_replace('!(&#|\\\)[xX]([0-9a-fA-F]+);?!e','chr(hexdec("$2"))', $string);
  2132. $string = preg_replace_callback('!(&#|\\\)[xX]([0-9a-fA-F]+);?!',function($m) { return gethex($m[2]);},$string);
  2133. // clean up entities
  2134. $string = preg_replace('!(&#0+[0-9]+)!','$1;',$string);
  2135. $string = html_entity_decode($string, ENT_NOQUOTES, 'UTF-8');
  2136. $string = preg_replace('/(&#*\w+)[\x00-\x20]+;/u', '$1;', $string);
  2137. $string = preg_replace('/(&#x*[0-9A-F]+);*/iu', '$1;', $string);
  2138. $string = html_entity_decode($string, ENT_COMPAT, 'UTF-8');
  2139. // remove any attribute starting with "on" or xmlns
  2140. $string = preg_replace('#(<[^>]+?[\x00-\x20"\'])(?:on|xmlns)[^>]*+>#iu', '$1>', $string);
  2141. // remove javascript: and vbscript: protocols
  2142. $string = preg_replace('#([a-z]*)[\x00-\x20]*=[\x00-\x20]*([`\'"]*)[\x00-\x20]*j[\x00-\x20]*a[\x00-\x20]*v[\x00-\x20]*a[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iu', '$1=$2nojavascript...', $string);
  2143. $string = preg_replace('#([a-z]*)[\x00-\x20]*=([\'"]*)[\x00-\x20]*v[\x00-\x20]*b[\x00-\x20]*s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:#iu', '$1=$2novbscript...', $string);
  2144. $string = preg_replace('#([a-z]*)[\x00-\x20]*=([\'"]*)[\x00-\x20]*-moz-binding[\x00-\x20]*:#u', '$1=$2nomozbinding...', $string);
  2145. // only works in IE: <span style="width: expression(alert('Ping!'));"></span>
  2146. $string = preg_replace('#(<[^>]+?)style[\x00-\x20]*=[\x00-\x20]*[`\'"]*.*?expression[\x00-\x20]*\([^>]*+>#i', '$1>', $string);
  2147. $string = preg_replace('#(<[^>]+?)style[\x00-\x20]*=[\x00-\x20]*[`\'"]*.*?behaviour[\x00-\x20]*\([^>]*+>#i', '$1>', $string);
  2148. $string = preg_replace('#(<[^>]+?)style[\x00-\x20]*=[\x00-\x20]*[`\'"]*.*?s[\x00-\x20]*c[\x00-\x20]*r[\x00-\x20]*i[\x00-\x20]*p[\x00-\x20]*t[\x00-\x20]*:*[^>]*+>#iu', '$1>', $string);
  2149. // remove namespaced elements (we do not need them)
  2150. $string = preg_replace('#</*\w+:\w[^>]*+>#i', '', $string);
  2151. do {
  2152. // remove really unwanted tags
  2153. $old_data = $string;
  2154. $string = preg_replace('#</*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|i(?:frame|layer)|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|title|xml)[^>]*+>#i', '', $string);
  2155. } while ($old_data !== $string);
  2156. // we are done...
  2157. return $string;
  2158. }
  2159. function minify_str($string) {
  2160. return trim(str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), ' ', $string));
  2161. }
  2162. /*
  2163. function:zoogleimg() - embeded corzoogle image
  2164. Thanks to Rolf Holtsmark and Terje Monsen.. http://php.holtsmark.no
  2165. */
  2166. function zoogleimg() {
  2167. header("Content-type: image/png");
  2168. header("Content-length: 23915");
  2169. echo base64_decode(
  2170. 'iVBORw0KGgoAAAANSUhEUgAAAR0AAABQCAYAAAFT3JHrAAAAB3RJTUUH1QkXACwYZKTZkwAAAAlwSFlz'.
  2171. 'AAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAFz6SURBVHja7D0FeFTX0rPucSHBXUNxWgpFC8Wt'.
  2172. 'uHuB4E6BYMHdg1vxQnDXEggSIBDi7r7ucv8zN7uw0KDt+1/fezt8l+zevTJnzpyxc84MgAPeAKu4k8x/'.
  2173. 'ByaXwp5HkT81i/uNbf/l4OEHFP4dPLAJY9LS9XVGVir/XOnjq2zSvJETOc0YNH5y/Q5NSzyRfFMDOFS5'.
  2174. 'TJVBIepZt6n7/luPbpv12mZms2X26E6tVuK14cEPLMBkwjddvmXgM1OiQylgMKFs1UbOKr3WTE7R73p1'.
  2175. 'K4oKu/gKhq7tzXgHs4eh8XiBGzk45BCs/KYlfUOn3gManr5w837Y8zv4vYq1ZZJdl6+umBu8VLPhxKVx'.
  2176. 'Lbv0HIXXnrofhtf4/FpyIGXrlqjrz6j4V/S9Xkeu3zyxZOehNZsvBUeQ736nV1ym1vffRU2oNo+a3mAp'.
  2177. '9Q5CNb5ZQNlRTHxm6nzbBcxN33WiNm70x+9lbNd7zJHgd0avwO0ZvmUqNsFzs/aeOt5t0IghW1rPffPw'.
  2178. 'BWWH4mfXX3u7UAv6e9GfZx/aQSM0sXIAfucVy0Nc8c06DZssNS7deek2nk+6+wBPM1ZWbGie+PCCL4eQ'.
  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CSS+HoC+b0swf24MxHNjkU68//Hv4q+X5N'.
  2252. 'pU4DmYU57zBPjRo1xEuHr1PmxueBUW+CCJ/UtUHLArZa6YXPZ4+dH9iEcVR9h0WEAYPJAM+6pan5h0fh'.
  2253. 'YvH8L2Ke01dfWvgWYEhlGgh5lADbNgzAIHaknXSwAU7lCK0Sx3xnQ5BWn18A8TfuAfObOuaxQStqWhmu'.
  2254. 'ONUmebTzsEIoLpokLDRZoPngn3H+HWPCrFt3ThojX1wEo0EHIt/v5KMHTsJtBanWEW+bobDX628kwYyV'.
  2255. '6xpUbip4ItPJoECdDwVklF6ac6dfZkoiTlHjVJFp6fHLMTcfP6vyODqRvlV9cW9Ta6eri8GVtedqSCSf'.
  2256. 'zajC53EhPV8Kxzaual77+2byrlDhxevzj0GtUoH7kHp/TFjgP8DaKX9SnYMnTq89snqLcKGzGEx6I2Q7'.
  2257. '8ZK79fyh/o4TZwc0KWXeZDRoQJabCi9UJU5MGz58vH3HHblyJZgdc6IrRVlAo5JDkkvHVYv9Ry6zSg7Y'.
  2258. 'fOlcRHLO85pao44wTx4Ez979hnle3o1SPj75XBx7PwUUhUoos9Dvd6FIpGYwWW9UlMVsYhmNRo7FbKaN'.
  2259. '7KhnTx8d2LT6uJVe76iyj9k8rOBjjxm4FCYvX0MITxtfSihe3+rhre3i9HjnQdDl5BHOZUH1H5tjozTw'.
  2260. '4dkYTWTYK7Ux7LlIK5ODKpemE87Noai3hD2+TJC0AJcYPByu4B3mgA/PuLC23d6aeyT8oNveC69BRwg5'.
  2261. 'vOqip7tHrR1nJaTSeh3zcuizkmHR8cDj8cHTSYiLItTwYZvCnJKReem3O6FVFAYLSDU6GNvix0Z8ATfl'.
  2262. '9fYHwBJzwcnTFcTOQmyEFj5gcx3ctCaubhsOmKVa0MnUIKlZAlflOP3Su+uufWdOt+HGX+qiVuQBJcvv'.
  2263. '3X346INn9u5EqW1cvC2oS+zhYV31OrovoESHVS8WDx95EOzUSh65LyTqMRgsJhDzRO/Q5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'q8/cyL0RGubzNDYJJEJh/ORubXoTpnlpxTdmUs/2I2OjohbjLgoO6biWDeusX3fkDG4XfrPtZOvJSwMr'.
  2313. 'Riv2pz6KgZQXCTD56PIhhGn22tp88eiBKz8NbVdPy2HRO0h82GzhixfxuJvSyfaM9b+d6lbX3dIbN+ep'.
  2314. 'yWDZdPzuGsI02HHxwQf3XL4QlrE8OzUC0uPDIDkqBJILieckteRHx8Q8Bmt5pcScFChQFlq3G/1JWHAX'.
  2315. 'j10sVyUWgCJfBUtOrZ1KmAar6eK655TczMzIwlr6mRyiSSiDGUpGeuB+NdfiBMxHGefC4+gHYDAzCgvV'.
  2316. 'kJxWAHNH9cAtLrjXCFfl4wa7xMqNnfZmZsmA68I32jp9VNeusZqcXMiPSwBDterqUwd3465FXJCdZb0P'.
  2317. 'RWvqwFHDWumVasDk7yyDHnZu2XMHrPt8SvmU834Qm/VKWpgJaamvCHM+h8u345bNGzNkxf5TSS29anaQ'.
  2318. 'uZSoAbxynW5fOXU0ppKwse7ElOOdtSoVbvd9bcUzecj0uZIytZlT89V5kKvMobcNbxqzfjgUbfNRbjt/'.
  2319. 'a/mz19HOMWlZkJ5fCLvn+k+34ppmxRPxzVo2+ZcNSr1JpSWqFreoNPCriVuFPKxE5fup2IdyY9Ih82US'.
  2320. 'aJuVC4l7+SL8PVoVGI3G+ONPbg/VKTW06nKnQLg3+DqWVcJdDYzmdSsdMhKPSK9Rgkolh50rF1+0w6Pg'.
  2321. 'xIHDQSrCUGpZFigLM6AwPVLXr8fgrnPG+aPao1UuboMRcPngLJL8iW227j1zyJSjAi1RS2qLxXzzzMnH'.
  2322. 'VqbB56O9aSovrDiBw+cAm8sCXa6K4R8Q2B7e25eF8DHjmOdqYtfXECNLKlODd2UJSpl0KxFsoksf8Evv'.
  2323. 'afM37irYsnIU5luX9xg6phwnI50vL5CBNDkNsprUx+2saBO8ry9N+fmZqXk8vowllbsQ4wx85IqKPmXL'.
  2324. 'lsxKScFRKotLzjzm6qv2y8l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7KeDoHVE63M0B88znqQmTo0aOSZqu1VAj6yuaJR1X9d03'.
  2542. '0a2AaIc7Av56YIgP6jfATytT6fNydm/NOXms4BLLjFrkxBGYOQJKxoOcoXdUzKP3TnxpelKgrmucrfq8'.
  2543. 'v6HqHGU3Gp3CRhGBo5yaDVLDffsiKrRPp8lHXnSq8vThj3Z9VGmz2XScBeTifpgi6oJjBU/IpfZUi9ms'.
  2544. 'wAIpqtfohCKZXICHwo3GBhdtFgopGWI3EbsoYDh5QaAHqwW7jVKUFx0rTstat/rfyCXNGh0drXhhderG'.
  2545. 'Rl3NaMycTEQawn40vlRil7ZTtMCGlQzNNEqA/yqww3vEokhvIBrChXbKRll88TuxXWCTI4Fd5Tgl5NoL'.
  2546. '39ak7klPz2OFn9QdAYlY5QOf9Rk3KSUmJi4+mVZ4xp2pb1TUNGmY6mM7feOQZI2BPLHyHhwajML8vK+0'.
  2547. '1tflHzr48ddVp082IifM37Wc42YkYpUPzMV30t9eHzE8cliSxzXbCGPFZZmp8SojwKh7nzn7SzsERKCS'.
  2548. 'I3lEb5rq43vpEtXx9Z5tGfm11RUtLG9xBeVmGCRSU+Y1eea8hLjYAW9dL94cAaUvImzhCCRKxgIDKw6U'.
  2549. 'h8XUyZRKCEgBLhxIjIKiWesfv9J2dv0oRknRjF4QMplPRVTyxctGxecKX1UMmEX4IBXQNtqIrFQnzby3'.
  2550. '41MM0qMON4gSCzwgmcvygl0kENcf/jB76Rf/2FfP4V0iLyokkainzV6Q8FBEzFT6ommItqIJ2UzWbski'.
  2551. 'sklAjPAeSiZUoWpaGuapaaabc3e++3bu5Yu1JNWuc5FRt+K2d7LKXICcdU2AaQGloGRfZeyNCzljEhQu'.
  2552. 'TJYbZHMNtN0sJksYQsL2L+eMJUVOdCQXmMdtJMDHHd+InAhT2y3Gk7NjED+Wusn8CJHxuGO5Ch1hDhl7'.
  2553. 'H6R/bh/chlDPa0NxXrkAL5LVs3DW+kf4Es5cxJx7VbCv3H3krqPrnGzsvZnYMQhy163g6U3mIuWsjbtz'.
  2554. 'IRgSCzs+d5+JkPQ4l+DgYPns1RvG+tJNK9rK9ve3XNdgN0SEFEEPWFpU8R+unPfqIc59WVzmK2SbJPbR'.
  2555. '2IAXXnhh6H29vUZYOyqjLlcVihBUqFOOraGZ5rBaFYOea5/24tznjEZjC9s36c+Vl1z5CyGnPBld7q+n'.
  2556. 'dYT1A2VO5JNg0LjyyZUPsnZEPsmeclH0btPdfBIQd/FJ4yIaCZPYOI0wye2OR8bkvrqiKLko4dsdl9vn'.
  2557. 'z1lDV6Vxq77v9N5w192debjOh+whWVui0Fzvjawnd11/6bN0bjYXMp+eBNOVv8j7n7pn8fqP9kyhLny6'.
  2558. 'ubOhVAqmCuPGYhdH7h9mqxHHrd/05sIcdKPrfQPosod5EgtSOWHazNgxD/tlGGoLPChiEUHcDltN+ntG'.
  2559. '582ZOmMxcsQRe8Lu/Ahr5fL7rQ4j1+u48ilCN5fPOymjDN3NZyRzT5n/BpHxfk4ZxO3S3Xwm7a/tebd3'.
  2560. 'rHzjtzCX1bsODJY25WW1N5xgkOUMoA6UAzShxG40dIE7Cu4ZqQZ3dx5MgP9qc4sQScLacIceDvcLAJNy'.
  2561. 'ZOk75vScKVPT0c9zV26XT7g1ff914h9XyhNPTqKuNF40CBQ+LeBKOZqYbUJkuVYnHhNmWrhz546n0c//'.
  2562. '2hdJ2uas372UFPetoTq3LwSCoV9FeILpe33kmpenTJ2DHFkosKDcCsj+Vum3+6BVnni6OySbOH3WwCfj'.
  2563. '7t/XUfphOG01sE/+E7KPdXA0mX+EXXpfQrle4LevtqLyaHbmunMtLS2MOxQUFCSeOHN26L0DBw3xktAJ'.
  2564. 'Ql3t04a677xsXWAcUUii7mezBI08vWXTto2nvztajxxWU/dzdND/sMJBiFc6PPHkSswzeHBT+ffuHfTS'.
  2565. 'awuevy9ANFmovRBuai5HtNXMqaWiboRMsCC1bqECwKncG0kD7rdblMHl1Q36nPdWLf1Ge+0aCcaSp/Vx'.
  2566. 'K+d/Ta71XVtgnnji6cdEHqRGMqMk08NkSIVCoSRqRHwvpVIhIilreJSJXqczlHybDyllEjOxImcWiGQv'.
  2567. 'TciZ9frNfAf5nSJe6fDE008TN9tDMj3c7GhPWbyeMj8k+/N/pWR44oknnnjiiSeeeOKJJ5544oknnnji'.
  2568. 'iSeeeOKJJ5544unXS/8BYWtPYz+7E7MAAAAASUVORK5CYII='.
  2569. '');
  2570. }
  2571. /*
  2572. Recent changes:
  2573. 2026-06-03
  2574. FINALLY fixed for php8.
  2575. Fixed -stop words bug.
  2576. */
  2577. ?>

Welcome to corz.org!

I'm always messing around with the back-end.. See a bug? Wait a minute and try again. Still see a bug? Mail Me!