Fixed some open_basedir errors in SpecialPageFuncs
authorDan
Mon, 16 Nov 2009 20:37:39 -0500
changeset 1137 9f928ce05b6b
parent 1136 8c664c96fccd
child 1138 a7b490f0c418
child 1140 d90e55caba3a
Fixed some open_basedir errors in SpecialPageFuncs
plugins/SpecialPageFuncs.php
--- a/plugins/SpecialPageFuncs.php	Mon Nov 16 00:06:55 2009 -0500
+++ b/plugins/SpecialPageFuncs.php	Mon Nov 16 20:37:39 2009 -0500
@@ -373,17 +373,17 @@
   $uname = @file_get_contents('/proc/sys/kernel/ostype');
   if($uname == "Linux\n")
     $platform = 'Linux';
-  else if(file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/
+  else if(@file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/
     $platform = 'GNU/Hurd';
   else if(strtolower(PHP_OS) == 'winnt')
     $platform = 'Windows NT';
   else if(strtolower(PHP_OS) == 'win32')
     $platform = 'Windows 9x/DOS';
-  else if(file_exists('/System/Library/CoreServices/SystemVersion.plist'))
+  else if(@file_exists('/System/Library/CoreServices/SystemVersion.plist'))
     $platform = 'Mac OS X';
-  else if(file_exists('/bin/bash'))
+  else if(@file_exists('/bin/bash'))
     $platform = 'Other GNU';
-  else if(is_dir('/bin'))
+  else if(@is_dir('/bin'))
     $platform = 'Other POSIX';
   $template->header();
   ?>
@@ -694,4 +694,4 @@
   echo enano_json_encode($dataset);
 }
 
-?>
\ No newline at end of file
+?>