Update to core login: password set/lock, start add PDO::Pgsql

The login class and edit interface has added lock/strict login and a
basic layout add for forced change password in X days (not yet
implemented)

Also start adding pdo interface wrapper class for pgsql
This commit is contained in:
Clemens Schwaighofer
2014-12-08 13:18:33 +09:00
parent 8c4527cf4a
commit fa6856eb2a
8 changed files with 411 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
* AUTHOR: Clemens "Gullevek" Schwaighofer (www.gullevek.org)
* CREATED: 2003/04/09
* SHORT DESCRIPTION:
* pgsq; wrapper calls
* pgsql wrapper calls
* HISTORY:
* 2008/04/16 (cs) wrapper for pg escape string
* 2007/01/11 (cs) add prepare/execute for postgres
@@ -96,16 +96,14 @@
}
// METHOD: _db_close
// PARAMS: optional database handler
// PARAMS: none
// RETURN: none
// DESC : wrapper for pg_close
public function _db_close($dbh = '')
public function _db_close()
{
if (!$dbh)
$dbh = $this->dbh;
if (is_resource($dbh))
if (@pg_connection_status($dbh) === PGSQL_CONNECTION_OK)
@pg_close($dbh);
if (is_resource($this->dbh))
if (@pg_connection_status($this->dbh) === PGSQL_CONNECTION_OK)
@pg_close($this->dbh);
}
// METHOD: _db_prepare