diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-23 11:25:37 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-04-23 11:25:37 +0000 |
| commit | 1cf161a0057bdeb25ab08c2bdc8ce5d73688624e (patch) | |
| tree | 3b9facab4d82b569d49c300a19450aa8bc7e21ed /roundcubemail/program/include/rcube_sqlite.inc | |
| parent | a7f183495283c0b60fb5dcb304e82c046c860167 (diff) | |
- code cleanup (mostly identation fixes)
git-svn-id: https://svn.roundcube.net/trunk@3553 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_sqlite.inc')
| -rw-r--r-- | roundcubemail/program/include/rcube_sqlite.inc | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/roundcubemail/program/include/rcube_sqlite.inc b/roundcubemail/program/include/rcube_sqlite.inc index 7cb5dc2f1..cc8086518 100644 --- a/roundcubemail/program/include/rcube_sqlite.inc +++ b/roundcubemail/program/include/rcube_sqlite.inc @@ -5,7 +5,7 @@ | program/include/rcube_sqlite.inc | | | | This file is part of the RoundCube Webmail client | - | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland | + | Copyright (C) 2005-2010, RoundCube Dev. - Switzerland | | Licensed under the GNU GPL | | | | PURPOSE: | @@ -28,50 +28,50 @@ function rcube_sqlite_from_unixtime($timestamp) - { - $timestamp = trim($timestamp); - if (!preg_match("/^[0-9]+$/is", $timestamp)) - $ret = strtotime($timestamp); - else - $ret = $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; - } + $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; +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; - } + 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"); - } +{ + 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); - } +{ + return md5($str); +} function rcube_sqlite_debug($str) - { - //console($str); - } +{ + //console($str); +} ?> |
