summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Steve McIntyre [Thu, 22 Oct 2015 16:03:28 +0000 (17:03 +0100)]
Release v0.9
Steve McIntyre [Thu, 22 Oct 2015 16:03:14 +0000 (17:03 +0100)]
Sanitise input to stop cross site scripting attacks
Steve McIntyre [Wed, 17 Aug 2011 10:46:21 +0000 (11:46 +0100)]
Version 0.8
Steve McIntyre [Wed, 17 Aug 2011 10:45:08 +0000 (11:45 +0100)]
Add a link to the git repo for the source code
Make it easier for people to contribute, add a footer link to the
source code.
Steve McIntyre [Wed, 3 Aug 2011 11:55:10 +0000 (12:55 +0100)]
Version 0.7
Add a field in the footer to say when the DB was last updated - useful
for status checking.
Steve McIntyre [Sat, 16 Apr 2011 21:53:12 +0000 (22:53 +0100)]
Version 0.6
Steve McIntyre [Sat, 16 Apr 2011 21:52:59 +0000 (22:52 +0100)]
Add an extra 'search again' link at the top of the results
Steve McIntyre [Sat, 16 Apr 2011 21:26:03 +0000 (22:26 +0100)]
Version 0.5
Steve McIntyre [Sat, 16 Apr 2011 21:23:09 +0000 (22:23 +0100)]
Add configurable debug
Add debug=1 in the config file to cause the script to dump config
variables and query settings.
Steve McIntyre [Sat, 16 Apr 2011 21:20:32 +0000 (22:20 +0100)]
Code shuffle
Move set_default_config() and read_config() to the top of the file.
Steve McIntyre [Sat, 16 Apr 2011 21:16:13 +0000 (22:16 +0100)]
Add support for simple substring searches
Deal with simple substring searches, whitespace separated: add "*" at
beginning and end and in between each query term.
Add extra option for query type (defaulting to the simple substring)
to allow for old behaviour and new.
Steve McIntyre [Sat, 16 Apr 2011 18:36:59 +0000 (19:36 +0100)]
Add config file handling
Version 0.4
Move config variables into the %conf hash.
Set default config values in set_default_config()
In read_config(), look for a config file called find_file.cfg in the
same dir as the script is run from. If it exists, use the
ConfigReader::Simple library to load and parse the config file,
looking for directives that match the keys already in the %conf hash.
Makes it much easier to run the script on multiple hosts directly from
git - now we can store config in a separate file and we don't have to
modify the script itself.
Steve McIntyre [Fri, 15 Apr 2011 10:39:25 +0000 (11:39 +0100)]
add missing paren
Steve McIntyre [Fri, 15 Apr 2011 10:36:24 +0000 (11:36 +0100)]
reindent, lose tabs
Steve McIntyre [Fri, 15 Apr 2011 10:29:25 +0000 (11:29 +0100)]
Add 'search again' link after successful search
Steve McIntyre [Fri, 15 Apr 2011 10:28:03 +0000 (11:28 +0100)]
Trivial layout tweaks
Steve McIntyre [Fri, 15 Apr 2011 10:08:34 +0000 (11:08 +0100)]
More wording / layout tweaks
Steve McIntyre [Fri, 15 Apr 2011 10:02:53 +0000 (11:02 +0100)]
Tweak wording slightly
Steve McIntyre [Thu, 14 Apr 2011 20:56:42 +0000 (21:56 +0100)]
cron script for polling and pulling backend db from cdimage.d.o
Steve McIntyre [Thu, 14 Apr 2011 20:44:48 +0000 (21:44 +0100)]
Add scraper to grab bits of text and style from d.o/CD/
Grab http://www.debian.org/CD/index.$LANG.html, split up and
search/replace some of the text to make it useful for the search CGI.
Steve McIntyre [Thu, 14 Apr 2011 20:41:30 +0000 (21:41 +0100)]
Add prettiness so we look more like the CD pages on d.o
Add support for reading in various lumps of html that we can scrape
from www.debian.org/CD/
Reference the standard debian.css stylesheet.
Refactor generation a little.
Steve McIntyre [Tue, 5 Apr 2011 18:15:11 +0000 (19:15 +0100)]
Add message to say exact lookups are faster
Steve McIntyre [Tue, 5 Apr 2011 18:12:23 +0000 (19:12 +0100)]
Count the results on the direct lookup too
Steve McIntyre [Tue, 5 Apr 2011 18:04:36 +0000 (19:04 +0100)]
If we're given an exact search term, shortcut
If we're given an exact term containing no glob characters, then we
may as well save a lot of time and just do the direct key lookup in
the database!
Simplify the two query scripts: make the actual search code
common. Might split out into a separate module later, or even combine
the scripts.
Steve McIntyre [Tue, 5 Apr 2011 17:41:23 +0000 (18:41 +0100)]
Add copyright headers and boilerplate
Steve McIntyre [Mon, 4 Apr 2011 13:10:09 +0000 (14:10 +0100)]
Simple tools to query the CD contents database
Two tools:
* find_file_db.pl is a command-line interface
* find_file.cgi is a simple web interface.
Steve McIntyre [Mon, 4 Apr 2011 12:57:36 +0000 (13:57 +0100)]
Initial code for generating CD contents database
Scan all the areas defined for .list.gz files, parse the contents and
build a hash database per area ready for users to work with.