]> git.mjollnir.org Git - moodle.git/commitdiff
A new is_windows function
authormoodler <moodler>
Fri, 13 Feb 2004 08:34:39 +0000 (08:34 +0000)
committermoodler <moodler>
Fri, 13 Feb 2004 08:34:39 +0000 (08:34 +0000)
lib/moodlelib.php

index 398df3d31b9d773117b111789fdca60d06dd955e..c20f6346c98c284a101e15b9c78254b73be6306c 100644 (file)
@@ -1993,6 +1993,12 @@ function check_browser_version($brand="MSIE", $version=5.5) {
     return false;
 }
 
+function is_windows() {
+/// Detects whether the server is Windows
+    global $CFG;
+     
+    return strpos($CFG->dirroot, ':');
+}
 
 function ini_get_bool($ini_get_arg) {
 /// This function makes the return value of ini_get consistent if you are