275e9418dbb2b2f25795ebacb76778c58b9d8e5a
bernd Include vergessen

bernd authored 16 years ago

modules/imap/include/hasaccount.php   1) <?php
modules/imap/include/hasaccount.php   2) 
modules/imap/include/hasaccount.php   3) require_once('inc/base.php');
modules/imap/include/hasaccount.php   4) 
modules/imap/include/hasaccount.php   5) function user_has_accounts()
modules/imap/include/hasaccount.php   6) {
modules/imap/include/hasaccount.php   7)   $uid = (int) $_SESSION['userinfo']['uid'];
modules/imap/include/hasaccount.php   8)   $result = db_query("SELECT id from `mail`.`mailaccounts` WHERE uid=$uid");
modules/imap/include/hasaccount.php   9)   DEBUG(mysql_num_rows($result)." accounts");
modules/imap/include/hasaccount.php  10)   return (mysql_num_rows($result) > 0);
modules/imap/include/hasaccount.php  11) }
modules/imap/include/hasaccount.php  12) 
modules/imap/include/hasaccount.php  13) if (! function_exists("user_has_vmail_domain"))
modules/imap/include/hasaccount.php  14) {
modules/imap/include/hasaccount.php  15)   function user_has_vmail_domain()
modules/imap/include/hasaccount.php  16)   {
modules/imap/include/hasaccount.php  17)         $role = $_SESSION['role'];
modules/imap/include/hasaccount.php  18)         if (! ($role & ROLE_SYSTEMUSER)) {
modules/imap/include/hasaccount.php  19)                 return false;
modules/imap/include/hasaccount.php  20)         }
modules/imap/include/hasaccount.php  21)         $uid = (int) $_SESSION['userinfo']['uid'];
modules/imap/include/hasaccount.php  22)         $result = db_query("SELECT COUNT(*) FROM mail.v_vmail_domains WHERE useraccount='{$uid}'");
modules/imap/include/hasaccount.php  23)         $row = mysql_fetch_array($result);
modules/imap/include/hasaccount.php  24)         $count = $row[0];
modules/imap/include/hasaccount.php  25)         DEBUG("User has {$count} vmail-domains");
modules/imap/include/hasaccount.php  26)         return ( (int) $count > 0 );
modules/imap/include/hasaccount.php  27)   }
modules/imap/include/hasaccount.php  28) }
modules/imap/include/hasaccount.php  29) 
modules/imap/include/hasaccount.php  30) function user_has_regular_domain()
modules/imap/include/hasaccount.php  31) {
modules/imap/include/hasaccount.php  32)   $result = db_query("SELECT id FROM kundendaten.domains AS dom WHERE id NOT IN (SELECT domain FROM mail.virtual_mail_domains WHERE hostname IS NULL)");
bernd Bisher nicht sichtbare warn...

bernd authored 16 years ago

modules/email/include/hasaccount.php 33)   return (mysql_num_rows($result) > 0);