Changeset 1660 in ExiteCMS for trunk/includes/dns_functions.php
- Timestamp:
- 08/21/08 16:07:21 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/dns_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/dns_functions.php
r1416 r1660 54 54 // for non-windows platforms, use the internal function 55 55 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 } 57 69 } 58 70
Note: See TracChangeset
for help on using the changeset viewer.
