cf54502a10b16c985ea28db17885d377226b6145
bernd zusätzliche include auch in...

bernd authored 16 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) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

modules/email/include/hasdomain.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/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) 
modules/email/include/hasdomain.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/hasdomain.php 10) 
modules/email/include/hasdomain.php 11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
modules/email/include/hasdomain.php 12) http://creativecommons.org/publicdomain/zero/1.0/
modules/email/include/hasdomain.php 13) 
modules/email/include/hasdomain.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/hasdomain.php 15) */
bernd zusätzliche include auch in...

bernd authored 16 years ago

modules/vmail/include/hasdomain.php 16) 
bernd IMAP/POP3 nur den usern anz...

bernd authored 16 years ago

modules/vmail/include/hasdomain.php 17) if (! function_exists("user_has_vmail_domain"))
bernd zusätzliche include auch in...

bernd authored 16 years ago

modules/vmail/include/hasdomain.php 18) {
bernd IMAP/POP3 nur den usern anz...

bernd authored 16 years ago

modules/vmail/include/hasdomain.php 19)   function user_has_vmail_domain() 
modules/vmail/include/hasdomain.php 20)   {
bernd zusätzliche include auch in...

bernd authored 16 years ago

modules/vmail/include/hasdomain.php 21) 	$role = $_SESSION['role'];
modules/vmail/include/hasdomain.php 22) 	if (! ($role & ROLE_SYSTEMUSER)) {
modules/vmail/include/hasdomain.php 23) 		return false;
modules/vmail/include/hasdomain.php 24) 	}
modules/vmail/include/hasdomain.php 25) 	$uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/hasdomain.php 26) 	$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/hasdomain.php 27) 	$row = $result->fetch();
bernd zusätzliche include auch in...

bernd authored 16 years ago

modules/vmail/include/hasdomain.php 28) 	$count = $row[0];
modules/vmail/include/hasdomain.php 29) 	DEBUG("User has {$count} vmail-domains");
modules/vmail/include/hasdomain.php 30) 	return ( (int) $count > 0 );
bernd IMAP/POP3 nur den usern anz...

bernd authored 16 years ago

modules/vmail/include/hasdomain.php 31)   }  
bernd zusätzliche include auch in...

bernd authored 16 years ago

modules/vmail/include/hasdomain.php 32) }
modules/vmail/include/hasdomain.php 33) 
bernd IMAP/POP3 nur anzeigen wenn...

bernd authored 14 years ago

modules/email/include/hasdomain.php 34) if (! function_exists("user_has_dotcourier_domain"))
modules/email/include/hasdomain.php 35) {
modules/email/include/hasdomain.php 36)   function user_has_dotcourier_domain() 
modules/email/include/hasdomain.php 37)   {
modules/email/include/hasdomain.php 38) 	$role = $_SESSION['role'];
modules/email/include/hasdomain.php 39) 	if (! ($role & ROLE_SYSTEMUSER)) {
modules/email/include/hasdomain.php 40) 		return false;
modules/email/include/hasdomain.php 41) 	}
modules/email/include/hasdomain.php 42) 	$uid = (int) $_SESSION['userinfo']['uid'];
Bernd Wurst Typo repariert

Bernd Wurst authored 10 years ago

modules/email/include/hasdomain.php 43) 	$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 ". 
Bernd Wurst email-Modul auf prepared-st...

Bernd Wurst authored 10 years ago

modules/email/include/hasdomain.php 44)             "SELECT 1 FROM mail.v_domains AS d WHERE d.user=:uid AND d.id != ALL(SELECT domain FROM mail.virtual_mail_domains)", array(":uid" => $uid));
Bernd Wurst Umstellung auf PDO-Datenban...

Bernd Wurst authored 10 years ago

modules/email/include/hasdomain.php 45)   $ret = ($result->rowCount() > 0);
bernd IMAP/POP3 nur anzeigen wenn...

bernd authored 14 years ago

modules/email/include/hasdomain.php 46)   if ($ret)
modules/email/include/hasdomain.php 47)     DEBUG("User {$uid} has dotcourier-domains");
modules/email/include/hasdomain.php 48)   return $ret;
modules/email/include/hasdomain.php 49)   }  
modules/email/include/hasdomain.php 50) }
modules/email/include/hasdomain.php 51)