Current time: 11-26-2024, 11:29 PM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TICKET/PATCH]: Mailboxquota im GUI einstellen.
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: [HowTo]: Mailboxquota im GUI einstellen.
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 ?
03-13-2009 07:07 PM
Visit this user's website Find all posts by this user
Thread Closed 


Messages In This Thread
RE: [HowTo]: Mailboxquota im GUI einstellen. - BeNe - 03-13-2009 07:07 PM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)