diff options
author | thomascube <thomas@roundcube.net> | 2005-11-06 19:26:45 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2005-11-06 19:26:45 +0000 |
commit | 10a699759d4f106f29c077a6d65d3b8d212825e5 (patch) | |
tree | d7a50bb94731e131a8a03c546ad3dbcaf0c4f1e1 /program/include/rcube_db.inc | |
parent | e0ddd4e6c03d533cc3f8427624e026cc20c88fa6 (diff) |
Added localized messages to client and check form input
Diffstat (limited to 'program/include/rcube_db.inc')
-rwxr-xr-x | program/include/rcube_db.inc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/program/include/rcube_db.inc b/program/include/rcube_db.inc index 684ed49b9..f13ab55c0 100755 --- a/program/include/rcube_db.inc +++ b/program/include/rcube_db.inc @@ -220,7 +220,17 @@ class rcube_db return $result->fetchRow(DB_FETCHMODE_ASSOC); } - function quoteIdentifier ( $str ) + + function quote($input, $type=null) + { + if (!$this->db_handle) + $this->db_connect('r'); + + return $this->db_handle->quote($input); + } + + + function quoteIdentifier($str) { if (!$this->db_handle) $this->db_connect('r'); @@ -228,6 +238,12 @@ class rcube_db return $this->db_handle->quoteIdentifier($str); } + function quote_identifier($str) + { + return $this->quoteIdentifier($str); + } + + function unixtimestamp($field) { switch($this->db_provider) |