plugins/SpecialPageFuncs.php
changeset 1377 fa2b0825bbc5
parent 1356 e80b5733ce9d
child 1378 e58294b867c1
--- a/plugins/SpecialPageFuncs.php	Wed Aug 21 22:13:58 2013 -0400
+++ b/plugins/SpecialPageFuncs.php	Wed Aug 21 22:34:54 2013 -0400
@@ -376,8 +376,7 @@
 	global $lang;
 	
 	$platform = 'Unknown';
-	$uname = @file_get_contents('/proc/sys/kernel/ostype');
-	if($uname == "Linux\n")
+	if(strtolower(PHP_OS) === 'linux')
 		$platform = 'Linux';
 	else if(@file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/
 		$platform = 'GNU/Hurd';
@@ -493,7 +492,7 @@
 			{
 				case 'MYSQL':
 					?>
-					<tr><td style="width: 100px;" class="row1"><?php echo $lang->get('meta_enano_about_lbl_mysqlversion'); ?></td><td class="row1"><?php echo mysql_get_server_info($db->_conn); ?></td></tr>
+					<tr><td style="width: 100px;" class="row1"><?php echo $lang->get('meta_enano_about_lbl_mysqlversion'); ?></td><td class="row1"><?php echo $db->get_server_version(); ?></td></tr>
 					<?php
 					break;
 				case 'PGSQL':