2626dd47daad110c63a82c0560b134e2364eeac3
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php    1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/include/mailaccounts.php   2) /*
modules/email/include/mailaccounts.php   3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/email/include/mailaccounts.php   4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

modules/email/include/mailaccounts.php   5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/include/mailaccounts.php   6)   Bernd Wurst <bernd@schokokeks.org>
modules/email/include/mailaccounts.php   7)   Hanno Böck <hanno@schokokeks.org>
modules/email/include/mailaccounts.php   8) 
modules/email/include/mailaccounts.php   9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
modules/email/include/mailaccounts.php  10) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/include/mailaccounts.php  12) http://creativecommons.org/publicdomain/zero/1.0/
modules/email/include/mailaccounts.php  13) 
modules/email/include/mailaccounts.php  14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
modules/email/include/mailaccounts.php  15) */
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   16) 
modules/imap/include/mailaccounts.php   17) require_once('inc/debug.php');
bernd Logging aktiviert

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   18) require_once('inc/base.php');
bernd XSS/CSRF-Bugs behoben

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   19) require_once('inc/security.php');
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   20) 
bernd Domain-Klasse benutzen

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   21) require_once('class/domain.php');
modules/imap/include/mailaccounts.php   22) 
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/include/mailaccounts.php  23) require_once('common.php');
modules/email/include/mailaccounts.php  24) 
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   25) function mailaccounts($uid)
modules/imap/include/mailaccounts.php   26) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  27)     $uid = (int) $uid;
modules/email/include/mailaccounts.php  28)     $result = db_query("SELECT m.id,concat_ws('@',`m`.`local`,if(isnull(`m`.`domain`),:masterdomain,`d`.`domainname`)) AS `account`, `m`.`password` AS `cryptpass`,`m`.`maildir` AS `maildir`,aktiv from (`mail`.`mailaccounts` `m` left join `mail`.`v_domains` `d` on((`d`.`id` = `m`.`domain`))) WHERE m.uid=:uid ORDER BY if(isnull(`m`.`domain`),:masterdomain,`d`.`domainname`), local", array(":masterdomain" => config("masterdomain"), ":uid" => $uid));
modules/email/include/mailaccounts.php  29)     DEBUG("Found ".@$result->rowCount()." rows!");
modules/email/include/mailaccounts.php  30)     $accounts = array();
modules/email/include/mailaccounts.php  31)     if (@$result->rowCount() > 0) {
modules/email/include/mailaccounts.php  32)         while ($acc = @$result->fetch(PDO::FETCH_OBJ)) {
modules/email/include/mailaccounts.php  33)             array_push($accounts, array('id'=> $acc->id, 'account' => $acc->account, 'mailbox' => $acc->maildir, 'cryptpass' => $acc->cryptpass, 'enabled' => ($acc->aktiv == 1)));
modules/email/include/mailaccounts.php  34)         }
modules/email/include/mailaccounts.php  35)     }
modules/email/include/mailaccounts.php  36)     return $accounts;
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   37) }
modules/imap/include/mailaccounts.php   38) 
modules/imap/include/mailaccounts.php   39) function get_mailaccount($id)
modules/imap/include/mailaccounts.php   40) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  41)     $id = (int) $id;
modules/email/include/mailaccounts.php  42)     $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/mailaccounts.php  43)     $result = db_query("SELECT concat_ws('@',`m`.`local`,if(isnull(`m`.`domain`),:masterdomain,`d`.`domainname`)) AS `account`, `m`.`password` AS `cryptpass`,`m`.`maildir` AS `maildir`,aktiv from (`mail`.`mailaccounts` `m` left join `mail`.`v_domains` `d` on((`d`.`id` = `m`.`domain`))) WHERE m.id=:mid AND m.uid=:uid", array(":masterdomain" => config("masterdomain"), ":uid" => $uid, ":mid" => $id));
modules/email/include/mailaccounts.php  44)     DEBUG("Found ".$result->rowCount()." rows!");
modules/email/include/mailaccounts.php  45)     if ($result->rowCount() != 1) {
modules/email/include/mailaccounts.php  46)         system_failure('Dieser Mailaccount existiert nicht oder gehört Ihnen nicht');
modules/email/include/mailaccounts.php  47)     }
modules/email/include/mailaccounts.php  48)     $acc = $result->fetch(PDO::FETCH_OBJ);
modules/email/include/mailaccounts.php  49)     $ret = array('account' => $acc->account, 'mailbox' => $acc->maildir,  'enabled' => ($acc->aktiv == 1));
modules/email/include/mailaccounts.php  50)     DEBUG(print_r($ret, true));
modules/email/include/mailaccounts.php  51)     return $ret;
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   52) }
modules/imap/include/mailaccounts.php   53) 
modules/imap/include/mailaccounts.php   54) function change_mailaccount($id, $arr)
modules/imap/include/mailaccounts.php   55) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  56)     $id = (int) $id;
modules/email/include/mailaccounts.php  57)     $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/mailaccounts.php  58)     $conditions = array();
modules/email/include/mailaccounts.php  59)     $values = array(":id" => $id, ":uid" => $uid);
modules/email/include/mailaccounts.php  60) 
modules/email/include/mailaccounts.php  61)     if (isset($arr['account'])) {
modules/email/include/mailaccounts.php  62)         list($local, $domain) = explode('@', $arr['account'], 2);
modules/email/include/mailaccounts.php  63)         if ($domain == config('masterdomain')) {
modules/email/include/mailaccounts.php  64)             $values[':domain'] = null;
modules/email/include/mailaccounts.php  65)         } else {
modules/email/include/mailaccounts.php  66)             $domain = new Domain((string) $domain);
modules/email/include/mailaccounts.php  67)             if ($domain->id == null) {
modules/email/include/mailaccounts.php  68)                 $values[":domain"] = null;
modules/email/include/mailaccounts.php  69)             } else {
modules/email/include/mailaccounts.php  70)                 $domain->ensure_userdomain();
modules/email/include/mailaccounts.php  71)                 $values[":domain"] = $domain->id;
modules/email/include/mailaccounts.php  72)             }
modules/email/include/mailaccounts.php  73)         }
modules/email/include/mailaccounts.php  74)         $values[":local"] = $local;
modules/email/include/mailaccounts.php  75)         $conditions[] = "local=:local";
modules/email/include/mailaccounts.php  76)         $conditions[] = "domain=:domain";
modules/email/include/mailaccounts.php  77)     }
modules/email/include/mailaccounts.php  78)     if (isset($arr['mailbox'])) {
modules/email/include/mailaccounts.php  79)         array_push($conditions, "`maildir`=:maildir");
modules/email/include/mailaccounts.php  80)         if ($arr['mailbox'] == '') {
modules/email/include/mailaccounts.php  81)             $values[":maildir"] = null;
modules/email/include/mailaccounts.php  82)         } else {
modules/email/include/mailaccounts.php  83)             $values[":maildir"] = $arr['mailbox'];
modules/email/include/mailaccounts.php  84)         }
modules/email/include/mailaccounts.php  85)     }
modules/email/include/mailaccounts.php  86) 
modules/email/include/mailaccounts.php  87)     if (isset($arr['password'])) {
modules/email/include/mailaccounts.php  88)         $encpw = encrypt_mail_password($arr['password']);
modules/email/include/mailaccounts.php  89)         array_push($conditions, "`password`=:password");
modules/email/include/mailaccounts.php  90)         $values[":password"] = $encpw;
modules/email/include/mailaccounts.php  91)     }
modules/email/include/mailaccounts.php  92) 
modules/email/include/mailaccounts.php  93)     if (isset($arr['enabled'])) {
modules/email/include/mailaccounts.php  94)         array_push($conditions, "`aktiv`=:aktiv");
modules/email/include/mailaccounts.php  95)         $values[":aktiv"] = ($arr['enabled'] == 'Y' ? 1 : 0);
modules/email/include/mailaccounts.php  96)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php   97) 
modules/imap/include/mailaccounts.php   98) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  99)     db_query("UPDATE mail.mailaccounts SET ".implode(",", $conditions)." WHERE id=:id AND uid=:uid", $values);
modules/email/include/mailaccounts.php 100)     logger(LOG_INFO, "modules/imap/include/mailaccounts", "imap", "updated account »{$id}«");
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  101) }
modules/imap/include/mailaccounts.php  102) 
modules/imap/include/mailaccounts.php  103) function create_mailaccount($arr)
modules/imap/include/mailaccounts.php  104) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 105)     $values = array();
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  106) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 107)     if (($arr['account']) == '') {
modules/email/include/mailaccounts.php 108)         system_failure('empty account name!');
modules/email/include/mailaccounts.php 109)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  110) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 111)     $values[':uid'] = (int) $_SESSION['userinfo']['uid'];
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  112) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 113)     list($local, $domain) = explode('@', $arr['account'], 2);
modules/email/include/mailaccounts.php 114)     if ($domain == config('masterdomain')) {
modules/email/include/mailaccounts.php 115)         $values[':domain'] = null;
modules/email/include/mailaccounts.php 116)     } else {
modules/email/include/mailaccounts.php 117)         $domain = new Domain((string) $domain);
modules/email/include/mailaccounts.php 118)         if ($domain->id == null) {
modules/email/include/mailaccounts.php 119)             $values[':domain'] = null;
modules/email/include/mailaccounts.php 120)         } else {
modules/email/include/mailaccounts.php 121)             $domain->ensure_userdomain();
modules/email/include/mailaccounts.php 122)             $values[':domain'] = $domain->id;
modules/email/include/mailaccounts.php 123)         }
bernd Erlaube wieder @schokokeks....

bernd authored 15 years ago

modules/email/include/mailaccounts.php 124)     }
bernd Domain-Klasse benutzen

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  125) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 126)     $values[':local'] = $local;
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  127) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 128)     if (isset($arr['mailbox'])) {
modules/email/include/mailaccounts.php 129)         if ($arr['mailbox'] == '') {
modules/email/include/mailaccounts.php 130)             $values[':maildir'] = null;
modules/email/include/mailaccounts.php 131)         } else {
modules/email/include/mailaccounts.php 132)             $values[':maildir'] = $arr['mailbox'];
modules/email/include/mailaccounts.php 133)         }
modules/email/include/mailaccounts.php 134)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  135) 
modules/imap/include/mailaccounts.php  136) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 137)     if (isset($arr['password'])) {
modules/email/include/mailaccounts.php 138)         $values[':password'] = encrypt_mail_password($arr['password']);
modules/email/include/mailaccounts.php 139)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  140) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 141)     if (isset($arr['enabled'])) {
modules/email/include/mailaccounts.php 142)         $values[':aktiv'] = ($arr['enabled'] == 'Y' ? 1 : 0);
modules/email/include/mailaccounts.php 143)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  144) 
modules/imap/include/mailaccounts.php  145) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 146)     $fields = array_map(function ($k) {
modules/email/include/mailaccounts.php 147)         return substr($k, 1);
modules/email/include/mailaccounts.php 148)     }, array_keys($values));
modules/email/include/mailaccounts.php 149)     db_query("INSERT INTO mail.mailaccounts (".implode(',', $fields).") VALUES (".implode(",", array_keys($values)).")", $values);
modules/email/include/mailaccounts.php 150)     logger(LOG_INFO, "modules/imap/include/mailaccounts", "imap", "created account »{$arr['account']}«");
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  151) }
modules/imap/include/mailaccounts.php  152) 
bernd Auch mailaccounts können si...

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  153)     
modules/imap/include/mailaccounts.php  154) function get_mailaccount_id($accountname)
modules/imap/include/mailaccounts.php  155) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 156)     list($local, $domain) = explode('@', $accountname, 2);
bernd Auch mailaccounts können si...

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  157) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 158)     $args = array(":local" => $local,
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/mailaccounts.php 159)                 ":domain" => $domain);
bernd Auch mailaccounts können si...

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  160) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 161)     $result = db_query("SELECT acc.id FROM mail.mailaccounts AS acc LEFT JOIN mail.v_domains AS dom ON (dom.id=acc.domain) WHERE local=:local AND dom.domainname=:domain", $args);
modules/email/include/mailaccounts.php 162)     if (($result->rowCount() == 0) && ($domain == config('masterdomain'))) {
modules/email/include/mailaccounts.php 163)         unset($args[':domain']);
modules/email/include/mailaccounts.php 164)         $result = db_query("SELECT acc.id FROM mail.mailaccounts AS acc WHERE local=:local AND acc.domain IS NULL", $args);
modules/email/include/mailaccounts.php 165)     }
modules/email/include/mailaccounts.php 166)     if ($result->rowCount() != 1) {
modules/email/include/mailaccounts.php 167)         system_failure('account nicht eindeutig');
modules/email/include/mailaccounts.php 168)     }
modules/email/include/mailaccounts.php 169)     $acc = $result->fetch();
modules/email/include/mailaccounts.php 170)     return $acc['id'];
bernd Auch mailaccounts können si...

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  171) }
modules/imap/include/mailaccounts.php  172)     
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  173) 
modules/imap/include/mailaccounts.php  174) function delete_mailaccount($id)
modules/imap/include/mailaccounts.php  175) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 176)     $id = (int) $id;
modules/email/include/mailaccounts.php 177)     db_query("DELETE FROM mail.mailaccounts WHERE id=?", array($id));
modules/email/include/mailaccounts.php 178)     logger(LOG_INFO, "modules/imap/include/mailaccounts", "imap", "deleted account »{$id}«");
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  179) }
modules/imap/include/mailaccounts.php  180) 
modules/imap/include/mailaccounts.php  181) 
modules/imap/include/mailaccounts.php  182) function check_valid($acc)
modules/imap/include/mailaccounts.php  183) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 184)     $user = $_SESSION['userinfo'];
modules/email/include/mailaccounts.php 185)     DEBUG("Account-data: ".print_r($acc, true));
modules/email/include/mailaccounts.php 186)     DEBUG("User-data: ".print_r($user, true));
modules/email/include/mailaccounts.php 187)     if ($acc['mailbox'] != '') {
modules/email/include/mailaccounts.php 188)         if (substr($acc['mailbox'], 0, strlen($user['homedir'])+1) != $user['homedir'].'/') {
modules/email/include/mailaccounts.php 189)             return "Die Mailbox muss innerhalb des Home-Verzeichnisses liegen. Sie haben »".$acc['mailbox']."« als Mailbox angegeben, Ihr Home-Verzeichnis ist »".$user['homedir']."/«.";
modules/email/include/mailaccounts.php 190)         }
modules/email/include/mailaccounts.php 191)         if (! check_path($acc['mailbox'])) {
modules/email/include/mailaccounts.php 192)             return "Sie verwenden ungültige Zeichen in Ihrem Mailbox-Pfad.";
modules/email/include/mailaccounts.php 193)         }
modules/email/include/mailaccounts.php 194)     }
modules/email/include/mailaccounts.php 195) 
modules/email/include/mailaccounts.php 196)     if ($acc['account'] == '' || strpos($acc['account'], '@') == 0) {
modules/email/include/mailaccounts.php 197)         return "Es wurde kein Benutzername angegeben!";
modules/email/include/mailaccounts.php 198)     }
modules/email/include/mailaccounts.php 199)     if (strpos($acc['account'], '@') === false) {
modules/email/include/mailaccounts.php 200)         return "Es wurde kein Domain-Teil im Account-Name angegeben. Account-Namen müssen einen Domain-Teil enthalten. Im Zweifel versuchen Sie »@".config('masterdomain')."«.";
modules/email/include/mailaccounts.php 201)     }
modules/email/include/mailaccounts.php 202) 
modules/email/include/mailaccounts.php 203)     list($local, $domain) = explode('@', $acc['account'], 2);
modules/email/include/mailaccounts.php 204)     verify_input_username($local);
modules/email/include/mailaccounts.php 205)     $tmpdomains = get_domain_list($user['customerno'], $user['uid']);
modules/email/include/mailaccounts.php 206)     $domains = array();
modules/email/include/mailaccounts.php 207)     foreach ($tmpdomains as $dom) {
modules/email/include/mailaccounts.php 208)         $domains[] = $dom->fqdn;
modules/email/include/mailaccounts.php 209)     }
modules/email/include/mailaccounts.php 210) 
modules/email/include/mailaccounts.php 211)     if (array_search($domain, $domains) === false) {
modules/email/include/mailaccounts.php 212)         if ($domain == config('masterdomain')) {
modules/email/include/mailaccounts.php 213)             if (substr($local, 0, strlen($user['username'])) != $user['username'] || ($acc['account'][strlen($user['username'])] != '-' && $acc['account'][strlen($user['username'])] != '@')) {
modules/email/include/mailaccounts.php 214)                 return "Sie haben »@".config('masterdomain')."« als Domain-Teil angegeben, aber der Benutzer-Teil beginnt nicht mit Ihrem Benutzername!";
modules/email/include/mailaccounts.php 215)             }
modules/email/include/mailaccounts.php 216)         } else {
modules/email/include/mailaccounts.php 217)             return "Der angegebene Domain-Teil (»".htmlentities($domain, ENT_QUOTES, "UTF-8")."«) ist nicht für Ihren Account eingetragen. Sollte dies ein Fehler sein, wenden sie sich bitte an einen Administrator!";
modules/email/include/mailaccounts.php 218)         }
modules/email/include/mailaccounts.php 219)     }
modules/email/include/mailaccounts.php 220) 
modules/email/include/mailaccounts.php 221)     return '';
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  222) }
modules/imap/include/mailaccounts.php  223) 
modules/imap/include/mailaccounts.php  224) 
bernd IMAP-Accounts deutlicher de...

bernd authored 15 years ago

modules/email/include/mailaccounts.php 225) function imap_on_vmail_domain()
modules/email/include/mailaccounts.php 226) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 227)     $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/mailaccounts.php 228)     $result = db_query("SELECT m.id FROM mail.mailaccounts AS m INNER JOIN mail.virtual_mail_domains AS vd USING (domain) WHERE vd.hostname IS NULL AND m.uid=?", array($uid));
modules/email/include/mailaccounts.php 229)     if ($result->rowCount() > 0) {
modules/email/include/mailaccounts.php 230)         return true;
modules/email/include/mailaccounts.php 231)     }
modules/email/include/mailaccounts.php 232)     return false;
bernd IMAP-Accounts deutlicher de...

bernd authored 15 years ago

modules/email/include/mailaccounts.php 233) }
modules/email/include/mailaccounts.php 234) 
modules/email/include/mailaccounts.php 235) function user_has_only_vmail_domains()
modules/email/include/mailaccounts.php 236) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 237)     $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/mailaccounts.php 238)     $result = db_query("SELECT id FROM mail.v_vmail_domains WHERE useraccount=?", array($uid));
modules/email/include/mailaccounts.php 239)     // User hat keine VMail-Domains
modules/email/include/mailaccounts.php 240)     if ($result->rowCount() == 0) {
modules/email/include/mailaccounts.php 241)         return false;
modules/email/include/mailaccounts.php 242)     }
modules/email/include/mailaccounts.php 243)     $result = db_query("SELECT d.id FROM mail.v_domains AS d LEFT JOIN mail.v_vmail_domains AS vd USING (domainname) WHERE vd.id IS NULL AND d.user=?", array($uid));
modules/email/include/mailaccounts.php 244)     // User hat keine Domains die nicht vmail-Domains sind
modules/email/include/mailaccounts.php 245)     if ($result->rowCount() == 0) {
modules/email/include/mailaccounts.php 246)         return true;
modules/email/include/mailaccounts.php 247)     }
bernd Keine Domains => Dann auch...

bernd authored 15 years ago

modules/email/include/mailaccounts.php 248)     return false;