mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
v1.2.11.431
This commit is contained in:
parent
c6b70fa290
commit
b10792602d
396 changed files with 383 additions and 3 deletions
46
rainloop/v/1.2.11.431/check.php
Normal file
46
rainloop/v/1.2.11.431/check.php
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
$aRequirements = array(
|
||||
'cURL' => function_exists('curl_init'),
|
||||
'iconv' => function_exists('iconv'),
|
||||
'json' => function_exists('json_encode'),
|
||||
'DateTime' => class_exists('DateTime') && class_exists('DateTimeZone'),
|
||||
'libxml' => function_exists('libxml_use_internal_errors'),
|
||||
'dom' => class_exists('DOMDocument'),
|
||||
'Zlib' => function_exists('gzopen'),
|
||||
'PCRE' => function_exists('preg_replace'),
|
||||
'SPL' => function_exists('spl_autoload_register')
|
||||
);
|
||||
|
||||
$bRequirements = true;
|
||||
foreach ($aRequirements as $sKey => $bValue)
|
||||
{
|
||||
if (!$bValue)
|
||||
{
|
||||
$bRequirements = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (0 > version_compare(PHP_VERSION, '5.3.0'))
|
||||
{
|
||||
echo '<p style="color: red">';
|
||||
echo 'Your PHP version ('.PHP_VERSION.') is lower than the minimal required 5.3.0! (Error Code: 301)';
|
||||
echo '</p>';
|
||||
exit(301);
|
||||
}
|
||||
|
||||
if (!$bRequirements)
|
||||
{
|
||||
echo '<p>';
|
||||
echo 'Required PHP extension are not available in your PHP configuration! (Error Code: 302)';
|
||||
echo '</p><ul>';
|
||||
|
||||
foreach ($aRequirements as $sKey => $bValue)
|
||||
{
|
||||
echo '<li style="color: '.($bValue ? 'green' : 'red').'">'.$sKey.'</li>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
exit(302);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue