plugins/SpecialPageFuncs.php
changeset 1137 9f928ce05b6b
parent 1090 6c84fb196026
child 1139 5d988bd8fa46
equal deleted inserted replaced
1136:8c664c96fccd 1137:9f928ce05b6b
   371   
   371   
   372   $platform = 'Unknown';
   372   $platform = 'Unknown';
   373   $uname = @file_get_contents('/proc/sys/kernel/ostype');
   373   $uname = @file_get_contents('/proc/sys/kernel/ostype');
   374   if($uname == "Linux\n")
   374   if($uname == "Linux\n")
   375     $platform = 'Linux';
   375     $platform = 'Linux';
   376   else if(file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/
   376   else if(@file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/
   377     $platform = 'GNU/Hurd';
   377     $platform = 'GNU/Hurd';
   378   else if(strtolower(PHP_OS) == 'winnt')
   378   else if(strtolower(PHP_OS) == 'winnt')
   379     $platform = 'Windows NT';
   379     $platform = 'Windows NT';
   380   else if(strtolower(PHP_OS) == 'win32')
   380   else if(strtolower(PHP_OS) == 'win32')
   381     $platform = 'Windows 9x/DOS';
   381     $platform = 'Windows 9x/DOS';
   382   else if(file_exists('/System/Library/CoreServices/SystemVersion.plist'))
   382   else if(@file_exists('/System/Library/CoreServices/SystemVersion.plist'))
   383     $platform = 'Mac OS X';
   383     $platform = 'Mac OS X';
   384   else if(file_exists('/bin/bash'))
   384   else if(@file_exists('/bin/bash'))
   385     $platform = 'Other GNU';
   385     $platform = 'Other GNU';
   386   else if(is_dir('/bin'))
   386   else if(@is_dir('/bin'))
   387     $platform = 'Other POSIX';
   387     $platform = 'Other POSIX';
   388   $template->header();
   388   $template->header();
   389   ?>
   389   ?>
   390   <br />
   390   <br />
   391   <div class="tblholder">
   391   <div class="tblholder">