From 392354df0a4f2c21aabad2f1b527448251a60f99 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 26 Jul 2008 07:43:18 +0000 Subject: switched to sha() password encryption not using sha2 because of limitations of amarok, also added some caching and fixed some misc bugs --- lib/class/dba.class.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'lib/class/dba.class.php') diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php index 4f97f6db..7cee79ed 100644 --- a/lib/class/dba.class.php +++ b/lib/class/dba.class.php @@ -67,6 +67,28 @@ class Dba { } // query + /** + * read + * This is a wrapper for query, it's so that in the future if we ever wanted + * to split reads and writes we could + */ + public static function read($sql) { + + return self::query($sql); + + } // read + + /** + * write + * This is a wrapper for a write query, it is so that we can split out reads and + * writes if we want to + */ + public static function write($sql) { + + return self::query($sql); + + } // write + /** * escape * This runs a escape on a variable so that it can be safely inserted -- cgit