354c05a4ddd678c49bcbba458bffa7d13482139a
bernd zusätzliche include auch in...

bernd authored 17 years ago

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

Bernd Wurst authored 12 years ago

modules/email/include/hasdomain.php  2) /*
modules/email/include/hasdomain.php  3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/email/include/hasdomain.php  4) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 12 years ago

modules/email/include/hasdomain.php  6)   Bernd Wurst <bernd@schokokeks.org>
modules/email/include/hasdomain.php  7)   Hanno Böck <hanno@schokokeks.org>
modules/email/include/hasdomain.php  8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

modules/email/include/hasdomain.php  9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/include/hasdomain.php 10) 
modules/email/include/hasdomain.php 11) 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/hasdomain.php 12) */
bernd zusätzliche include auch in...

bernd authored 17 years ago

modules/vmail/include/hasdomain.php 13) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/email/include/hasdomain.php 14) if (!function_exists("user_has_vmail_domain")) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasdomain.php 15)     function user_has_vmail_domain()
modules/email/include/hasdomain.php 16)     {
modules/email/include/hasdomain.php 17)         $role = $_SESSION['role'];
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/email/include/hasdomain.php 18)         if (!($role & ROLE_SYSTEMUSER)) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasdomain.php 19)             return false;
modules/email/include/hasdomain.php 20)         }
modules/email/include/hasdomain.php 21)         $uid = (int) $_SESSION['userinfo']['uid'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

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

Hanno authored 6 years ago

modules/email/include/hasdomain.php 23)         $row = $result->fetch();
modules/email/include/hasdomain.php 24)         $count = $row[0];
modules/email/include/hasdomain.php 25)         DEBUG("User has {$count} vmail-domains");
modules/email/include/hasdomain.php 26)         return ((int) $count > 0);
modules/email/include/hasdomain.php 27)     }
bernd zusätzliche include auch in...

bernd authored 17 years ago

modules/vmail/include/hasdomain.php 28) }
modules/vmail/include/hasdomain.php 29) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/email/include/hasdomain.php 30) if (!function_exists("user_has_dotcourier_domain")) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasdomain.php 31)     function user_has_dotcourier_domain()
modules/email/include/hasdomain.php 32)     {
modules/email/include/hasdomain.php 33)         $role = $_SESSION['role'];
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/email/include/hasdomain.php 34)         if (!($role & ROLE_SYSTEMUSER)) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasdomain.php 35)             return false;
modules/email/include/hasdomain.php 36)         }
modules/email/include/hasdomain.php 37)         $uid = (int) $_SESSION['userinfo']['uid'];
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

modules/email/include/hasdomain.php 38)         $result = db_query("select 1 from mail.custom_mappings as c left join mail.v_domains as d on (d.id=c.domain) where d.user=:uid or c.uid=:uid UNION " .
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/hasdomain.php 39)             "SELECT 1 FROM mail.v_domains AS d WHERE d.user=:uid AND d.mail != 'none' AND d.id != ALL(SELECT domain FROM mail.virtual_mail_domains)", [":uid" => $uid]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasdomain.php 40)         $ret = ($result->rowCount() > 0);
modules/email/include/hasdomain.php 41)         if ($ret) {
modules/email/include/hasdomain.php 42)             DEBUG("User {$uid} has dotcourier-domains");
Bernd Wurst fix undefined variable

Bernd Wurst authored 5 years ago

modules/email/include/hasdomain.php 43)             return true;
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasdomain.php 44)         }
Bernd Wurst fix undefined variable

Bernd Wurst authored 5 years ago

modules/email/include/hasdomain.php 45)         return false;
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasdomain.php 46)     }