system_check page updated

This commit is contained in:
Tom Canac 2014-02-01 15:28:07 +01:00
parent 9340afd5d3
commit 51e3c3e55f

View file

@ -1,115 +1,116 @@
<?php <?php
ini_set("memory_limit","256M"); ini_set("memory_limit","256M");
$exif = "No";
$exif = "No"; $gd = "No";
$gd = "No"; if (function_exists('exif_read_data')) $exif = "Yes";
if (function_exists('exif_read_data')) $exif = "Yes"; if (extension_loaded('gd') && function_exists('gd_info')) $gd = "Yes";
if (extension_loaded('gd') && function_exists('gd_info')) $gd = "Yes";
?> ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow">
<title>MiniGal Nano system check</title> <title>MiniGal Nano system check</title>
<style type="text/css"> <style type="text/css">
body { body {
background-color: #daddd8; background-color: #daddd8;
font: 12px Arial, Tahoma, "Times New Roman", serif; font: 12px Arial, Tahoma, "Times New Roman", serif;
} }
h1 { h1 {
font-size: 30px; font-size: 30px;
margin: 20px 0 5px 0; margin: 20px 0 5px 0;
letter-spacing: -2px; letter-spacing: -2px;
} }
div { div {
line-height: 20px; line-height: 20px;
} }
.left { .left {
width: 300px; width: 300px;
display: inline-table; display: inline-table;
background-color: #fdffbe; background-color: #fdffbe;
padding: 2px; padding: 2px;
} }
.middle-neutral { .middle-neutral {
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
width: 100px; width: 100px;
display: inline-table; display: inline-table;
background-color: #fdffbe; background-color: #fdffbe;
padding: 2px; padding: 2px;
} }
.middle-no { .middle-no {
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
width: 100px; width: 100px;
display: inline-table; display: inline-table;
background-color: #ff8181; background-color: #ff8181;
padding: 2px; padding: 2px;
} }
.middle-yes { .middle-yes {
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
width: 100px; width: 100px;
display: inline-table; display: inline-table;
background-color: #98ffad; background-color: #98ffad;
padding: 2px; padding: 2px;
} }
.right { .right {
width: 600px; width: 600px;
display: inline-table; display: inline-table;
background-color: #eaf1ea; background-color: #eaf1ea;
padding: 2px; padding: 2px;
} }
</style> </style>
</head>
<body> <body>
<h1>MiniGal Nano system check</h1> <h1>MiniGal Nano system check</h1>
<div class="left"> <div class="left">
PHP Version PHP Version
</div> </div>
<div class="<?php if(version_compare(phpversion(), "4.0", '>')) echo 'middle-yes'; else echo 'middle-no' ?>"> <div class="<?php if(version_compare(phpversion(), "4.0", '>')) echo 'middle-yes'; else echo 'middle-no' ?>">
<?php echo phpversion(); ?> <?php echo phpversion(); ?>
</div> </div>
<div class="right"> <div class="right">
<a href="http://www.php.net/" target="_blank">PHP</a> scripting language version 4.0 or greater is needed <a href="http://www.php.net/" target="_blank">PHP</a> scripting language version 4.0 or greater is needed
</div> </div>
<br /> <br />
<div class="left"> <div class="left">
GD library support GD library support
</div> </div>
<div class="<?php if($gd == "Yes") echo 'middle-yes'; else echo 'middle-no' ?>"> <div class="<?php if($gd == "Yes") echo 'middle-yes'; else echo 'middle-no' ?>">
<?php echo $gd; ?> <?php echo $gd; ?>
</div> </div>
<div class="right"> <div class="right">
<a href="http://www.boutell.com/gd/" target="_blank">GD image manipulation</a> library is used to create thumbnails. Bundled since PHP 4.3 <a href="http://www.boutell.com/gd/" target="_blank">GD image manipulation</a> library is used to create thumbnails. Bundled since PHP 4.3
</div> </div>
<br /> <br />
<div class="left"> <div class="left">
EXIF support EXIF support
</div> </div>
<div class="<?php if($exif == "Yes") echo 'middle-yes'; else echo 'middle-neutral' ?>"> <div class="<?php if($exif == "Yes") echo 'middle-yes'; else echo 'middle-neutral' ?>">
<?php echo $exif; ?> <?php echo $exif; ?>
</div> </div>
<div class="right"> <div class="right">
Ability to extract and display <a href="http://en.wikipedia.org/wiki/Exif" target="_blank">EXIF information</a>. The script will work without it, but not display image information Ability to extract and display <a href="http://en.wikipedia.org/wiki/Exif" target="_blank">EXIF information</a>. The script will work without it, but not display image information
</div> </div>
<br /> <br />
<div class="left"> <div class="left">
PHP memory limit PHP memory limit
</div> </div>
<div class="middle-neutral"> <div class="middle-neutral">
<?php echo ini_get("memory_limit"); ?> <?php echo ini_get("memory_limit"); ?>
</div> </div>
<div class="right"> <div class="right">
Memory is needed to create thumbnails. Bigger images uses more memory Memory is needed to create thumbnails. Bigger images uses more memory
</div> </div>
<br /><br /> <footer role="contentinfo">
<a href="http://www.minigal.dk/minigal-nano.html" target="_blank">Support website</a> <a href="https://github.com/tmos/miniboardnano" title="Powered by MiniGal Nano" target="_blank">
| <a href="http://www.minigal.dk/forum" target="_blank">Support forum</a> Made with miniboardNano by Tom Canac.
</a>
</footer>
</body> </body>
</html> </html>