ce89952feb2f3679d3ac9274fbeb884bcd0c305a
bernd zusätzliche include auch in...

bernd authored 17 years ago

modules/vmail/include/hasdomain.php  1) <?php
modules/vmail/include/hasdomain.php  2) 
bernd IMAP/POP3 nur den usern anz...

bernd authored 16 years ago

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

bernd authored 17 years ago

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

bernd authored 16 years ago

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

bernd authored 17 years ago

modules/vmail/include/hasdomain.php  7) 	$role = $_SESSION['role'];
modules/vmail/include/hasdomain.php  8) 	if (! ($role & ROLE_SYSTEMUSER)) {
modules/vmail/include/hasdomain.php  9) 		return false;
modules/vmail/include/hasdomain.php 10) 	}
modules/vmail/include/hasdomain.php 11) 	$uid = (int) $_SESSION['userinfo']['uid'];
modules/vmail/include/hasdomain.php 12) 	$result = db_query("SELECT COUNT(*) FROM mail.v_vmail_domains WHERE useraccount='{$uid}'");
modules/vmail/include/hasdomain.php 13) 	$row = mysql_fetch_array($result);
modules/vmail/include/hasdomain.php 14) 	$count = $row[0];
modules/vmail/include/hasdomain.php 15) 	DEBUG("User has {$count} vmail-domains");
modules/vmail/include/hasdomain.php 16) 	return ( (int) $count > 0 );
bernd IMAP/POP3 nur den usern anz...

bernd authored 16 years ago

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

bernd authored 17 years ago

modules/vmail/include/hasdomain.php 18) }
modules/vmail/include/hasdomain.php 19) 
bernd IMAP/POP3 nur anzeigen wenn...

bernd authored 14 years ago

modules/email/include/hasdomain.php 20) if (! function_exists("user_has_dotcourier_domain"))
modules/email/include/hasdomain.php 21) {
modules/email/include/hasdomain.php 22)   function user_has_dotcourier_domain() 
modules/email/include/hasdomain.php 23)   {
modules/email/include/hasdomain.php 24) 	$role = $_SESSION['role'];
modules/email/include/hasdomain.php 25) 	if (! ($role & ROLE_SYSTEMUSER)) {
modules/email/include/hasdomain.php 26) 		return false;
modules/email/include/hasdomain.php 27) 	}
modules/email/include/hasdomain.php 28) 	$uid = (int) $_SESSION['userinfo']['uid'];
modules/email/include/hasdomain.php 29) 	$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 ". 
modules/email/include/hasdomain.php 30)             "SELECT 1 FROM mail.v_domains AS d WHERE d.user={$uid} AND d.id != ALL(SELECT domain FROM mail.virtual_mail_domains);");
modules/email/include/hasdomain.php 31)   $ret = (mysql_num_rows($result) > 0);
modules/email/include/hasdomain.php 32)   if ($ret)
modules/email/include/hasdomain.php 33)     DEBUG("User {$uid} has dotcourier-domains");
modules/email/include/hasdomain.php 34)   return $ret;
modules/email/include/hasdomain.php 35)   }  
modules/email/include/hasdomain.php 36) }
modules/email/include/hasdomain.php 37)