28667e96bdcc072a7485ff50021f54f555c59ea3
bernd Include vergessen

bernd authored 16 years ago

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

Bernd Wurst authored 12 years ago

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

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 12 years ago

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

Hanno Böck authored 2 years ago

modules/email/include/hasaccount.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/hasaccount.php 10) 
modules/email/include/hasaccount.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/hasaccount.php 12) */
bernd Include vergessen

bernd authored 16 years ago

modules/imap/include/hasaccount.php  13) 
modules/imap/include/hasaccount.php  14) require_once('inc/base.php');
modules/imap/include/hasaccount.php  15) 
modules/imap/include/hasaccount.php  16) function user_has_accounts()
modules/imap/include/hasaccount.php  17) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

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

Hanno Böck authored 3 years ago

modules/email/include/hasaccount.php 19)     $result = db_query("SELECT id from `mail`.`mailaccounts` WHERE uid=?", [$uid]);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasaccount.php 20)     DEBUG($result->rowCount()." accounts");
modules/email/include/hasaccount.php 21)     return ($result->rowCount() > 0);
bernd Include vergessen

bernd authored 16 years ago

modules/imap/include/hasaccount.php  22) }
modules/imap/include/hasaccount.php  23) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

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

Hanno authored 6 years ago

modules/email/include/hasaccount.php 25)     function user_has_vmail_domain()
modules/email/include/hasaccount.php 26)     {
bernd Include vergessen

bernd authored 16 years ago

modules/imap/include/hasaccount.php  27)         $role = $_SESSION['role'];
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

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

Hanno authored 6 years ago

modules/email/include/hasaccount.php 29)             return false;
bernd Include vergessen

bernd authored 16 years ago

modules/imap/include/hasaccount.php  30)         }
modules/imap/include/hasaccount.php  31)         $uid = (int) $_SESSION['userinfo']['uid'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/email/include/hasaccount.php 32)         $result = db_query("SELECT COUNT(*) FROM mail.v_vmail_domains WHERE useraccount=?", [$uid]);
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/hasaccount.php 33)         $row = $result->fetch();
bernd Include vergessen

bernd authored 16 years ago

modules/imap/include/hasaccount.php  34)         $count = $row[0];
modules/imap/include/hasaccount.php  35)         DEBUG("User has {$count} vmail-domains");
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/email/include/hasaccount.php 36)         return ((int) $count > 0);
modules/email/include/hasaccount.php 37)     }