Ja, habe ich. Hier ein Patch zum diff:
Code:
--- /root/trunk/gui/reseller/domain_edit.php 2009-03-12 06:38:55.000000000 +0000
+++ domain_edit.php 2009-03-13 08:06:33.000000000 +0000
@@ -118,7 +118,7 @@
function load_user_data($user_id, $domain_id) {
$sql = Database::getInstance();
- global $domain_name, $domain_ip, $php_sup;
+ global $domain_name, $domain_ip, $php_sup, $mailquota;
global $cgi_supp , $sub, $als;
global $mail, $ftp, $sql_db;
global $sql_user, $traff, $disk;
@@ -154,6 +154,7 @@
) = generate_user_props($domain_id);;
load_additional_data($user_id, $domain_id);
+
} //End of load_user_data()
// Load additional data
@@ -216,6 +217,22 @@
$data = $res->FetchRow();
$username = $data['admin_name'];
+
+ //Mailbox Quotas
+ // Get domain data
+ $query = <<<SQL_QUERY
+ SELECT
+ quota
+ FROM
+ mail_users
+ WHERE
+ domain_id = ?
+SQL_QUERY;
+
+ $res = exec_query($sql, $query, array($domain_id));
+ $data = $res->FetchRow();
+
+ $mailquota = $data['quota']/1024/1024
} //End of load_additional_data()
// Show user data
@@ -588,4 +605,4 @@
unset_messages();
-?>
\ No newline at end of file
+?>
Sollte doch passen oder ?