Changeset 1321 in ExiteCMS for trunk/includes/core_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/core_functions.php

    r1313 r1321  
    923923    } 
    924924} 
     925 
     926// get the OS type 
     927function CMS_getOS () { 
     928    if (substr(PHP_OS, 0, 3) == 'WIN') { 
     929        return "Windows"; 
     930    } elseif ( stristr(PHP_OS, "linux")) { 
     931        return "Linux"; 
     932    } elseif ( stristr(PHP_OS, "SunOS")) { 
     933        return "SunOS"; 
     934    } elseif ( stristr(PHP_OS, "Solaris")) { 
     935        return "Solaris"; 
     936    } else { 
     937        return "Other"; 
     938    } 
     939} 
    925940?> 
Note: See TracChangeset for help on using the changeset viewer.