geograph_web: Code changes

patches to apply to geograph_web-4842-2008-10-13.tar.gz

01_newline.diff
Newline cleanup, only "needed" to clean up the following patches.
05_typos.diff
Minor typos.
10_bugsearchcrash.diff
Don't crash on invalid number in search.php?i=XXXX
11_buggridbuilderschema.diff
Make gridbuilder work with new db schema.
12_bugzerodate.diff
Pictures have not been submitted on 01/01/1970.
13_bugcantmoderate.diff
Can't moderate because software wants me to remoderate although there is nothing to remoderate. Needs a real fix, though.
15_bugcronspam.diff
recreate_kml.php: Prevent cron from spamming.
16_bugmapfixer.diff
Fix db errors in mapfixer.
17_bugmapshift.diff
Don't change e/n variables.
18_bugtownpos.diff
Calculation of town positions: quad==0 leads to wron quad (+1), overlapping labels not always detected.
19_buggaztowns.diff
Make "$CONF['use_gazetteer'] = 'towns';" work.
20_exampleconf.diff
Add missing variables to the example config file and fix bug in creating references_all configuration: array_merge reindexes the array.
21_searchids.diff
Remove some hard coded search ids.
22_md5.diff
Don't save passwords as plain text. Use md5 hash, instead.
23_passchange.diff
Allow users to change their passwords.
24_color.diff
Enhance green/yellow contrast for color blind people.
25_forumids.diff
Try to remove hard coded forum ids. Need to find a better solution.
26_permissions.diff
File permission problem: Cron and web server have different uids.
27_loadavg.diff
No access to /proc/loadavg here...
28_google.diff
Google maps: fine grid for easier submission, satellite map, ...
29_test.diff
test.php: deal better with the conditions here
30_gridprefix.diff
Our grid prefixes are three characters wide.
31_noblacksquares.diff
Define color for percent_land==-1.
32_dontviewpendingphotograph.diff
Only moderators and the owner can access unmoderated images.
33_mapfixergridrefurl.diff
Fix gridref link in mapfixer.
34_statistics.diff
Make the statistics pages and some other pages work with arbitrary reference indexes.
39_gridpreflen.diff
Remove hard coded length of grid prefixes. Needs $CONF['gridpreflen'] to be set, see change of example configuration file in this patch.
40_coord.diff
Add coordinate conversion routines for UTM (zone 32).
41_initgridprefix.diff
Initial grid prefixes.
42_mapfixer.diff
Mapfixer: Use google maps.
43_towns.diff
Add some towns and make map.class.php use loc_towns for reference id 3. This needs a better fix, though.
50_mailfrom.diff
Change "header from" when sending mail, and specify envelope from. Cleanup needed.
51_url.diff
We are not www.geograph.org.uk.