mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
cURL is not required so put it in a list of optional PHP extensions
This commit is contained in:
parent
5fcf31f512
commit
6c0b5ab33b
1 changed files with 15 additions and 5 deletions
|
|
@ -10,9 +10,21 @@
|
||||||
exit(301);
|
exit(301);
|
||||||
}
|
}
|
||||||
|
|
||||||
$aRequirements = array(
|
$aOptional = array(
|
||||||
'cURL' => extension_loaded('curl'),
|
'cURL' => extension_loaded('curl'),
|
||||||
// 'intl' => function_exists('idn_to_ascii'),
|
'gd' => extension_loaded('gd'),
|
||||||
|
'gmagick' => extension_loaded('gmagick'),
|
||||||
|
'imagick' => extension_loaded('imagick'),
|
||||||
|
'intl' => function_exists('idn_to_ascii'),
|
||||||
|
'ldap' => extension_loaded('ldap'),
|
||||||
|
'mysql' => extension_loaded('pdo_mysql'),
|
||||||
|
'pgsql' => extension_loaded('pdo_pgsql'),
|
||||||
|
'sqlite' => extension_loaded('pdo_sqlite'),
|
||||||
|
'xxtea' => extension_loaded('xxtea'),
|
||||||
|
'zip' => extension_loaded('zip')
|
||||||
|
);
|
||||||
|
|
||||||
|
$aRequirements = array(
|
||||||
'mbstring' => extension_loaded('mbstring'),
|
'mbstring' => extension_loaded('mbstring'),
|
||||||
'Zlib' => extension_loaded('zlib'),
|
'Zlib' => extension_loaded('zlib'),
|
||||||
// enabled by default:
|
// enabled by default:
|
||||||
|
|
@ -23,9 +35,7 @@
|
||||||
|
|
||||||
if (in_array(false, $aRequirements))
|
if (in_array(false, $aRequirements))
|
||||||
{
|
{
|
||||||
echo '<p>';
|
echo '<p>[302] The following PHP extensions are not available in your PHP configuration!</p>';
|
||||||
echo '[302] The following PHP extensions are not available in your PHP configuration!';
|
|
||||||
echo '</p>';
|
|
||||||
|
|
||||||
echo '<ul>';
|
echo '<ul>';
|
||||||
foreach ($aRequirements as $sKey => $bValue)
|
foreach ($aRequirements as $sKey => $bValue)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue