96649f21ba18d07757afa9d98998f7a22c0d86a3
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;
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

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", [":masterdomain" => config("masterdomain"), ":uid" => $uid]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  29)     DEBUG("Found ".@$result->rowCount()." rows!");
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php  30)     $accounts = [];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  31)     if (@$result->rowCount() > 0) {
modules/email/include/mailaccounts.php  32)         while ($acc = @$result->fetch(PDO::FETCH_OBJ)) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php  33)             array_push($accounts, ['id'=> $acc->id, 'account' => $acc->account, 'mailbox' => $acc->maildir, 'cryptpass' => $acc->cryptpass, 'enabled' => ($acc->aktiv == 1)]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

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'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

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", [":masterdomain" => config("masterdomain"), ":uid" => $uid, ":mid" => $id]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

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);
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php  49)     $ret = ['account' => $acc->account, 'mailbox' => $acc->maildir,  'enabled' => ($acc->aktiv == 1)];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

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'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php  58)     $conditions = [];
modules/email/include/mailaccounts.php  59)     $values = [":id" => $id, ":uid" => $uid];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  60) 
modules/email/include/mailaccounts.php  61)     if (isset($arr['account'])) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php  62)         [$local, $domain] = explode('@', $arr['account'], 2);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

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'])) {
Bernd Wurst add password strength check...

Bernd Wurst authored 5 years ago

modules/email/include/mailaccounts.php  88)         $result = strong_password($arr['password']);
modules/email/include/mailaccounts.php  89)         if ($result !== true) {
modules/email/include/mailaccounts.php  90)             system_failure("Unsicheres Passwort: ".$result);
modules/email/include/mailaccounts.php  91)         }
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php  92)         $encpw = encrypt_mail_password($arr['password']);
modules/email/include/mailaccounts.php  93)         array_push($conditions, "`password`=:password");
modules/email/include/mailaccounts.php  94)         $values[":password"] = $encpw;
modules/email/include/mailaccounts.php  95)     }
modules/email/include/mailaccounts.php  96) 
modules/email/include/mailaccounts.php  97)     if (isset($arr['enabled'])) {
modules/email/include/mailaccounts.php  98)         array_push($conditions, "`aktiv`=:aktiv");
modules/email/include/mailaccounts.php  99)         $values[":aktiv"] = ($arr['enabled'] == 'Y' ? 1 : 0);
modules/email/include/mailaccounts.php 100)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

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

Hanno authored 6 years ago

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

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  105) }
modules/imap/include/mailaccounts.php  106) 
modules/imap/include/mailaccounts.php  107) function create_mailaccount($arr)
modules/imap/include/mailaccounts.php  108) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 109)     $values = [];
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)     if (($arr['account']) == '') {
modules/email/include/mailaccounts.php 112)         system_failure('empty account name!');
modules/email/include/mailaccounts.php 113)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

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

Hanno authored 6 years ago

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

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  116) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 117)     [$local, $domain] = explode('@', $arr['account'], 2);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 118)     if ($domain == config('masterdomain')) {
modules/email/include/mailaccounts.php 119)         $values[':domain'] = null;
modules/email/include/mailaccounts.php 120)     } else {
modules/email/include/mailaccounts.php 121)         $domain = new Domain((string) $domain);
modules/email/include/mailaccounts.php 122)         if ($domain->id == null) {
modules/email/include/mailaccounts.php 123)             $values[':domain'] = null;
modules/email/include/mailaccounts.php 124)         } else {
modules/email/include/mailaccounts.php 125)             $domain->ensure_userdomain();
modules/email/include/mailaccounts.php 126)             $values[':domain'] = $domain->id;
modules/email/include/mailaccounts.php 127)         }
bernd Erlaube wieder @schokokeks....

bernd authored 15 years ago

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

bernd authored 17 years ago

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

Hanno authored 6 years ago

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

bernd authored 17 years ago

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

Hanno authored 6 years ago

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

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  139) 
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['password'])) {
Bernd Wurst add password strength check...

Bernd Wurst authored 5 years ago

modules/email/include/mailaccounts.php 142)         $result = strong_password($arr['password']);
modules/email/include/mailaccounts.php 143)         if ($result !== true) {
modules/email/include/mailaccounts.php 144)             system_failure("Unsicheres Passwort: ".$result);
modules/email/include/mailaccounts.php 145)         }
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 146)         $values[':password'] = encrypt_mail_password($arr['password']);
modules/email/include/mailaccounts.php 147)     }
bernd webinterface => /webinterface

bernd authored 17 years ago

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

Hanno authored 6 years ago

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

bernd authored 17 years ago

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

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 154)     $fields = array_map(function ($k) {
modules/email/include/mailaccounts.php 155)         return substr($k, 1);
modules/email/include/mailaccounts.php 156)     }, array_keys($values));
modules/email/include/mailaccounts.php 157)     db_query("INSERT INTO mail.mailaccounts (".implode(',', $fields).") VALUES (".implode(",", array_keys($values)).")", $values);
modules/email/include/mailaccounts.php 158)     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  159) }
modules/imap/include/mailaccounts.php  160) 
Hanno remove whitespace in empty...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 161) 
bernd Auch mailaccounts können si...

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  162) function get_mailaccount_id($accountname)
modules/imap/include/mailaccounts.php  163) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

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

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  165) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 166)     $args = [":local" => $local,
modules/email/include/mailaccounts.php 167)                 ":domain" => $domain, ];
bernd Auch mailaccounts können si...

bernd authored 17 years ago

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

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 169)     $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 170)     if (($result->rowCount() == 0) && ($domain == config('masterdomain'))) {
modules/email/include/mailaccounts.php 171)         unset($args[':domain']);
modules/email/include/mailaccounts.php 172)         $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 173)     }
modules/email/include/mailaccounts.php 174)     if ($result->rowCount() != 1) {
modules/email/include/mailaccounts.php 175)         system_failure('account nicht eindeutig');
modules/email/include/mailaccounts.php 176)     }
modules/email/include/mailaccounts.php 177)     $acc = $result->fetch();
modules/email/include/mailaccounts.php 178)     return $acc['id'];
bernd Auch mailaccounts können si...

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  179) }
Hanno remove whitespace in empty...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 180) 
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  181) 
modules/imap/include/mailaccounts.php  182) function delete_mailaccount($id)
modules/imap/include/mailaccounts.php  183) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 184)     $id = (int) $id;
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 185)     db_query("DELETE FROM mail.mailaccounts WHERE id=?", [$id]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 186)     logger(LOG_INFO, "modules/imap/include/mailaccounts", "imap", "deleted account »{$id}«");
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  187) }
modules/imap/include/mailaccounts.php  188) 
modules/imap/include/mailaccounts.php  189) 
modules/imap/include/mailaccounts.php  190) function check_valid($acc)
modules/imap/include/mailaccounts.php  191) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 192)     $user = $_SESSION['userinfo'];
modules/email/include/mailaccounts.php 193)     DEBUG("Account-data: ".print_r($acc, true));
modules/email/include/mailaccounts.php 194)     DEBUG("User-data: ".print_r($user, true));
modules/email/include/mailaccounts.php 195)     if ($acc['mailbox'] != '') {
modules/email/include/mailaccounts.php 196)         if (substr($acc['mailbox'], 0, strlen($user['homedir'])+1) != $user['homedir'].'/') {
modules/email/include/mailaccounts.php 197)             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 198)         }
modules/email/include/mailaccounts.php 199)         if (! check_path($acc['mailbox'])) {
modules/email/include/mailaccounts.php 200)             return "Sie verwenden ungültige Zeichen in Ihrem Mailbox-Pfad.";
modules/email/include/mailaccounts.php 201)         }
modules/email/include/mailaccounts.php 202)     }
modules/email/include/mailaccounts.php 203) 
modules/email/include/mailaccounts.php 204)     if ($acc['account'] == '' || strpos($acc['account'], '@') == 0) {
modules/email/include/mailaccounts.php 205)         return "Es wurde kein Benutzername angegeben!";
modules/email/include/mailaccounts.php 206)     }
modules/email/include/mailaccounts.php 207)     if (strpos($acc['account'], '@') === false) {
modules/email/include/mailaccounts.php 208)         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 209)     }
modules/email/include/mailaccounts.php 210) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 211)     [$local, $domain] = explode('@', $acc['account'], 2);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 212)     verify_input_username($local);
modules/email/include/mailaccounts.php 213)     $tmpdomains = get_domain_list($user['customerno'], $user['uid']);
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 214)     $domains = [];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 215)     foreach ($tmpdomains as $dom) {
modules/email/include/mailaccounts.php 216)         $domains[] = $dom->fqdn;
modules/email/include/mailaccounts.php 217)     }
modules/email/include/mailaccounts.php 218) 
modules/email/include/mailaccounts.php 219)     if (array_search($domain, $domains) === false) {
modules/email/include/mailaccounts.php 220)         if ($domain == config('masterdomain')) {
modules/email/include/mailaccounts.php 221)             if (substr($local, 0, strlen($user['username'])) != $user['username'] || ($acc['account'][strlen($user['username'])] != '-' && $acc['account'][strlen($user['username'])] != '@')) {
modules/email/include/mailaccounts.php 222)                 return "Sie haben »@".config('masterdomain')."« als Domain-Teil angegeben, aber der Benutzer-Teil beginnt nicht mit Ihrem Benutzername!";
modules/email/include/mailaccounts.php 223)             }
modules/email/include/mailaccounts.php 224)         } else {
modules/email/include/mailaccounts.php 225)             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 226)         }
modules/email/include/mailaccounts.php 227)     }
modules/email/include/mailaccounts.php 228) 
modules/email/include/mailaccounts.php 229)     return '';
bernd webinterface => /webinterface

bernd authored 17 years ago

modules/imap/include/mailaccounts.php  230) }
modules/imap/include/mailaccounts.php  231) 
modules/imap/include/mailaccounts.php  232) 
bernd IMAP-Accounts deutlicher de...

bernd authored 15 years ago

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

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 235)     $uid = (int) $_SESSION['userinfo']['uid'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 236)     $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=?", [$uid]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 237)     if ($result->rowCount() > 0) {
modules/email/include/mailaccounts.php 238)         return true;
modules/email/include/mailaccounts.php 239)     }
modules/email/include/mailaccounts.php 240)     return false;
bernd IMAP-Accounts deutlicher de...

bernd authored 15 years ago

modules/email/include/mailaccounts.php 241) }
modules/email/include/mailaccounts.php 242) 
modules/email/include/mailaccounts.php 243) function user_has_only_vmail_domains()
modules/email/include/mailaccounts.php 244) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 245)     $uid = (int) $_SESSION['userinfo']['uid'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 246)     $result = db_query("SELECT id FROM mail.v_vmail_domains WHERE useraccount=?", [$uid]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 247)     // User hat keine VMail-Domains
modules/email/include/mailaccounts.php 248)     if ($result->rowCount() == 0) {
modules/email/include/mailaccounts.php 249)         return false;
modules/email/include/mailaccounts.php 250)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/mailaccounts.php 251)     $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=?", [$uid]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/mailaccounts.php 252)     // User hat keine Domains die nicht vmail-Domains sind
modules/email/include/mailaccounts.php 253)     if ($result->rowCount() == 0) {
modules/email/include/mailaccounts.php 254)         return true;
modules/email/include/mailaccounts.php 255)     }
bernd Keine Domains => Dann auch...

bernd authored 15 years ago

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