1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-16 13:04:13 +02:00

Add check for postprocessing tools in path in webroot/check_system.php, #104.

This commit is contained in:
Mikael Roos
2015-10-18 18:13:12 +02:00
parent 1bd6fc8a2c
commit 9e2bd27c6e
4 changed files with 23 additions and 7 deletions

View File

@@ -4,6 +4,12 @@ echo 'Current PHP version: ' . phpversion() . '<br><br>';
echo 'Running on: ' . $_SERVER['SERVER_SOFTWARE'] . '<br><br>';
$no = extension_loaded('exif') ? null : 'NOT';
echo "Extension exif is $no loaded.<br>";
$no = extension_loaded('curl') ? null : 'NOT';
echo "Extension curl is $no loaded.<br>";
$no = extension_loaded('gd') ? null : 'NOT';
echo "Extension gd is $no loaded.<br>";
@@ -11,8 +17,13 @@ if (!$no) {
echo "<pre>", var_dump(gd_info()), "</pre>";
}
$no = extension_loaded('exif') ? null : 'NOT';
echo "Extension exif is $no loaded.<br>";
echo "<strong>Checking path for postprocessing tools</strong>";
$no = extension_loaded('curl') ? null : 'NOT';
echo "Extension curl is $no loaded.<br>";
echo "<br>optipng: ";
system("which optipng");
echo "<br>pngout: ";
system("which pngout");
echo "<br>jpegtran: ";
system("which jpegtran");