9a5176cea126c2204f24fcf369f13de73ac530b8
bernd zusätzliche include auch in...

bernd authored 16 years ago

1) <?php
2) 
bernd IMAP/POP3 nur den usern anz...

bernd authored 16 years ago

3) if (! function_exists("user_has_vmail_domain"))
bernd zusätzliche include auch in...

bernd authored 16 years ago

4) {
bernd IMAP/POP3 nur den usern anz...

bernd authored 16 years ago

5)   function user_has_vmail_domain() 
6)   {
bernd zusätzliche include auch in...

bernd authored 16 years ago

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

bernd authored 16 years ago

17)   }