diff options
author | tcitworld <tcit@tcit.fr> | 2014-09-27 18:13:35 +0200 |
---|---|---|
committer | tcitworld <tcit@tcit.fr> | 2014-09-27 18:13:35 +0200 |
commit | a0822259e76fb5a52d268ba1671d13e0e512af94 (patch) | |
tree | 2de9fdf51eddda1e399c4ba9133ebd8f08ecdd65 /wallabag_compatibility_test.php | |
parent | 9b8283d0fc0290e3fe635f572a034bca959b34d8 (diff) | |
parent | bbfe6fa50b7fc375f25aca5bf465933af10d6467 (diff) | |
download | wallabag-a0822259e76fb5a52d268ba1671d13e0e512af94.tar.gz wallabag-a0822259e76fb5a52d268ba1671d13e0e512af94.tar.zst wallabag-a0822259e76fb5a52d268ba1671d13e0e512af94.zip |
Merge pull request #841 from wallabag/fixGDdetection
Fix #766 - GD detection
Diffstat (limited to 'wallabag_compatibility_test.php')
-rw-r--r-- | wallabag_compatibility_test.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/wallabag_compatibility_test.php b/wallabag_compatibility_test.php index da078623..a1fcdc2a 100644 --- a/wallabag_compatibility_test.php +++ b/wallabag_compatibility_test.php | |||
@@ -22,6 +22,7 @@ $parallel_ok = ((extension_loaded('http') && class_exists('HttpRequestPool')) || | |||
22 | $allow_url_fopen_ok = (bool)ini_get('allow_url_fopen'); | 22 | $allow_url_fopen_ok = (bool)ini_get('allow_url_fopen'); |
23 | $filter_ok = extension_loaded('filter'); | 23 | $filter_ok = extension_loaded('filter'); |
24 | $gettext_ok = function_exists("gettext"); | 24 | $gettext_ok = function_exists("gettext"); |
25 | $gd_ok = extension_loaded('gd'); | ||
25 | 26 | ||
26 | if (extension_loaded('xmlreader')) { | 27 | if (extension_loaded('xmlreader')) { |
27 | $xml_ok = true; | 28 | $xml_ok = true; |
@@ -236,6 +237,11 @@ if (isset($_GET['from'])){ | |||
236 | <td><a href="http://uk.php.net/manual/en/book.filter.php">Data filtering</a></td> | 237 | <td><a href="http://uk.php.net/manual/en/book.filter.php">Data filtering</a></td> |
237 | <td>Enabled</td> | 238 | <td>Enabled</td> |
238 | <?php echo ($filter_ok) ? '<td class="good">Enabled' : '<td class="pass">Disabled'; ?></td> | 239 | <?php echo ($filter_ok) ? '<td class="good">Enabled' : '<td class="pass">Disabled'; ?></td> |
240 | </tr> | ||
241 | <tr class="<?php echo ($gd_ok) ? 'enabled' : 'disabled'; ?>"> | ||
242 | <td><a href="http://php.net/manual/en/book.image.php">GD</a></td> | ||
243 | <td>Enabled</td> | ||
244 | <?php echo ($gd_ok) ? '<td class="good">Enabled' : '<td class="pass">Disabled'; ?></td> | ||
239 | </tr> | 245 | </tr> |
240 | <tr class="<?php echo ($tidy_ok) ? 'enabled' : 'disabled'; ?>"> | 246 | <tr class="<?php echo ($tidy_ok) ? 'enabled' : 'disabled'; ?>"> |
241 | <td><a href="http://php.net/tidy">Tidy</a></td> | 247 | <td><a href="http://php.net/tidy">Tidy</a></td> |
@@ -275,7 +281,7 @@ if (isset($_GET['from'])){ | |||
275 | <h3>What does this mean?</h3> | 281 | <h3>What does this mean?</h3> |
276 | <ol> | 282 | <ol> |
277 | <?php //if ($php_ok && $xml_ok && $pcre_ok && $mbstring_ok && $iconv_ok && $filter_ok && $zlib_ok && $tidy_ok && $curl_ok && $parallel_ok && $allow_url_fopen_ok): ?> | 283 | <?php //if ($php_ok && $xml_ok && $pcre_ok && $mbstring_ok && $iconv_ok && $filter_ok && $zlib_ok && $tidy_ok && $curl_ok && $parallel_ok && $allow_url_fopen_ok): ?> |
278 | <?php if ($php_ok && $xml_ok && $pcre_ok && $filter_ok && $tidy_ok && $curl_ok && $parallel_ok && $allow_url_fopen_ok && $gettext_ok && $parse_ini_ok): ?> | 284 | <?php if ($php_ok && $xml_ok && $pcre_ok && $filter_ok && $gd_ok && $tidy_ok && $curl_ok && $parallel_ok && $allow_url_fopen_ok && $gettext_ok && $parse_ini_ok): ?> |
279 | <li><em>You have everything you need to run <?php echo $app_name; ?> properly! Congratulations!</em></li> | 285 | <li><em>You have everything you need to run <?php echo $app_name; ?> properly! Congratulations!</em></li> |
280 | <?php else: ?> | 286 | <?php else: ?> |
281 | <?php if ($php_ok): ?> | 287 | <?php if ($php_ok): ?> |
@@ -312,6 +318,12 @@ if (isset($_GET['from'])){ | |||
312 | <li><strong>mbstring and iconv:</strong> <em>You do not have either of the extensions installed.</em> This will significantly impair your ability to read non-English feeds, as well as even some English ones.</li> | 318 | <li><strong>mbstring and iconv:</strong> <em>You do not have either of the extensions installed.</em> This will significantly impair your ability to read non-English feeds, as well as even some English ones.</li> |
313 | <?php endif; ?> | 319 | <?php endif; ?> |
314 | 320 | ||
321 | <?php if ($gd_ok): ?> | ||
322 | <li><strong>GD:</strong> You have <code>GD</code> support installed. <em>No problems here.</em></li> | ||
323 | <?php else: ?> | ||
324 | <li><strong>GD:</strong> The <code>GD</code> extension is not available. <?php echo $app_name; ?> will not be able to download pictures locally on your server.</li> | ||
325 | <?php endif; ?> | ||
326 | |||
315 | <?php if ($tidy_ok): ?> | 327 | <?php if ($tidy_ok): ?> |
316 | <li><strong>Tidy:</strong> You have <code>Tidy</code> support installed. <em>No problems here.</em></li> | 328 | <li><strong>Tidy:</strong> You have <code>Tidy</code> support installed. <em>No problems here.</em></li> |
317 | <?php else: ?> | 329 | <?php else: ?> |