plugins/SpecialPageFuncs.php
changeset 871 4e45f191dc33
parent 868 75dcd8cf6232
child 953 323c4cd1aa37
--- a/plugins/SpecialPageFuncs.php	Fri Mar 20 09:13:17 2009 -0400
+++ b/plugins/SpecialPageFuncs.php	Fri Mar 20 09:13:37 2009 -0400
@@ -424,9 +424,9 @@
     $platform = 'Linux';
   else if(file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/
     $platform = 'GNU/Hurd';
-  else if(file_exists('C:\Windows\system32\ntoskrnl.exe'))
+  else if(strtolower(PHP_OS) == 'winnt')
     $platform = 'Windows NT';
-  else if(file_exists('C:\Windows\system\krnl386.exe'))
+  else if(strtolower(PHP_OS) == 'win32')
     $platform = 'Windows 9x/DOS';
   else if(file_exists('/System/Library/CoreServices/SystemVersion.plist'))
     $platform = 'Mac OS X';