Changeset 1660 in ExiteCMS for trunk/includes/dns_functions.php


Ignore:
Timestamp:
08/21/08 16:07:21 (4 years ago)
Author:
hverton
Message:

updated the members list with better filters, and a sort option on username, email, last visit date and country.
Rewritten the setup procedure to make it more fail-safe
Fixed getmxxrr() function, to return the lowest MX record first
Added the compiled locale files for Dutch (setup/global)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/dns_functions.php

    r1416 r1660  
    5454    // for non-windows platforms, use the internal function 
    5555    if (CMS_getOS() != "Windows") { 
    56         return getmxrr($hostname, $mxhosts); 
     56        $result = getmxrr($hostname, $hosts, $weight); 
     57        if (!$result) { 
     58            return false; 
     59        } else { 
     60            // sort the result based on weight 
     61            $mxs = array(); 
     62            for ($i=0;$i<count($hosts);$i++) { 
     63                $mxs[$hosts[$i]] = $weight[$i]; 
     64            } 
     65            asort($mxs); 
     66            $mxhosts = array_keys($mxs); 
     67            return true; 
     68        } 
    5769    } 
    5870 
Note: See TracChangeset for help on using the changeset viewer.