1. ##### ### ## ### ######## ### ## ### ###TM
  2. ####### ####### ####### ######## ####### ####### #######
  3. ### ### ### ### ### ### ### ### ### ##
  4. ### ### ### ## ### ### ### ## ### ##
  5. ####### ####### ## ######## ### ####### ## #######
  6. ##### ### ## ######## ### ### ## ###
  7. #####
  8. Welcome to corzoogle and corzoogle pro!
  9. (c) 2003->tomorrow! ~ corz.org ;o)
  10. Thanks to everyone who gave feedback on the 0.9 betas!
  11. Itstory..
  12. 1.0.2
  13. corzoogle will now only add searches to the "recent hits" list if they
  14. returned results on your site. People searching for, well, you can
  15. imagine, will not create any content on your site containing that text.
  16. SEO spammers, in particular, like to run searches for their domain on
  17. other, more popular domains.
  18. + corzoogle will perform checks to ensure that there is never duplicate
  19. entries in the recent hits list. This is especially important if you run
  20. adsense ads on your site (yup, they run searches!).
  21. Recent hits will now also follow any "short" link you may have corzoogle
  22. running under, e.g. /search?q=previous
  23. + Added "whole word" matching. Normally, if you searched for "refer",
  24. you would get results back for "preference", "referrer", and so on. With
  25. this enabled, you wil only get results back for pages containing the word
  26. "refer".
  27. + Added user options.
  28. The first of these is.. suprprise surprise.. Whole word matching. The
  29. user can check a box to enable/disable this behaviour (if the web master
  30. has the whole word matching option enabled).
  31. 1.0.1 [current release] [2013-12]
  32. + Improved document title - it now states the version number and current
  33. search query.
  34. + The recent hits is now returned as a <nav>, which should weight its
  35. results better with spiders.
  36. v1.0
  37. Enter corzoogle pro..
  38. + corzoogle now outputs beautiful, 100% compliant HTML5 web code with CSS
  39. controlling all the positional and style elements.
  40. Too many stylistic improvements to note. En-Joy!
  41. + Option to include different style sheet for short pages (corzoogle will
  42. automatically switch when it returns less that three results).
  43. + Improved pop-up titles.
  44. + Improved URL encoding in results.
  45. + Improvements to the mailer functions, it is more robust under various
  46. server setups.
  47. + Improved mail notification.
  48. + corzoogle now reads inside gzipped (.gz) files (by request).
  49. + Configurable mailer Line-Breaks, more a work-around for current Postfix,
  50. (maintainer) than an actual feature.
  51. + You can now configure the location of the hits file. If you cannot
  52. create a writable file in corzoogle's directory, perhaps you can use the
  53. system temp directory, or something like that.
  54. + You can now add a notice to corzoogle, which will display under the main
  55. search form. You can use it to tell your users anything at all.
  56. + Improved the recent hits stylings, with its own css class, and fully-
  57. configurable character widths, you can put it anywhere on the page, and
  58. do anything with it. I also improved its arithmetic, and it should now
  59. remain within whatever limit you have set, e.g. 80 characters.
  60. + corzoogle will now perform intelligent transformation of any hits from
  61. your corzblog installation. It can also create "flat links", if you use
  62. and prefer that.
  63. + You can now have a list of bot agents that will *not* trigger a
  64. notification email on searching your site.
  65. + File existence checks for included code (e.g. footer)
  66. ~ Added rel="nofollow" to the recent searches links - Google has a
  67. million of my search pages stored!
  68. I note it because some may want to remove this, make it seem (at Google,
  69. et al) that you have thousands of extra pages!
  70. * Fixed entity encoding in result snippets, even really bad HTML pages
  71. should produce validating snippets. You still need to go fix your dodgy
  72. pages, though!
  73. * fixed potential php notices for missing bot agents file (so the mailer
  74. knows who *not* to notify you about).
  75. * Many, many minor undocumented fixes and improvements.
  76. v0.8.4
  77. End of the line for corzoogle FREE!
  78. fixed occasional issue with snippets being *much* longer than they should
  79. have been.
  80. minor xhtml integration
  81. v0.8rc3 [current release]
  82. a few minor surface changes. everything is nice and stable.
  83. v0.8rc2
  84. fixed the bug with the search between tags. I really don't
  85. know how that > got deleted! but it was a while ago! certain documents with
  86. plain old <body> tags were being ignored in the search results. this only
  87. applied to case-sensitive search-between tags, the default setting.
  88. results snippets will now always begin at proper word boundries.
  89. corzoogle will now automatically select the query terms in the input box, so
  90. you can begin another search immediately, if you need to, by simply typing.
  91. a small but significant improvement.
  92. fixed the form focus error some browsers gave by basically just removing the
  93. second form altogether, it just caused problmes anyhow.
  94. v0.7.5b6 - v0.8rc1
  95. minor changes, too busy to document!
  96. v0.7.5b5
  97. altered slightly the way corzoogle strips undesirable characters from the
  98. input query. instead of replacing them with a space, they are simply
  99. removed. a search for need w[[ords would search for need+words, previously
  100. we would have got results for need+ords, the "w" having been removed as a
  101. single letter.
  102. added "extension mangling"..
  103. Let's say you have a php site, and you keep your content in files ending
  104. .htm, but if they are accessed directly, you redirect (with htaccess) to the
  105. php container page. now you can have corzoogle alter the extension for you,
  106. so the link goes directly to the php file. a hit for "darkstat.htm" would
  107. link directly to "darkstat.php"
  108. another use for mangling is .comment files. rather than the raw comment
  109. file, you want the user to load the page it is attached to. so a hit for
  110. "darkstat.php.comment" will present a link directly to
  111. "darkstat.php#comments". the "real" filename, as always, is available by
  112. hovering the mouse over the title.
  113. this feature will be disabled by default, to enable, simply uncomment
  114. (remove the "//" from in front of) the line beginning..
  115. //$mangle = array(...
  116. put the ".. " back in the end of snippet pieces in multiple query searches,
  117. no more weird words in the snippets.
  118. added a preference for the length of the "latest hits" links. the default is
  119. enough hits to fill 81 chracters, but you can change that now.
  120. removed some limitations of the search_between feature. will be more
  121. accurate when using mixed start and end tags. if your end tag doesn't exist,
  122. but the start tag did, corzoogle scans right to the end of the document. you
  123. could even enter a bogus tag to have corzoogle always do that.
  124. v0.7.5b4
  125. added a preference for "embedding", for folks that want to run corzoogle
  126. from inside another page. corzoogle will return the results in the same
  127. space.
  128. added some notes about the $search_between preference, and how it relates to
  129. $search_in_tags.
  130. added multiple corzblog searching. previously we were limited to a single
  131. blog installation. you no longer need to specify this, corzoogle will return
  132. correct results for any number of blog installations automatically. I
  133. spotted this limitation after I started my devblog. if you use a name other
  134. than "arc" for your corzblog archives, this functionality will break, though
  135. you could edit in whatever name you do use. (why would anyone want to change
  136. that?)
  137. v0.7.5b3
  138. fixed a bug I introduced in 0.7.5b1, where certain queries, matching words
  139. right at the end of the text could produce unexpected results, usually
  140. putting the entire page into the preview.
  141. fixed a minor bug where certain documents could potentially be scored twice
  142. for their filename.
  143. added facility to set initial scoring weight in a multiple-query term.
  144. added switch to force corzoogle to only search documents containing your
  145. chosen $search_between tags, particularly for folks that use custom
  146. $search_between tags.
  147. v0.7.5b2
  148. added "notify" facility for searches. you can be emailed every time someone
  149. searches your site! you might want to put a filter on that!
  150. this facility is disabled by default, and completely untested; please report
  151. back any interesting findings.
  152. $search_between tags can now be case-insensitive, if you need that.
  153. v0.7.5b1
  154. small performance improvements when searching for queries
  155. with -not words
  156. "search between" tags can be case-sensitive (default) or case-insensitive,
  157. the latter is marginally slower, but potentially useful.
  158. v0.7.4
  159. added (ugly) highlights to "exact" word matches. they are disabled by
  160. default (they were sort of in there already, some one wanted them working)
  161. This looks like someone drew a marker pen through all the exact hits *eew*
  162. added a switch for searching inside html tags. I'll set this to false, which
  163. produces neater reults. if you are using coroogle to "grep" your site for
  164. editing, or searching web-development technical documentation, or such-like,
  165. you'll likely want to set this to true.
  166. preview snippets can now be presented with the query terms in context, in
  167. other words, the query term appears some way into the text, and not right at
  168. the start of the snippet. aids comprehension. of course, how far in the term
  169. appears, is configurable in the prefs.
  170. corzoogle now attempts to create the "recent hits" file if it's not there,
  171. which it did originally (dunno how that got switched off). There's still a
  172. message if this wasn't possible (likely).
  173. fixed a wee bug where html tags were being passed to the "past-hits" and
  174. users could create interesting html structures at the foot of results pages.
  175. added a few "googies" to the distribution; customised Apache manual index
  176. page with built-in corzoogle search, is one.
  177. v0.7.3.6
  178. added < and > to the removed characters. You won't get
  179. unexpected html structures in the results now. Searching for "<select name",
  180. for instance, would create a nice select option. Amazingly, corzoogle still
  181. returned all the results just fine!
  182. v0.7.3.5
  183. fixed a missing "" double-quote on the inline image's
  184. url tag. oops. must have been in a hurry packaging this one.
  185. added a preference for this now. you can specify an image location, or use
  186. 'embedded'. the choice is yours. that's right; if you hadn't noticed, the
  187. image is contained within the script itself. (scroll down) this is highly
  188. cool, yes, but please do read the notes about that inside corzoogle,
  189. especially if you are running corzoogle on a 'live' website.
  190. a few other minor gui thingies.
  191. v0.7.3
  192. fixed trailing slashes problem on search terms. this also
  193. fixes the stop-words weirdness. "that's", will be removed now, as expected.
  194. fixed a bug where if you had set corzoogle to score for all titles (not the
  195. default), it was grabbing the document titles twice. oops. fixed a few other
  196. minor bugs.
  197. if a document has no title, and the filename has become the title in its
  198. place, we now remove the extension before scoring. if you have
  199. score_all_titles set to true, a search for php will *not* now return every
  200. php file in the zone! this applies to regular file searches, and also the
  201. display titles of the results. you still get the file extension if you hover
  202. the mouse over.
  203. v0.7.2
  204. a couple of speed optimisations. Aye, just when I thought I had every
  205. last ounce.
  206. Fixed the search limit so that it will definitely stop at whatever you set,
  207. regardless of the number of hits from one folder.
  208. removed a potential bug where certain incredibly long single-term gibberish
  209. words could cause an error. you should see the gramotki with all my test
  210. phrases on it! I think the one that revealed the potential error was
  211. http://corz.org/corzoogle.php?q=men+-pipe+-0g
  212. +-645987.,%3E%3C%3E%3C8+/.,,.+8(*^gf
  213. //././%3E\.\,;+%60~~876+]+][][+3498*&amp;(^ except without the spaces ;o)
  214. v0.7.1
  215. discovered the error_reporting (E_ALL) php setting, and so cleaned up a heap
  216. of undefined variables and suchlikes. (and here was me just luvvin this not
  217. having to declare variables "feature") these are only "warning" level errors
  218. which most of us would never see, but still, ya know, they were there.
  219. I think I got them all, but search conditions are a factor. I'll scan
  220. through again, but if you come across any yourself, do let me know. some are
  221. almost unnavoidable, and many just create checking code *sigh*, anyway,
  222. error reporting should always be off on production servers.
  223. you can now alter the hot-link message. I noticed a couple of weird (weird
  224. as in unintelligible strange writing, their contant may have been perfectly
  225. sedate) foreign sites using corzoogle and I thought maybe "hot-link my
  226. butt-stink" would be less funny for them. it's in the domain section at the
  227. foot of the prefs, right under where you can *allow* hot-linking (crazy
  228. person).
  229. v0.7
  230. release
  231. v1.7b
  232. sooo many changes and improvements I'll write this up when I get a
  233. chance, probably. just en-joy the features!
  234. v1.6b
  235. Added user switches for a couple of things, you can now switch snippets
  236. on and off, description snippets on and off. You can have either, both, or
  237. none, whatever you like.
  238. Added more meta description CaSe checks.
  239. v1.5b
  240. added facility to NOT search for terms, as in boolean NOT, for
  241. instance..
  242. system secure -FineCrypto -pgp
  243. would search for pages containing both "system" and "secure" but NOT return
  244. pages any containing the words "FineCrypto" or "pgp"
  245. it's case-insensitive, so you can do -finecrypto or -FINEcrypto, or
  246. whatever, and it skips that file just the same.
  247. while "keeping everything fast" is up there with "maintaining simplicity"
  248. and "ease of use", you can add as many boolean NOT's as you like to the
  249. query string, with a near-zero performance hit.
  250. added ability to only search between certain tags..
  251. the default is to search all content between the <html></html> tags but you
  252. can configure this behavior, perhaps using the <body> </body> tags, or some
  253. other tag of your choosing. you could even get right down and create
  254. <search&gt<endsearch&gt tags, it's your call.
  255. duplicate search terms are now removed
  256. v1.4b
  257. added filename searching capability
  258. If the user inputs a word with a dot '.' in it, we assume it to be a
  259. filename and corzoogle will, as well as its usual query string search,
  260. perform an additional file name check, presenting its findings at the end of
  261. the results page.
  262. this consequently improved some internal logic, previously, dots '.' would
  263. have been filtered from the input terms, but now we can find *references* to
  264. real file names, linked pages, within documents, which seems a more sensible
  265. approach.
  266. only the first found file.name is actioned, further filenames are
  267. incorporated into the search query as regular search terms.
  268. v1.3b
  269. added some user data checks
  270. (NEVER trust user data), filtering out some undesirables, bizarre
  271. punctuation, that sort of thing.
  272. improved scoring for titles. we score seperately for exact matches and
  273. simple term matches.
  274. v1.1b
  275. enlarged many of the comments, which are a tad cryptic in places,
  276. hopefully of use to some lernerschripter.
  277. improved the readability of a few variables names, stuff I'd put together
  278. quickly, as often happens on chaotic days.
  279. set limit on possible score achievable by containing individual search
  280. terms, and also score for the different cAsE possibilities, ie.. mac MAC Mac
  281. added scoring for document «title»
  282. before.. well, it just sorta started with a <form> and went from there.. I
  283. have to admit, I didn't really start keeping proper notes until around
  284. version a1.1
  285. reason was, I was was developing three seperate systems independently, and
  286. to be quite honest it would have been too much work. by the time I finally
  287. settled on this present system, it was aleady fairly mature. see my blog if
  288. you need more details.
  289. die (); // :debug: