cf54502a10b16c985ea28db17885d377226b6145
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) 
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 
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) {
modules/imap/include/hasaccount.php  21)   $uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/hasaccount.php 22)   $result = db_query("SELECT id from `mail`.`mailaccounts` WHERE uid=?", array($uid));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

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) 
modules/imap/include/hasaccount.php  27) if (! function_exists("user_has_vmail_domain"))
modules/imap/include/hasaccount.php  28) {
modules/imap/include/hasaccount.php  29)   function user_has_vmail_domain()
modules/imap/include/hasaccount.php  30)   {
modules/imap/include/hasaccount.php  31)         $role = $_SESSION['role'];
modules/imap/include/hasaccount.php  32)         if (! ($role & ROLE_SYSTEMUSER)) {
modules/imap/include/hasaccount.php  33)                 return false;
modules/imap/include/hasaccount.php  34)         }
modules/imap/include/hasaccount.php  35)         $uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/hasaccount.php 36)         $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 37)         $row = $result->fetch();