aboutsummaryrefslogtreecommitdiffhomepage
path: root/wallabag_compatibility_test.php
diff options
context:
space:
mode:
authortcitworld <tcit@tcit.fr>2014-05-18 19:00:51 +0200
committertcitworld <tcit@tcit.fr>2014-05-18 19:00:51 +0200
commit04b43dc097c3d69fd42d724b2cf082aff86d7272 (patch)
tree3eb36cf21a705c94a034e2937526a228bbbba730 /wallabag_compatibility_test.php
parent230fa05eb736ab58d4183ddb2932bc7c620a2dd4 (diff)
parentbecc5bfbf289b1dda65fea4761742f1998d2143a (diff)
downloadwallabag-04b43dc097c3d69fd42d724b2cf082aff86d7272.tar.gz
wallabag-04b43dc097c3d69fd42d724b2cf082aff86d7272.tar.zst
wallabag-04b43dc097c3d69fd42d724b2cf082aff86d7272.zip
Merge pull request #697 from tcitworld/dev
Up-to-date with me
Diffstat (limited to 'wallabag_compatibility_test.php')
-rw-r--r--wallabag_compatibility_test.php100
1 files changed, 56 insertions, 44 deletions
diff --git a/wallabag_compatibility_test.php b/wallabag_compatibility_test.php
index 7a52767c..d6f22156 100644
--- a/wallabag_compatibility_test.php
+++ b/wallabag_compatibility_test.php
@@ -8,6 +8,7 @@ $mbstring_ok = extension_loaded('mbstring');
8$iconv_ok = extension_loaded('iconv'); 8$iconv_ok = extension_loaded('iconv');
9$tidy_ok = function_exists('tidy_parse_string'); 9$tidy_ok = function_exists('tidy_parse_string');
10$curl_ok = function_exists('curl_exec'); 10$curl_ok = function_exists('curl_exec');
11$parse_ini_ok = function_exists('parse_ini_file');
11$parallel_ok = ((extension_loaded('http') && class_exists('HttpRequestPool')) || ($curl_ok && function_exists('curl_multi_init'))); 12$parallel_ok = ((extension_loaded('http') && class_exists('HttpRequestPool')) || ($curl_ok && function_exists('curl_multi_init')));
12$allow_url_fopen_ok = (bool)ini_get('allow_url_fopen'); 13$allow_url_fopen_ok = (bool)ini_get('allow_url_fopen');
13$filter_ok = extension_loaded('filter'); 14$filter_ok = extension_loaded('filter');
@@ -237,6 +238,11 @@ if (isset($_GET['from'])){
237 <td>Enabled</td> 238 <td>Enabled</td>
238 <?php echo (extension_loaded('curl')) ? '<td class="good">Enabled' : '<td class="pass">Disabled'; ?></td> 239 <?php echo (extension_loaded('curl')) ? '<td class="good">Enabled' : '<td class="pass">Disabled'; ?></td>
239 </tr> 240 </tr>
241 <tr class="<?php echo ($parse_ini_ok) ? 'enabled' : 'disabled'; ?>">
242 <td><a href="http://uk.php.net/manual/en/function.parse-ini-file.php">Parse ini file</td>
243 <td>Enabled</td>
244 <?php echo ($parse_ini_ok) ? '<td class="good">Enabled' : '<td class="bad">Disabled'; ?></td>
245 </tr>
240 <tr class="<?php echo ($parallel_ok) ? 'enabled' : 'disabled'; ?>"> 246 <tr class="<?php echo ($parallel_ok) ? 'enabled' : 'disabled'; ?>">
241 <td>Parallel URL fetching</td> 247 <td>Parallel URL fetching</td>
242 <td>Enabled</td> 248 <td>Enabled</td>
@@ -260,7 +266,7 @@ if (isset($_GET['from'])){
260 <h3>What does this mean?</h3> 266 <h3>What does this mean?</h3>
261 <ol> 267 <ol>
262 <?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): ?> 268 <?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): ?>
263 <?php if ($php_ok && $xml_ok && $pcre_ok && $filter_ok && $tidy_ok && $curl_ok && $parallel_ok && $allow_url_fopen_ok && $gettext_ok): ?> 269 <?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): ?>
264 <li><em>You have everything you need to run <?php echo $app_name; ?> properly! Congratulations!</em></li> 270 <li><em>You have everything you need to run <?php echo $app_name; ?> properly! Congratulations!</em></li>
265 <?php else: ?> 271 <?php else: ?>
266 <?php if ($php_ok): ?> 272 <?php if ($php_ok): ?>
@@ -275,47 +281,53 @@ if (isset($_GET['from'])){
275 281
276 <?php if ($gettext_ok): ?> 282 <?php if ($gettext_ok): ?>
277 <li><strong>Gettext:</strong> You have <code>gettext</code> enabled. <em>No problems here.</em></li> 283 <li><strong>Gettext:</strong> You have <code>gettext</code> enabled. <em>No problems here.</em></li>
278 284
279 <?php if ($filter_ok): ?> 285 <?php if ($parse_ini_ok): ?>
280 <li><strong>Data filtering:</strong> You have the PHP filter extension enabled. <em>No problems here.</em></li> 286
281 287 <?php if ($filter_ok): ?>
282 <?php if ($zlib_ok): ?> 288 <li><strong>Data filtering:</strong> You have the PHP filter extension enabled. <em>No problems here.</em></li>
283 <li><strong>Zlib:</strong> You have <code>Zlib</code> enabled. This allows SimplePie to support GZIP-encoded feeds. <em>No problems here.</em></li> 289
284 <?php else: ?> 290 <?php if ($zlib_ok): ?>
285 <li><strong>Zlib:</strong> The <code>Zlib</code> extension is not available. SimplePie will ignore any GZIP-encoding, and instead handle feeds as uncompressed text.</li> 291 <li><strong>Zlib:</strong> You have <code>Zlib</code> enabled. This allows SimplePie to support GZIP-encoded feeds. <em>No problems here.</em></li>
286 <?php endif; ?> 292 <?php else: ?>
287 293 <li><strong>Zlib:</strong> The <code>Zlib</code> extension is not available. SimplePie will ignore any GZIP-encoding, and instead handle feeds as uncompressed text.</li>
288 <?php if ($mbstring_ok && $iconv_ok): ?> 294 <?php endif; ?>
289 <li><strong>mbstring and iconv:</strong> You have both <code>mbstring</code> and <code>iconv</code> installed! This will allow <?php echo $app_name; ?> to handle the greatest number of languages. <em>No problems here.</em></li> 295
290 <?php elseif ($mbstring_ok): ?> 296 <?php if ($mbstring_ok && $iconv_ok): ?>
291 <li><strong>mbstring:</strong> <code>mbstring</code> is installed, but <code>iconv</code> is not.</li> 297 <li><strong>mbstring and iconv:</strong> You have both <code>mbstring</code> and <code>iconv</code> installed! This will allow <?php echo $app_name; ?> to handle the greatest number of languages. <em>No problems here.</em></li>
292 <?php elseif ($iconv_ok): ?> 298 <?php elseif ($mbstring_ok): ?>
293 <li><strong>iconv:</strong> <code>iconv</code> is installed, but <code>mbstring</code> is not.</li> 299 <li><strong>mbstring:</strong> <code>mbstring</code> is installed, but <code>iconv</code> is not.</li>
294 <?php else: ?> 300 <?php elseif ($iconv_ok): ?>
295 <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> 301 <li><strong>iconv:</strong> <code>iconv</code> is installed, but <code>mbstring</code> is not.</li>
296 <?php endif; ?> 302 <?php else: ?>
297 303 <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>
298 <?php if ($tidy_ok): ?> 304 <?php endif; ?>
299 <li><strong>Tidy:</strong> You have <code>Tidy</code> support installed. <em>No problems here.</em></li> 305
300 <?php else: ?> 306 <?php if ($tidy_ok): ?>
301 <li><strong>Tidy:</strong> The <code>Tidy</code> extension is not available. <?php echo $app_name; ?> should still work with most feeds, but you may experience problems with some.</li> 307 <li><strong>Tidy:</strong> You have <code>Tidy</code> support installed. <em>No problems here.</em></li>
302 <?php endif; ?> 308 <?php else: ?>
303 309 <li><strong>Tidy:</strong> The <code>Tidy</code> extension is not available. <?php echo $app_name; ?> should still work with most feeds, but you may experience problems with some.</li>
304 <?php if ($curl_ok): ?> 310 <?php endif; ?>
305 <li><strong>cURL:</strong> You have <code>cURL</code> support installed. <em>No problems here.</em></li> 311
306 <?php else: ?> 312 <?php if ($curl_ok): ?>
307 <li><strong>cURL:</strong> The <code>cURL</code> extension is not available. SimplePie will use <code>fsockopen()</code> instead.</li> 313 <li><strong>cURL:</strong> You have <code>cURL</code> support installed. <em>No problems here.</em></li>
308 <?php endif; ?> 314 <?php else: ?>
309 315 <li><strong>cURL:</strong> The <code>cURL</code> extension is not available. SimplePie will use <code>fsockopen()</code> instead.</li>
310 <?php if ($parallel_ok): ?> 316 <?php endif; ?>
311 <li><strong>Parallel URL fetching:</strong> You have <code>HttpRequestPool</code> or <code>curl_multi</code> support installed. <em>No problems here.</em></li> 317
312 <?php else: ?> 318 <?php if ($parallel_ok): ?>
313 <li><strong>Parallel URL fetching:</strong> <code>HttpRequestPool</code> or <code>curl_multi</code> support is not available. <?php echo $app_name; ?> will use <code>file_get_contents()</code> instead to fetch URLs sequentially rather than in parallel.</li> 319 <li><strong>Parallel URL fetching:</strong> You have <code>HttpRequestPool</code> or <code>curl_multi</code> support installed. <em>No problems here.</em></li>
314 <?php endif; ?> 320 <?php else: ?>
315 321 <li><strong>Parallel URL fetching:</strong> <code>HttpRequestPool</code> or <code>curl_multi</code> support is not available. <?php echo $app_name; ?> will use <code>file_get_contents()</code> instead to fetch URLs sequentially rather than in parallel.</li>
316 <?php else: ?> 322 <?php endif; ?>
317 <li><strong>Data filtering:</strong> Your PHP configuration has the filter extension disabled. <strong><?php echo $app_name; ?> will not work here.</strong></li> 323
318 <?php endif; ?> 324 <?php else: ?>
325 <li><strong>Data filtering:</strong> Your PHP configuration has the filter extension disabled. <strong><?php echo $app_name; ?> will not work here.</strong></li>
326 <?php endif; ?>
327
328 <?php else : ?>
329 <li><strong>Parse ini files function :</strong> Bad luck : your webhost has decided to block the use of the <em>parse_ini_file</em> function. <strong><?php echo $app_name; ?> will not work here.</strong>
330 <?php endif; ?>
319 331
320 <?php else: ?> 332 <?php else: ?>
321 <li><strong>GetText:</strong> The <code>gettext</code> extension is not available. The system we use to display wallabag in various languages is not available. <strong><?php echo $app_name; ?> will not work here.</strong></li> 333 <li><strong>GetText:</strong> The <code>gettext</code> extension is not available. The system we use to display wallabag in various languages is not available. <strong><?php echo $app_name; ?> will not work here.</strong></li>
@@ -340,7 +352,7 @@ if (isset($_GET['from'])){
340 352
341 <div class="chunk"> 353 <div class="chunk">
342 <?php //if ($php_ok && $xml_ok && $pcre_ok && $mbstring_ok && $iconv_ok && $filter_ok && $allow_url_fopen_ok) { ?> 354 <?php //if ($php_ok && $xml_ok && $pcre_ok && $mbstring_ok && $iconv_ok && $filter_ok && $allow_url_fopen_ok) { ?>
343 <?php if ($php_ok && $xml_ok && $pcre_ok && $filter_ok && $allow_url_fopen_ok && $gettext_ok) { ?> 355 <?php if ($php_ok && $xml_ok && $pcre_ok && $filter_ok && $allow_url_fopen_ok && $gettext_ok && $parse_ini_ok) { ?>
344 <h3>Bottom Line: Yes, you can!</h3> 356 <h3>Bottom Line: Yes, you can!</h3>
345 <p><em>Your webhost has its act together!</em></p> 357 <p><em>Your webhost has its act together!</em></p>
346 <?php if (!$frominstall) { ?> 358 <?php if (!$frominstall) { ?>
@@ -351,7 +363,7 @@ if (isset($_GET['from'])){
351 <?php } ?> 363 <?php } ?>
352 <p><strong>Note</strong>: Passing this test does not guarantee that <?php echo $app_name; ?> will run on your webhost &mdash; it only ensures that the basic requirements have been addressed. If you experience any problems, please let us know.</p> 364 <p><strong>Note</strong>: Passing this test does not guarantee that <?php echo $app_name; ?> will run on your webhost &mdash; it only ensures that the basic requirements have been addressed. If you experience any problems, please let us know.</p>
353 <?php //} else if ($php_ok && $xml_ok && $pcre_ok && $mbstring_ok && $allow_url_fopen_ok && $filter_ok) { ?> 365 <?php //} else if ($php_ok && $xml_ok && $pcre_ok && $mbstring_ok && $allow_url_fopen_ok && $filter_ok) { ?>
354 <?php } else if ($php_ok && $xml_ok && $pcre_ok && $allow_url_fopen_ok && $filter_ok && $gettext_ok) { ?> 366 <?php } else if ($php_ok && $xml_ok && $pcre_ok && $allow_url_fopen_ok && $filter_ok && $gettext_ok && $parse_ini_ok) { ?>
355 <h3>Bottom Line: Yes, you can!</h3> 367 <h3>Bottom Line: Yes, you can!</h3>
356 <p><em>For most feeds, it'll run with no problems.</em> There are certain languages that you might have a hard time with though.</p> 368 <p><em>For most feeds, it'll run with no problems.</em> There are certain languages that you might have a hard time with though.</p>
357 <?php if (!$frominstall) { ?> 369 <?php if (!$frominstall) { ?>