Changeset 165

Show
Ignore:
Timestamp:
08/29/07 21:02:44 (17 months ago)
Author:
jonas
Message:

Improved: server_ip: you can configure more than one

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r164 r165  
    33        o Fixed: domain_add: default postmaster forwarding (#26) 
    44        o Fixed: default paths in runScipts.sh and installService.sh 
     5        o Improved: server_ip: you can configure more than one 
    56        o Improved: Default config now in extra file (copy to config.inc.php / mail_config.conf) (T. Genannt) 
    67CpVES 0.04 2007-08-25 - Jonas Genannt - <jonas.genannt@brachium-system.net> 
  • trunk/includes/config.inc.default.php

    r162 r165  
    1616$smarty->config_overwrite = false; 
    1717 
    18 //Server IP 
    19 $config['server_ip'] = "127.0.0.1"; 
     18//Server IP: add more ips: array("127.0.0.1", "123.123.123.123") 
     19$config['server_ip'] = array("127.0.0.1"); 
    2020 
    2121 
  • trunk/includes/sites/domain_add.php

    r163 r165  
    9696                                foreach($res_array as $value) 
    9797                                { 
    98                                         if ($value['ipaddr']==$config['server_ip']) 
     98                                        if (in_array($value['ipaddr'], $config['server_ip'])) 
    9999                                        { 
    100100                                                $this_server=true;