Changeset 1321 in ExiteCMS for trunk/includes/dns_functions.php
- Timestamp:
- 02/28/08 00:25:43 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/dns_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/dns_functions.php
r1024 r1321 11 11 +----------------------------------------------------*/ 12 12 if (eregi("dns_functions.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 13 14 function CMS_getOS () {15 if (substr(PHP_OS, 0, 3) == 'WIN') {16 return "Windows";17 } elseif ( stristr(PHP_OS, "linux")) {18 return "Linux";19 } elseif ( stristr(PHP_OS, "SunOS")) {20 return "SunOS";21 } elseif ( stristr(PHP_OS, "Solaris")) {22 return "Solaris";23 } else {24 return "Other";25 }26 }27 13 28 14 // internal replacement for checkdnsrr, which works cross-platform
Note: See TracChangeset
for help on using the changeset viewer.
