Ignore:
Timestamp:
12/10/12 10:17:26 (11 years ago)
Author:
cristiano
Message:

Ticket #3209 - Retirado configurações estaticas, comandos desnecessarios do conctactProvider

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zpush/config.php

    r7629 r7631  
    176176 
    177177 
    178     // ************************ 
    179     //  BackendIMAP settings 
    180     // ************************ 
    181     // Defines the server to which we want to connect 
    182     define('IMAP_SERVER', 'localhost'); 
    183     // connecting to default port (143) 
    184     define('IMAP_PORT', 143); 
    185     // best cross-platform compatibility (see http://php.net/imap_open for options) 
    186     define('IMAP_OPTIONS', '/notls/norsh'); 
    187     // overwrite the "from" header if it isn't set when sending emails 
    188     // options: 'username'    - the username will be set (usefull if your login is equal to your emailaddress) 
    189     //        'domain'    - the value of the "domain" field is used 
    190     //        '@mydomain.com' - the username is used and the given string will be appended 
    191     define('IMAP_DEFAULTFROM', ''); 
    192     // copy outgoing mail to this folder. If not set z-push will try the default folders 
    193     define('IMAP_SENTFOLDER', 'INBOX/Sent'); 
    194     // forward messages inline (default false - as attachment) 
    195     define('IMAP_INLINE_FORWARD', false); 
    196     // use imap_mail() to send emails (default) - if false mail() is used 
    197     define('IMAP_USE_IMAPMAIL', true); 
    198  
    199178 
    200179    // ************************ 
     
    300279 
    301280    $GLOBALS['connections']['db'] = pg_connect( $rs ); 
     281 
     282 
     283    $rs = pg_query( $GLOBALS['connections']['db'], 'SELECT * FROM phpgw_emailadmin' ); 
     284    $row = pg_fetch_assoc( $rs ); 
     285 
     286    // ************************ 
     287    //  BackendIMAP settings 
     288    // ************************ 
     289    // Defines the server to which we want to connect 
     290    define('IMAP_SERVER', $row['imapserver']); 
     291    // connecting to default port (143) 
     292    define('IMAP_PORT', $row['imapport']); 
     293    // best cross-platform compatibility (see http://php.net/imap_open for options) 
     294    define('IMAP_OPTIONS', $row['imapTLSEncryption'] == 'yes' ? '/tls/norsh' : '/notls/norsh'); 
     295 
     296    // overwrite the "from" header if it isn't set when sending emails 
     297    // options: 'username'    - the username will be set (usefull if your login is equal to your emailaddress) 
     298    //        'domain'    - the value of the "domain" field is used 
     299    //        '@mydomain.com' - the username is used and the given string will be appended 
     300 
     301    define('IMAP_DEFAULTFROM', ''); 
     302    // copy outgoing mail to this folder. If not set z-push will try the default folders 
     303    define('IMAP_SENTFOLDER', 'INBOX' . $row['imapdelimiter'] . $row['imapdefaultsentfolder']); 
     304    // forward messages inline (default false - as attachment) 
     305    define('IMAP_INLINE_FORWARD', false); 
     306    // use imap_mail() to send emails (default) - if false mail() is used 
     307    define('IMAP_USE_IMAPMAIL', true); 
     308 
     309 
    302310    $rs = pg_query( $GLOBALS['connections']['db'], 'SELECT app_id FROM phpgw_applications WHERE app_name = \'zpush\'' ); 
    303311    $row = pg_fetch_assoc( $rs ); 
Note: See TracChangeset for help on using the changeset viewer.