From d60733055714bbe43b9f7d4f4ade8576f1042bb1 Mon Sep 17 00:00:00 2001 From: tcit Date: Wed, 26 Mar 2014 18:46:46 +0100 Subject: [PATCH] Improvements for compatibility_test file - gettext detection (not default on WAMP) ; part fix of #579 - added colors to make viewing what's wrong better and quicker (green/orange/red) - added a link to index.php if it's good --- wallabag_compatibility_test.php | 138 +++++++++++++++++++------------- 1 file changed, 82 insertions(+), 56 deletions(-) diff --git a/wallabag_compatibility_test.php b/wallabag_compatibility_test.php index 26dce018..51ea31e1 100644 --- a/wallabag_compatibility_test.php +++ b/wallabag_compatibility_test.php @@ -1,5 +1,5 @@ =')); $pcre_ok = extension_loaded('pcre'); @@ -11,6 +11,7 @@ $curl_ok = function_exists('curl_exec'); $parallel_ok = ((extension_loaded('http') && class_exists('HttpRequestPool')) || ($curl_ok && function_exists('curl_multi_init'))); $allow_url_fopen_ok = (bool)ini_get('allow_url_fopen'); $filter_ok = extension_loaded('filter'); +$gettext_ok = function_exists("gettext"); if (extension_loaded('xmlreader')) { $xml_ok = true; @@ -130,8 +131,6 @@ table#chart tr.enabled td { table#chart tr.disabled td, table#chart tr.disabled td a { - color:#999; - font-style:italic; } table#chart tr.disabled td a { @@ -154,6 +153,19 @@ div.chunk { background-color:transparent; font-style:italic; } + +.good{ +background-color:#52CC5B; +} +.bad{ +background-color:#F74343; +font-style:italic; +font-weight: bold; +} +.pass{ +background-color:#FF9500; +} + @@ -177,58 +189,63 @@ div.chunk { PHP 5.3.3 or higher - + - + XML Enabled - + Enabled, and sane' : 'Disabled, or broken'; ?> PCRE Enabled - + Enabled' : 'Disabled'; ?> Data filtering Enabled - + Enabled' : 'Disabled'; ?> Tidy Enabled - + Enabled' : 'Disabled'; ?> cURL Enabled - + Enabled' : 'Disabled'; ?> Parallel URL fetching Enabled - + Enabled' : 'Disabled'; ?> allow_url_fopen Enabled - - + Enabled' : 'Disabled'; ?> + + + gettext + Enabled + Enabled' : 'Disabled'; ?> + @@ -237,7 +254,7 @@ div.chunk {

What does this mean?

    - +
  1. You have everything you need to run properly! Congratulations!
  2. @@ -250,59 +267,66 @@ div.chunk {
  3. allow_url_fopen: You have allow_url_fopen enabled. No problems here.
  4. - -
  5. Data filtering: You have the PHP filter extension enabled. No problems here.
  6. + +
  7. Gettext: You have gettext enabled. No problems here.
  8. + + +
  9. Data filtering: You have the PHP filter extension enabled. No problems here.
  10. - -
  11. Zlib: You have Zlib enabled. This allows SimplePie to support GZIP-encoded feeds. No problems here.
  12. - -
  13. Zlib: The Zlib extension is not available. SimplePie will ignore any GZIP-encoding, and instead handle feeds as uncompressed text.
  14. - + +
  15. Zlib: You have Zlib enabled. This allows SimplePie to support GZIP-encoded feeds. No problems here.
  16. + +
  17. Zlib: The Zlib extension is not available. SimplePie will ignore any GZIP-encoding, and instead handle feeds as uncompressed text.
  18. + + + +
  19. mbstring and iconv: You have both mbstring and iconv installed! This will allow to handle the greatest number of languages. No problems here.
  20. + +
  21. mbstring: mbstring is installed, but iconv is not.
  22. + +
  23. iconv: iconv is installed, but mbstring is not.
  24. + +
  25. mbstring and iconv: You do not have either of the extensions installed. This will significantly impair your ability to read non-English feeds, as well as even some English ones.
  26. + + + +
  27. Tidy: You have Tidy support installed. No problems here.
  28. + +
  29. Tidy: The Tidy extension is not available. should still work with most feeds, but you may experience problems with some.
  30. + + + +
  31. cURL: You have cURL support installed. No problems here.
  32. + +
  33. cURL: The cURL extension is not available. SimplePie will use fsockopen() instead.
  34. + - -
  35. mbstring and iconv: You have both mbstring and iconv installed! This will allow to handle the greatest number of languages. No problems here.
  36. - -
  37. mbstring: mbstring is installed, but iconv is not.
  38. - -
  39. iconv: iconv is installed, but mbstring is not.
  40. - -
  41. mbstring and iconv: You do not have either of the extensions installed. This will significantly impair your ability to read non-English feeds, as well as even some English ones.
  42. - + +
  43. Parallel URL fetching: You have HttpRequestPool or curl_multi support installed. No problems here.
  44. + +
  45. Parallel URL fetching: HttpRequestPool or curl_multi support is not available. will use file_get_contents() instead to fetch URLs sequentially rather than in parallel.
  46. + - -
  47. Tidy: You have Tidy support installed. No problems here.
  48. -
  49. Tidy: The Tidy extension is not available. should still work with most feeds, but you may experience problems with some.
  50. +
  51. Data filtering: Your PHP configuration has the filter extension disabled. will not work here.
  52. - -
  53. cURL: You have cURL support installed. No problems here.
  54. - -
  55. cURL: The cURL extension is not available. SimplePie will use fsockopen() instead.
  56. - - - -
  57. Parallel URL fetching: You have HttpRequestPool or curl_multi support installed. No problems here.
  58. - -
  59. Parallel URL fetching: HttpRequestPool or curl_multi support is not available. will use file_get_contents() instead to fetch URLs sequentially rather than in parallel.
  60. - - -
  61. Data filtering: Your PHP configuration has the filter extension disabled. will not work here.
  62. - +
  63. GetText: The gettext extension is not available. The system we use to display wallabag in various languages is not available. will not work here.
  64. + -
  65. allow_url_fopen: Your PHP configuration has allow_url_fopen disabled. will not work here.
  66. +
  67. allow_url_fopen: Your PHP configuration has allow_url_fopen disabled. will not work here.
  68. -
  69. PCRE: Your PHP installation doesn't support Perl-Compatible Regular Expressions. will not work here.
  70. +
  71. PCRE: Your PHP installation doesn't support Perl-Compatible Regular Expressions. will not work here.
  72. -
  73. XML: Your PHP installation doesn't support XML parsing. will not work here.
  74. +
  75. XML: Your PHP installation doesn't support XML parsing. will not work here.
  76. -
  77. PHP: You are running an unsupported version of PHP. will not work here.
  78. +
  79. PHP: You are running an unsupported version of PHP. will not work here.
@@ -310,16 +334,18 @@ div.chunk {
- +

Bottom Line: Yes, you can!

Your webhost has its act together!

You can download the latest version of from wallabag.org.

+

If you already have done that, you should access the index.php file of your installation to configure and start using wallabag

Note: Passing this test does not guarantee that will run on your webhost — it only ensures that the basic requirements have been addressed. If you experience any problems, please let us know.

- +

Bottom Line: Yes, you can!

For most feeds, it'll run with no problems. There are certain languages that you might have a hard time with though.

You can download the latest version of from wallabag.org.

+

If you already have done that, you should access the index.php file of your installation to configure and start using wallabag

Note: Passing this test does not guarantee that will run on your webhost — it only ensures that the basic requirements have been addressed. If you experience any problems, please let us know.

Bottom Line: We're sorry…

-- 2.41.0