mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01:00
fix for #758
This commit is contained in:
parent
b37110cc82
commit
ace428669b
@ -14,6 +14,7 @@ $php_ok = (function_exists('version_compare') && version_compare(phpversion(), '
|
|||||||
$pcre_ok = extension_loaded('pcre');
|
$pcre_ok = extension_loaded('pcre');
|
||||||
$zlib_ok = extension_loaded('zlib');
|
$zlib_ok = extension_loaded('zlib');
|
||||||
$mbstring_ok = extension_loaded('mbstring');
|
$mbstring_ok = extension_loaded('mbstring');
|
||||||
|
$dom_ok = extension_loaded('DOM');
|
||||||
$iconv_ok = extension_loaded('iconv');
|
$iconv_ok = extension_loaded('iconv');
|
||||||
$tidy_ok = function_exists('tidy_parse_string');
|
$tidy_ok = function_exists('tidy_parse_string');
|
||||||
$curl_ok = function_exists('curl_exec');
|
$curl_ok = function_exists('curl_exec');
|
||||||
@ -24,6 +25,7 @@ $filter_ok = extension_loaded('filter');
|
|||||||
$gettext_ok = function_exists("gettext");
|
$gettext_ok = function_exists("gettext");
|
||||||
$gd_ok = extension_loaded('gd');
|
$gd_ok = extension_loaded('gd');
|
||||||
|
|
||||||
|
|
||||||
if (extension_loaded('xmlreader')) {
|
if (extension_loaded('xmlreader')) {
|
||||||
$xml_ok = true;
|
$xml_ok = true;
|
||||||
} elseif (extension_loaded('xml')) {
|
} elseif (extension_loaded('xml')) {
|
||||||
@ -233,6 +235,11 @@ if (isset($_GET['from'])){
|
|||||||
<td>Enabled</td>
|
<td>Enabled</td>
|
||||||
<?php echo ($iconv_ok) ? '<td class="good">Enabled' : '<td class="bad">Disabled'; ?></td>
|
<?php echo ($iconv_ok) ? '<td class="good">Enabled' : '<td class="bad">Disabled'; ?></td>
|
||||||
</tr> -->
|
</tr> -->
|
||||||
|
<tr class="<?php echo ($dom_ok) ? 'enabled' : 'disabled'; ?>">
|
||||||
|
<td><a href="http://php.net/manual/en/book.dom.php">DOM / XML extension</a></td>
|
||||||
|
<td>Enabled</td>
|
||||||
|
<?php echo ($dom_ok) ? '<td class="good">Enabled' : '<td class="bad">Disabled'; ?></td>
|
||||||
|
</tr>
|
||||||
<tr class="<?php echo ($filter_ok) ? 'enabled' : 'disabled'; ?>">
|
<tr class="<?php echo ($filter_ok) ? 'enabled' : 'disabled'; ?>">
|
||||||
<td><a href="http://uk.php.net/manual/en/book.filter.php">Data filtering</a></td>
|
<td><a href="http://uk.php.net/manual/en/book.filter.php">Data filtering</a></td>
|
||||||
<td>Enabled</td>
|
<td>Enabled</td>
|
||||||
@ -281,7 +288,7 @@ if (isset($_GET['from'])){
|
|||||||
<h3>What does this mean?</h3>
|
<h3>What does this mean?</h3>
|
||||||
<ol>
|
<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 && $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 && $gd_ok && $tidy_ok && $curl_ok && $parallel_ok && $allow_url_fopen_ok && $gettext_ok && $parse_ini_ok): ?>
|
<?php if ($php_ok && $xml_ok && $pcre_ok && $dom_ok && $filter_ok && $gd_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>
|
<li><em>You have everything you need to run <?php echo $app_name; ?> properly! Congratulations!</em></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php if ($php_ok): ?>
|
<?php if ($php_ok): ?>
|
||||||
@ -298,9 +305,13 @@ if (isset($_GET['from'])){
|
|||||||
<li><strong>Gettext:</strong> You have <code>gettext</code> enabled. <em>No problems here.</em></li>
|
<li><strong>Gettext:</strong> You have <code>gettext</code> enabled. <em>No problems here.</em></li>
|
||||||
|
|
||||||
<?php if ($parse_ini_ok): ?>
|
<?php if ($parse_ini_ok): ?>
|
||||||
|
<li><strong>Parse ini:</strong> You can parse <em>ini</em> files. <em>No problems here.</em></li>
|
||||||
|
|
||||||
|
<?php if ($dom_ok): ?>
|
||||||
|
<li><strong>DOM/XML:</strong> You can parse <em>ini</em> files. <em>No problems here.</em></li>
|
||||||
|
|
||||||
<?php if ($filter_ok): ?>
|
<?php if ($filter_ok): ?>
|
||||||
<li><strong>Data filtering:</strong> You have the PHP filter extension enabled. <em>No problems here.</em></li>
|
<li><strong>Data filtering:</strong> You can use the PHP build-in DOM to operate on XML documents. <em>No problems here.</em></li>
|
||||||
|
|
||||||
<?php if ($zlib_ok): ?>
|
<?php if ($zlib_ok): ?>
|
||||||
<li><strong>Zlib:</strong> You have <code>Zlib</code> enabled. This allows SimplePie to support GZIP-encoded feeds. <em>No problems here.</em></li>
|
<li><strong>Zlib:</strong> You have <code>Zlib</code> enabled. This allows SimplePie to support GZIP-encoded feeds. <em>No problems here.</em></li>
|
||||||
@ -346,6 +357,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>
|
<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 endif; ?>
|
||||||
|
|
||||||
|
<?php else: ?>
|
||||||
|
<li><strong>DOM/XML:</strong> Your PHP configuration isn't standard, you're missing PHP-DOM. You may try to install a package or recompile PHP. <strong><?php echo $app_name; ?> will not work here.</strong></li>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php else : ?>
|
<?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>
|
<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 endif; ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user