summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/rcube_sqlite.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-04-13 08:52:02 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-04-13 08:52:02 +0000
commitd61fd77d83926d892645a15e00c3443d2a8a6368 (patch)
tree83ede4b27294a42a45ee988751f51182994e0de7 /roundcubemail/program/include/rcube_sqlite.inc
parent8a3df3f032059464ebaab2dde26ab0d24b186572 (diff)
- Merge devel-framework branch, resolved conflicts
git-svn-id: https://svn.roundcube.net/trunk@6073 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_sqlite.inc')
-rw-r--r--roundcubemail/program/include/rcube_sqlite.inc79
1 files changed, 0 insertions, 79 deletions
diff --git a/roundcubemail/program/include/rcube_sqlite.inc b/roundcubemail/program/include/rcube_sqlite.inc
deleted file mode 100644
index 3b74b2665..000000000
--- a/roundcubemail/program/include/rcube_sqlite.inc
+++ /dev/null
@@ -1,79 +0,0 @@
-<?php
-
-/*
- +-----------------------------------------------------------------------+
- | program/include/rcube_sqlite.inc |
- | |
- | This file is part of the Roundcube Webmail client |
- | Copyright (C) 2005-2010, The Roundcube Dev Team |
- | |
- | Licensed under the GNU General Public License version 3 or |
- | any later version with exceptions for skins & plugins. |
- | See the README file for a full license statement. |
- | |
- | PURPOSE: |
- | Provide callback functions for sqlite that will emulate |
- | sone MySQL functions |
- | |
- +-----------------------------------------------------------------------+
- | Author: Thomas Bruederli <roundcube@gmail.com> |
- +-----------------------------------------------------------------------+
-
- $Id$
-
-*/
-
-/**
- * Callback functions for sqlite database interface
- *
- * @package Database
- */
-
-
-function rcube_sqlite_from_unixtime($timestamp)
-{
- $timestamp = trim($timestamp);
- if (!preg_match('/^[0-9]+$/is', $timestamp))
- $ret = strtotime($timestamp);
- else
- $ret = $timestamp;
-
- $ret = date('Y-m-d H:i:s', $ret);
- rcube_sqlite_debug("FROM_UNIXTIME ($timestamp) = $ret");
- return $ret;
-}
-
-
-function rcube_sqlite_unix_timestamp($timestamp='')
-{
- $timestamp = trim($timestamp);
- if (!$timestamp)
- $ret = time();
- else if (!preg_match('/^[0-9]+$/is', $timestamp))
- $ret = strtotime($timestamp);
- else
- $ret = $timestamp;
-
- rcube_sqlite_debug("UNIX_TIMESTAMP ($timestamp) = $ret");
- return $ret;
-}
-
-
-function rcube_sqlite_now()
-{
- rcube_sqlite_debug("NOW() = ".date("Y-m-d H:i:s"));
- return date("Y-m-d H:i:s");
-}
-
-
-function rcube_sqlite_md5($str)
-{
- return md5($str);
-}
-
-
-function rcube_sqlite_debug($str)
-{
- //console($str);
-}
-