mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01:00
Fix for #678
This commit is contained in:
parent
e212e6b12a
commit
becc5bfbf2
@ -8,6 +8,7 @@ $mbstring_ok = extension_loaded('mbstring');
|
||||
$iconv_ok = extension_loaded('iconv');
|
||||
$tidy_ok = function_exists('tidy_parse_string');
|
||||
$curl_ok = function_exists('curl_exec');
|
||||
$parse_ini_ok = function_exists('parse_ini_file');
|
||||
$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');
|
||||
@ -237,6 +238,11 @@ if (isset($_GET['from'])){
|
||||
<td>Enabled</td>
|
||||
<?php echo (extension_loaded('curl')) ? '<td class="good">Enabled' : '<td class="pass">Disabled'; ?></td>
|
||||
</tr>
|
||||
<tr class="<?php echo ($parse_ini_ok) ? 'enabled' : 'disabled'; ?>">
|
||||
<td><a href="http://uk.php.net/manual/en/function.parse-ini-file.php">Parse ini file</td>
|
||||
<td>Enabled</td>
|
||||
<?php echo ($parse_ini_ok) ? '<td class="good">Enabled' : '<td class="bad">Disabled'; ?></td>
|
||||
</tr>
|
||||
<tr class="<?php echo ($parallel_ok) ? 'enabled' : 'disabled'; ?>">
|
||||
<td>Parallel URL fetching</td>
|
||||
<td>Enabled</td>
|
||||
@ -260,7 +266,7 @@ if (isset($_GET['from'])){
|
||||
<h3>What does this mean?</h3>
|
||||
<ol>
|
||||
<?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): ?>
|
||||
<?php if ($php_ok && $xml_ok && $pcre_ok && $filter_ok && $tidy_ok && $curl_ok && $parallel_ok && $allow_url_fopen_ok && $gettext_ok): ?>
|
||||
<?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): ?>
|
||||
<li><em>You have everything you need to run <?php echo $app_name; ?> properly! Congratulations!</em></li>
|
||||
<?php else: ?>
|
||||
<?php if ($php_ok): ?>
|
||||
@ -276,6 +282,8 @@ if (isset($_GET['from'])){
|
||||
<?php if ($gettext_ok): ?>
|
||||
<li><strong>Gettext:</strong> You have <code>gettext</code> enabled. <em>No problems here.</em></li>
|
||||
|
||||
<?php if ($parse_ini_ok): ?>
|
||||
|
||||
<?php if ($filter_ok): ?>
|
||||
<li><strong>Data filtering:</strong> You have the PHP filter extension enabled. <em>No problems here.</em></li>
|
||||
|
||||
@ -317,6 +325,10 @@ if (isset($_GET['from'])){
|
||||
<li><strong>Data filtering:</strong> Your PHP configuration has the filter extension disabled. <strong><?php echo $app_name; ?> will not work here.</strong></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else : ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
@ -340,7 +352,7 @@ if (isset($_GET['from'])){
|
||||
|
||||
<div class="chunk">
|
||||
<?php //if ($php_ok && $xml_ok && $pcre_ok && $mbstring_ok && $iconv_ok && $filter_ok && $allow_url_fopen_ok) { ?>
|
||||
<?php if ($php_ok && $xml_ok && $pcre_ok && $filter_ok && $allow_url_fopen_ok && $gettext_ok) { ?>
|
||||
<?php if ($php_ok && $xml_ok && $pcre_ok && $filter_ok && $allow_url_fopen_ok && $gettext_ok && $parse_ini_ok) { ?>
|
||||
<h3>Bottom Line: Yes, you can!</h3>
|
||||
<p><em>Your webhost has its act together!</em></p>
|
||||
<?php if (!$frominstall) { ?>
|
||||
@ -351,7 +363,7 @@ if (isset($_GET['from'])){
|
||||
<?php } ?>
|
||||
<p><strong>Note</strong>: Passing this test does not guarantee that <?php echo $app_name; ?> will run on your webhost — it only ensures that the basic requirements have been addressed. If you experience any problems, please let us know.</p>
|
||||
<?php //} else if ($php_ok && $xml_ok && $pcre_ok && $mbstring_ok && $allow_url_fopen_ok && $filter_ok) { ?>
|
||||
<?php } else if ($php_ok && $xml_ok && $pcre_ok && $allow_url_fopen_ok && $filter_ok && $gettext_ok) { ?>
|
||||
<?php } else if ($php_ok && $xml_ok && $pcre_ok && $allow_url_fopen_ok && $filter_ok && $gettext_ok && $parse_ini_ok) { ?>
|
||||
<h3>Bottom Line: Yes, you can!</h3>
|
||||
<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>
|
||||
<?php if (!$frominstall) { ?>
|
||||
|
Loading…
Reference in New Issue
Block a user