equal
deleted
inserted
replaced
422 $uname = @file_get_contents('/proc/sys/kernel/ostype'); |
422 $uname = @file_get_contents('/proc/sys/kernel/ostype'); |
423 if($uname == "Linux\n") |
423 if($uname == "Linux\n") |
424 $platform = 'Linux'; |
424 $platform = 'Linux'; |
425 else if(file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/ |
425 else if(file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/ |
426 $platform = 'GNU/Hurd'; |
426 $platform = 'GNU/Hurd'; |
427 else if(file_exists('C:\Windows\system32\ntoskrnl.exe')) |
427 else if(strtolower(PHP_OS) == 'winnt') |
428 $platform = 'Windows NT'; |
428 $platform = 'Windows NT'; |
429 else if(file_exists('C:\Windows\system\krnl386.exe')) |
429 else if(strtolower(PHP_OS) == 'win32') |
430 $platform = 'Windows 9x/DOS'; |
430 $platform = 'Windows 9x/DOS'; |
431 else if(file_exists('/System/Library/CoreServices/SystemVersion.plist')) |
431 else if(file_exists('/System/Library/CoreServices/SystemVersion.plist')) |
432 $platform = 'Mac OS X'; |
432 $platform = 'Mac OS X'; |
433 else if(file_exists('/bin/bash')) |
433 else if(file_exists('/bin/bash')) |
434 $platform = 'Other GNU'; |
434 $platform = 'Other GNU'; |