equal
deleted
inserted
replaced
374 { |
374 { |
375 global $db, $session, $paths, $template, $plugins; // Common objects |
375 global $db, $session, $paths, $template, $plugins; // Common objects |
376 global $lang; |
376 global $lang; |
377 |
377 |
378 $platform = 'Unknown'; |
378 $platform = 'Unknown'; |
379 $uname = @file_get_contents('/proc/sys/kernel/ostype'); |
379 if(strtolower(PHP_OS) === 'linux') |
380 if($uname == "Linux\n") |
|
381 $platform = 'Linux'; |
380 $platform = 'Linux'; |
382 else if(@file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/ |
381 else if(@file_exists('/hurd/pfinet')) // I have a little experience with GNU/Hurd :-) http://hurdvm.enanocms.org/ |
383 $platform = 'GNU/Hurd'; |
382 $platform = 'GNU/Hurd'; |
384 else if(strtolower(PHP_OS) == 'winnt') |
383 else if(strtolower(PHP_OS) == 'winnt') |
385 $platform = 'Windows NT'; |
384 $platform = 'Windows NT'; |
491 <?php |
490 <?php |
492 switch(ENANO_DBLAYER) |
491 switch(ENANO_DBLAYER) |
493 { |
492 { |
494 case 'MYSQL': |
493 case 'MYSQL': |
495 ?> |
494 ?> |
496 <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> |
495 <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> |
497 <?php |
496 <?php |
498 break; |
497 break; |
499 case 'PGSQL': |
498 case 'PGSQL': |
500 $pg_serverdata = pg_version($db->_conn); |
499 $pg_serverdata = pg_version($db->_conn); |
501 $pg_version = $pg_serverdata['server']; |
500 $pg_version = $pg_serverdata['server']; |