9086c9ad77db90633e0629e9e86a88366265ded0
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) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

modules/email/include/hasaccount.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/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) 
modules/email/include/hasaccount.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/hasaccount.php 10) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

modules/email/include/hasaccount.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/hasaccount.php 12) http://creativecommons.org/publicdomain/zero/1.0/
modules/email/include/hasaccount.php 13) 
modules/email/include/hasaccount.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/hasaccount.php 15) */
bernd Include vergessen

bernd authored 16 years ago

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

Hanno authored 5 years ago

modules/email/include/hasaccount.php 21)     $uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/hasaccount.php 22)     $result = db_query("SELECT id from `mail`.`mailaccounts` WHERE uid=?", array($uid));
modules/email/include/hasaccount.php 23)     DEBUG($result->rowCount()." accounts");
modules/email/include/hasaccount.php 24)     return ($result->rowCount() > 0);
bernd Include vergessen

bernd authored 16 years ago

modules/imap/include/hasaccount.php  25) }
modules/imap/include/hasaccount.php  26) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

modules/email/include/hasaccount.php 27) if (! function_exists("user_has_vmail_domain")) {
modules/email/include/hasaccount.php 28)     function user_has_vmail_domain()
modules/email/include/hasaccount.php 29)     {
bernd Include vergessen

bernd authored 16 years ago

modules/imap/include/hasaccount.php  30)         $role = $_SESSION['role'];
modules/imap/include/hasaccount.php  31)         if (! ($role & ROLE_SYSTEMUSER)) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

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

bernd authored 16 years ago

modules/imap/include/hasaccount.php  33)         }
modules/imap/include/hasaccount.php  34)         $uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

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

Bernd Wurst authored 10 years ago

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

bernd authored 16 years ago

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

Hanno authored 5 years ago

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