From 79403ad709cedaa6b0337c21dcb65e97c27d93e2 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 23 Jun 2013 14:38:22 +0000 Subject: [PATCH] functions.inc.php: - delete unused function get_mailbox_properties() git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1481 a1433add-5e2c-0410-b055-b7f2511e0802 --- functions.inc.php | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index 54eab003..8660736c 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -525,46 +525,6 @@ function create_page_browser($idxfield, $querypart) { return $pagebrowser; } -// -// get_mailbox_properties -// Action: Get all the properties of a mailbox. -// Call: get_mailbox_properties (string mailbox) -// -function get_mailbox_properties ($username) { - global $CONF; - global $table_mailbox; - $query="SELECT * FROM $table_mailbox WHERE username='$username'"; - if ('pgsql'==$CONF['database_type']) { - $query=" - SELECT - *, - EXTRACT(epoch FROM created) AS uts_created, - EXTRACT(epoch FROM modified) AS uts_modified - FROM $table_mailbox - WHERE username='$username' - "; - } - $result = db_query ($query); - $row = db_array ($result['result']); - $list['name'] = $row['name']; - $list['maildir'] = $row['maildir']; - $list['quota'] = $row['quota']; - $list['domain'] = $row['domain']; - $list['created'] = $row['created']; - $list['modified'] = $row['modified']; - $list['active'] = $row['active']; - - if ($CONF['database_type'] == "pgsql") { - $list['active']=('t'==$row['active']) ? 1 : 0; - $list['created']= gmstrftime('%c %Z',$row['uts_created']); - $list['modified']= gmstrftime('%c %Z',$row['uts_modified']); - } else { - $list['active'] = $row['active']; - } - - return $list; -} - //