wahlhelfer/setup/requirements.php

23 lines
655 B
PHP
Raw Permalink Normal View History

<?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");
?>