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 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Diftraku
							
						 
					 | 
					
						
						
						
						
							
						
						
							3d66c7ce41
							
						
					 | 
					
						
						
							
							"Fix'd" the execute query to pass args array without binding, assuming the first value is at index 0 and the query uses questionmarks.
						
						
						
						
						
						
					 | 
					
						2011-03-05 03:11:29 +02:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							4b5795cc5b
							
						
					 | 
					
						
						
							
							fucking php, this took an hour to debug because it just dies with no error message -_-
						
						
						
						
						
						
					 | 
					
						2011-01-26 12:19:18 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							ee3c24117b
							
						
					 | 
					
						
						
							
							more pdo compat, database bits
						
						
						
						
						
						
					 | 
					
						2011-01-03 15:18:24 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							2532091ae8
							
						
					 | 
					
						
						
							
							PDO DSN handling (PS. PHP is retarded)
						
						
						
						
						
						
					 | 
					
						2011-01-01 16:59:41 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							7684def0f8
							
						
					 | 
					
						
						
							
							add get_pairs
						
						
						
						
						
						
					 | 
					
						2011-01-01 16:27:56 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							8b2e3262fe
							
						
					 | 
					
						
						
							
							clean up database API for completeness and sensibleness
						
						
						
						
						
						
					 | 
					
						2011-01-01 15:27:24 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							6b557983c4
							
						
					 | 
					
						
						
							
							more PDO compat
						
						
						
						
						
						
					 | 
					
						2010-12-31 20:25:03 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							8e63827c0f
							
						
					 | 
					
						
						
							
							PDO exceptions for error handling
						
						
						
						
						
						
					 | 
					
						2010-12-31 19:56:28 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							1d7b929871
							
						
					 | 
					
						
						
							
							convert parts of core/database to pdo
						
						
						
						
						
						
					 | 
					
						2010-12-31 19:29:15 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Christian Walde
							
						 
					 | 
					
						
						
						
						
							
						
						
							cd6015203e
							
						
					 | 
					
						
						
							
							replaced deprecated split with explode
						
						
						
						
						
						
					 | 
					
						2010-09-09 20:09:37 +02:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							23216d7549
							
						
					 | 
					
						
						
							
							for compiling under hiphop
						
						
						
						
						
						
					 | 
					
						2010-05-15 14:53:37 +01:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							9cb7946d69
							
						
					 | 
					
						
						
							
							make memcachecache pay attention to the URI
						
						
						
						
						
						
					 | 
					
						2010-03-25 10:53:02 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							74693f9d9f
							
						
					 | 
					
						
						
							
							make apc not warn
						
						
						
						
						
						
					 | 
					
						2010-02-02 18:14:31 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							387e13f9f0
							
						
					 | 
					
						
						
							
							activate caches if cache_dsn is set
						
						
						
						
						
						
					 | 
					
						2010-02-02 17:34:45 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							892214a0c7
							
						
					 | 
					
						
						
							
							APC cache mechanism, faster than memcache?
						
						
						
						
						
						
					 | 
					
						2010-02-02 17:12:40 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							efac91598c
							
						
					 | 
					
						
						
							
							SCORE_STRNORM = lowercase-if-necessary-for-comparison
						
						
						
						
						
						
					 | 
					
						2010-02-02 02:13:45 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							9ca5fcd51a
							
						
					 | 
					
						
						
							
							MemCache is already used...
						
						
						
						
						
						
					 | 
					
						2010-02-01 16:17:12 +00:00 | 
					
					
						
						
							
							
							
						
					 | 
				
			
				
					
						
							
							
								 
								Shish
							
						 
					 | 
					
						
						
						
						
							
						
						
							ad83c7634c
							
						
					 | 
					
						
						
							
							'PRAGMA foreign_keys' is SQLite-specific
						
						
						
						
						
						
					 | 
					
						2010-02-01 16:13:24 +00:00 | 
					
					
						
						
							
							
							
						
					 |