wahlhelfer/setup/requirements.php
Klaus-Uwe Mitterer b384099d9b Restructuring a few things
Finally adding the setup files ._.
2016-02-07 23:16:32 +01:00

23 lines
No EOL
655 B
PHP
Executable file

<?php
$goToNextStep = true;
$currentPhpVersion = phpversion();
$phpVersionOk = version_compare($currentPhpVersion, $requirements['phpVersion']) >= 0;
if (!$phpVersionOk) $goToNextStep = false;
$loadedExtensions = get_loaded_extensions();
foreach ($loadedExtensions as $key => $ext) $loadedExtensions[$key] = strtolower($ext);
$showExtensions = array();
foreach ($requirements['extensions'] as $ext)
{
$isLoaded = in_array($ext, $loadedExtensions);
$showExtensions[$ext] = $isLoaded;
if (!$isLoaded) $goToNextStep = false;
}
foreach ($requirements as $key => $value)
$$key = $value;
include("templates/requirements.php");
?>