summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_db.inc
diff options
context:
space:
mode:
authorroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2005-11-06 19:26:45 +0000
committerroundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c>2005-11-06 19:26:45 +0000
commitc4c3624ba6b1ca47dc1434d4b606d25397480cbc (patch)
tree48cda1b3aaffa492e6ed1eb796c611a5ea2cc6ea /roundcubemail/program/include/rcube_db.inc
parenta9f64635ff48ca1acc281d6d199a6fe244360e38 (diff)
Added localized messages to client and check form input
git-svn-id: https://svn.roundcube.net/trunk@76 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_db.inc')
-rwxr-xr-xroundcubemail/program/include/rcube_db.inc18
1 files changed, 17 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_db.inc b/roundcubemail/program/include/rcube_db.inc
index 684ed49b9..f13ab55c0 100755
--- a/roundcubemail/program/include/rcube_db.inc
+++ b/roundcubemail/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)