8d3da69039fd501f0664b6cfcf9c4945c4ad8383
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)   }