jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							e838fc2a03
							
						
					 | 
					
						
						
							
							Comment this in case someone else wonders why its there.
						
						
						
						
						
						
					 | 
					
						2014-04-19 04:17:58 -04:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							28d83fda0d
							
						
					 | 
					
						
						
							
							Even more linting and cleaning.
						
						
						
						
						
						
					 | 
					
						2014-04-19 02:33:34 -04:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							2da8c19a07
							
						
					 | 
					
						
						
							
							More linting!
						
						
						
						
						
						
					 | 
					
						2014-04-19 01:36:18 -04:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							f72bfbb050
							
						
					 | 
					
						
						
							
							fix indentation
						
						
						
						
						
						
					 | 
					
						2014-04-06 20:47:01 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							c8aa3327a1
							
						
					 | 
					
						
						
							
							A bunch of small changes from scrutinizer-ci; some tidying, some actual bug fixes
						
						
						
						
						
						
					 | 
					
						2014-03-30 13:26:48 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							7b68d8ebfd
							
						
					 | 
					
						
						
							
							use new-style constructors everywhere
						
						
						
						
						
						
					 | 
					
						2014-03-22 09:00:59 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							7eb2bd9112
							
						
					 | 
					
						
						
							
							Trimming trailing blank space.
						
						
						
						
						
						
					 | 
					
						2014-02-22 15:42:09 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							ba0aef4f30
							
						
					 | 
					
						
						
							
							The Database class should really throw an error here. This will likely break the existing tests.
						
						
						
						
						
						
					 | 
					
						2014-02-22 00:40:14 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							7d90c20297
							
						
					 | 
					
						
						
							
							Cleaning up.
						
						
						
						
						
						
					 | 
					
						2014-02-19 16:16:01 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							a90f5bed8e
							
						
					 | 
					
						
						
							
							This would be a good idea.
						
						
						
						
						
						
					 | 
					
						2014-02-19 02:50:10 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							b570ef1573
							
						
					 | 
					
						
						
							
							Forgot a bracket.
						
						
						
						
						
						
					 | 
					
						2014-02-19 02:17:23 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							2ca74a3b33
							
						
					 | 
					
						
						
							
							Expose methods to allow users of the database class to control when transactions occur.
						
						
						
						
						
						
					 | 
					
						2014-02-19 02:12:56 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							ced3006915
							
						
					 | 
					
						
						
							
							At its finest.
						
						
						
						
						
						
					 | 
					
						2014-02-18 21:25:08 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							892b323c4d
							
						
					 | 
					
						
						
							
							21st century debugging
						
						
						
						
						
						
					 | 
					
						2014-02-18 20:58:08 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							741eb0f739
							
						
					 | 
					
						
						
							
							I too like to live dangerously.
						
						
						
						
						
						
					 | 
					
						2014-02-18 20:49:20 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							fe83e3d343
							
						
					 | 
					
						
						
							
							Adding comments to help explain the simpletest setup.
						
						
						
						
						
						
					 | 
					
						2014-02-17 13:59:41 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								jgen
							
						 
					 | 
					
						
						
						
						
							
						
						
							bf4d434c86
							
						
					 | 
					
						
						
							
							Fixes for the installer. Display error messages on failures, as well as actually check for tables before installing.
						
						
						
						
						
						
					 | 
					
						2013-11-28 00:31:09 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							30886b3a69
							
						
					 | 
					
						
						
							
							cache lookup debugging
						
						
						
						
						
						
					 | 
					
						2013-07-05 22:32:16 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							19c0868b2c
							
						
					 | 
					
						
						
							
							sqlite got case sensitive by default at some point - lowercase strings for comparing them
						
						
						
						
						
						
					 | 
					
						2013-06-13 10:34:47 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							c9491ad714
							
						
					 | 
					
						
						
							
							Get SQLite:scoreql_to_sql to return something
						
						
						
						
						
						
					 | 
					
						2013-01-31 08:07:19 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							b141632785
							
						
					 | 
					
						
						
							
							some mock objects, for testing (coming soon, maybe)
						
						
						
						
						
						
					 | 
					
						2012-10-16 22:58:47 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							112422a2ca
							
						
					 | 
					
						
						
							
							time and timestamp are incompatible
						
						
						
						
						
						
					 | 
					
						2012-07-28 12:07:46 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							acf285bd68
							
						
					 | 
					
						
						
							
							IPs are variable length
						
						
						
						
						
						
					 | 
					
						2012-07-28 11:57:22 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							53ad7d4a2f
							
						
					 | 
					
						
						
							
							more sqlite, and indexes
						
						
						
						
						
						
					 | 
					
						2012-06-27 00:08:51 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							02a286cba0
							
						
					 | 
					
						
						
							
							sqlite updates
						
						
						
						
						
						
					 | 
					
						2012-06-26 23:46:38 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							38f7555d98
							
						
					 | 
					
						
						
							
							get rid of direct references to Database's engine
						
						
						
						
						
						
					 | 
					
						2012-06-24 00:57:55 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							d313cea8a7
							
						
					 | 
					
						
						
							
							create the DB connection on demand; some pages don't require one at all thanks to caching
						
						
						
						
						
						
					 | 
					
						2012-06-24 00:50:13 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							008cc4253b
							
						
					 | 
					
						
						
							
							wibble database / cache connection functions, make them repeatable, and set persistant DB connections as an option
						
						
						
						
						
						
					 | 
					
						2012-06-23 23:57:34 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							d3e2653002
							
						
					 | 
					
						
						
							
							some cached values are often zero (eg unread PMs), 'zero' is still a cache hit though, only 'false' is miss
						
						
						
						
						
						
					 | 
					
						2012-06-23 23:17:17 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								green-ponies (jgen)
							
						 
					 | 
					
						
						
						
						
							
						
						
							caec1ac824
							
						
					 | 
					
						
						
							
							Support multiple databases as well.
						
						
						
						
						
						
					 | 
					
						2012-04-18 00:55:39 -04:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							7ad3ae55f9
							
						
					 | 
					
						
						
							
							inet = char(45) in mysql, to fit IPv6 addrs
						
						
						
						
						
						
					 | 
					
						2012-04-01 15:44:43 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							15df989f72
							
						
					 | 
					
						
						
							
							nicer error reporting
						
						
						
						
						
						
					 | 
					
						2012-03-31 17:07:11 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							fd094050fc
							
						
					 | 
					
						
						
							
							move config file to data
						
						
						
						
						
						
					 | 
					
						2012-03-30 18:03:55 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							569e93cd6b
							
						
					 | 
					
						
						
							
							postgres requires a sequence name to be passed to get_last_insert_id
						
						
						
						
						
						
					 | 
					
						2012-03-08 02:55:04 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							f77c66848f
							
						
					 | 
					
						
						
							
							DB exception -> SCoreException
						
						
						
						
						
						
					 | 
					
						2012-02-16 16:58:39 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								green-ponies (jgen)
							
						 
					 | 
					
						
						
						
						
							
						
						
							a78ca78c9b
							
						
					 | 
					
						
						
							
							More changes to the install script.
						
						
						
						
						
						
						
						More error checking, better formating, etc.. 
						
						
					 | 
					
						2012-02-05 16:35:34 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							bbb51b60f8
							
						
					 | 
					
						
						
							
							typos~
						
						
						
						
						
						
					 | 
					
						2012-02-02 08:09:48 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							baa409eb98
							
						
					 | 
					
						
						
							
							special PDO init for hiphop
						
						
						
						
						
						
					 | 
					
						2012-02-02 07:43:43 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							e049ea874d
							
						
					 | 
					
						
						
							
							require php 5.2.6 (debian-old's oldest version), get rid of ancient compat
						
						
						
						
						
						
					 | 
					
						2012-02-01 16:51:38 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							853ea10fea
							
						
					 | 
					
						
						
							
							merge mass tagger
						
						
						
						
						
						
					 | 
					
						2012-01-31 14:28:34 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							aed5e1a30e
							
						
					 | 
					
						
						
							
							hand merge of speed tweaks
						
						
						
						
						
						
					 | 
					
						2012-01-31 13:20:43 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							c2689ba519
							
						
					 | 
					
						
						
							
							set remote addr in postgres connection
						
						
						
						
						
						
					 | 
					
						2012-01-31 12:16:19 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							8623ab2917
							
						
					 | 
					
						
						
							
							_count_execs actually works nicely for PDO, if called...
						
						
						
						
						
						
					 | 
					
						2012-01-30 04:56:08 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							f1d4fc700e
							
						
					 | 
					
						
						
							
							persist connections
						
						
						
						
						
						
					 | 
					
						2012-01-26 17:24:56 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							18e36f9b31
							
						
					 | 
					
						
						
							
							Rather than three levels of configuration, let's have two (define()'d values in config.php for system-level stuff, the web-editable config table for user-level stuff). Basically switches database_dsn from a global variable to a defined constant.
						
						
						
						
						
						
					 | 
					
						2012-01-20 03:15:58 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								green-ponies (jgen)
							
						 
					 | 
					
						
						
						
						
							
						
						
							26d383198a
							
						
					 | 
					
						
						
							
							More small changes for speed.
						
						
						
						
						
						
					 | 
					
						2012-01-11 15:57:00 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								green-ponies (jgen)
							
						 
					 | 
					
						
						
						
						
							
						
						
							ea15574226
							
						
					 | 
					
						
						
							
							Changes and tweaks for speed.
						
						
						
						
						
						
						
						Because every microsecond counts! :P
These changes are based on information from:
http://phpbench.com/
http://stackoverflow.com/questions/482202/is-there-a-performance-benefit-single-quote-vs-double-quote-in-php 
						
						
					 | 
					
						2012-01-11 15:08:27 -05:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							56a780bfd3
							
						
					 | 
					
						
						
							
							in per-letter mode, don't separate a and A
						
						
						
						
						
						
					 | 
					
						2012-01-01 16:54:44 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							9d9a960d1b
							
						
					 | 
					
						
						
							
							type->engine for mysql 5.5
						
						
						
						
						
						
					 | 
					
						2011-07-14 10:12:39 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							1abb96159b
							
						
					 | 
					
						
						
							
							PDO returns 'false' for no rows, but various parts of the code expect it to return 'null'; for now, emulate the old behaviour
						
						
						
						
						
						
					 | 
					
						2011-03-24 14:27:11 +00:00 | 
					
					
						
						
							
							
							
						
					 |