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


Ignore:
Timestamp:
02/28/08 00:25:43 (4 years ago)
Author:
hverton
Message:

updated the Securimage code
fixed non-working text validation code
moved CMS_getOS() from dns_functions.php to core_functions.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/dns_functions.php

    r1024 r1321  
    1111+----------------------------------------------------*/ 
    1212if (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 } 
    2713 
    2814// internal replacement for checkdnsrr, which works cross-platform 
Note: See TracChangeset for help on using the changeset viewer.