[eluser]Unknown[/eluser]
Awesome library!!!
a port she to use PDO:
qlite3
changes:
* In Auth library replace
Code:
$password_hash = $this->encryption_method."(concat(".str_replace("%password%", $this->CI->db->escape($user_password), str_replace("%salt%", $user_database_config['user_salt_column'], str_replace(".", ", ", $this->encryption_order)))."))";
with
Code:
$password_hash = $this->encryption_method."(".str_replace("%password%", $this->CI->db->escape($user_password), str_replace("%salt%", $user_database_config['user_salt_column'], str_replace(".", " || ", $this->encryption_order))).")";/* Use native SQL concat */
* In Sqlite_driver
in begining of function db_select()
add rows
Code:
@$this->conn_id->sqliteCreateFunction('md5', 'md5', 1);
@$this->conn_id->sqliteCreateFunction('sha1', 'sha1', 1);
@$this->conn_id->sqliteCreateFunction('sha', 'sha1', 1);/*Not cool*/