Skip to content

Commit 7466c63

Browse files
author
Tom Canac
committed
add thumbs system check
1 parent 6bde4f0 commit 7466c63

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

system_check.php

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
ini_set("memory_limit","256M");
33
$exif = "No";
44
$gd = "No";
5+
$thumbs = "No";
56
if (function_exists('exif_read_data')) $exif = "Yes";
67
if (extension_loaded('gd') && function_exists('gd_info')) $gd = "Yes";
7-
8+
if (is_dir('thumbs') && is_writable('thumbs')) $thumbs = "Yes";
89
?>
910
<!DOCTYPE html>
1011
<html>
@@ -72,7 +73,7 @@
7273
<?php echo phpversion(); ?>
7374
</div>
7475
<div class="right">
75-
<a href="http://www.php.net/" target="_blank">PHP</a> scripting language version 4.0 or greater is needed
76+
<a href="http://www.php.net/" target="_blank">PHP</a> scripting language version 4.0 or greater is needed.
7677
</div>
7778
<br />
7879

@@ -83,7 +84,7 @@
8384
<?php echo $gd; ?>
8485
</div>
8586
<div class="right">
86-
<a href="http://www.boutell.com/gd/" target="_blank">GD image manipulation</a> library is used to create thumbnails. Bundled since PHP 4.3
87+
<a href="http://www.boutell.com/gd/" target="_blank">GD image manipulation</a> library is used to create thumbnails. Bundled since PHP 4.3.
8788
</div>
8889
<br />
8990

@@ -94,7 +95,18 @@
9495
<?php echo $exif; ?>
9596
</div>
9697
<div class="right">
97-
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
98+
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.
99+
</div>
100+
<br />
101+
102+
<div class="left">
103+
Thumbnails caching
104+
</div>
105+
<div class="<?php if($thumbs == "Yes") echo 'middle-yes'; else echo 'middle-neutral' ?>">
106+
<?php echo $thumbs; ?>
107+
</div>
108+
<div class="right">
109+
You should let php create and use the 'thumbs" directory. MiniGal will be <b>much</b> faster.
98110
</div>
99111
<br />
100112

@@ -105,8 +117,10 @@
105117
<?php echo ini_get("memory_limit"); ?>
106118
</div>
107119
<div class="right">
108-
Memory is needed to create thumbnails. Bigger images uses more memory
120+
Memory is needed to create thumbnails. Bigger images uses more memory.
109121
</div>
122+
123+
110124

111125
<footer role="contentinfo">
112126
<a href="https://github.com/sebsauvage/MinigalNano" title="Powered by MiniGal Nano" target="_blank">

0 commit comments

Comments
 (0)