Browse Source

try to customize client detail page

andre 4 years ago
parent
commit
b9c672531d
1 changed files with 7 additions and 2 deletions
  1. 7 2
      zimbraSingle.php

+ 7 - 2
zimbraSingle.php

@@ -197,10 +197,15 @@ function zimbraSingle_ClientArea($params) {
         );
         return false;
     }
+    $clientInfo['basequota'] = $params['configoption2'] ? $params['configoption2'] : 1;
+    $clientInfo['addonquota'] = $params['configoptions']['addonQuota'] ? $params['configoptions']['addonQuota'] : 0;
+    $clientInfo['userquota'] = $clientInfo['basequota'] + $clientInfo['addonquota'];
     $webmailUrl = zimbraSingleFindAll($accountInfo, 'PUBLICMAILURL');
     $clientInfo['webmailurl'] = $webmailUrl[0]['DATA'];
-    $clientInfo['quota'] = $params['configoption2'];
-    return array();
+    return array(
+        'templatefile' => 'templates/clientarea',
+        'vars' => $clientInfo,
+    );
 }
 
 /**