sarga/public/installer/Views/requirements.blade.php

57 lines
2.2 KiB
PHP
Raw Normal View History

<html>
2019-03-20 04:59:13 +00:00
<?php
$actual_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$greenCheck = $actual_link .'/'. 'Images/green-check.svg';
$redCheck = $actual_link .'/'. 'Images/red-check.svg';
?>
<body>
<div class="container requirement" id="requirement">
2019-03-20 04:59:13 +00:00
<div class="initial-display">
<p>Requirement</p>
<div class="content">
<div class="title" style="text-align: center; margin-top: 10px">
Please wait while we are checking the requirements
</div>
2019-01-24 05:33:11 +00:00
<div class="check" style="margin-left: 25%">
2019-03-20 04:59:13 +00:00
<?php if($phpVersion['supported'] ? $src = $greenCheck : $src = $redCheck): ?>
2019-01-24 05:33:11 +00:00
<img src="<?php echo $src ?>">
<?php endif; ?>
<span style="margin-left: 10px"><b>PHP</b></span>
<span>(<?php echo $phpVersion['minimum'] ?> or Higher)</span>
</div>
2019-01-25 14:41:35 +00:00
<?php foreach($requirements['requirements'] as $type => $require): ?>
<?php foreach($requirements['requirements'][$type] as $extention => $enabled) : ?>
<div class="check" style="margin-left: 25%">
2019-03-20 04:59:13 +00:00
<?php if($enabled ? $src = $greenCheck : $src = $redCheck ): ?>
2019-01-25 14:41:35 +00:00
<img src="<?php echo $src ?>">
<?php endif; ?>
<span style="margin-left: 10px"><b><?php echo $extention ?></b></span>
<span>(<?php echo $extention ?> Required)</span>
</div>
<?php endforeach; ?>
<?php endforeach; ?>
</div>
2019-03-14 09:04:32 +00:00
<?php if(!isset($requirements['errors']) && $phpVersion['supported']): ?>
<div>
<button type="button" class="prepare-btn" id="requirement-check">Continue</button>
</div>
<?php endif; ?>
</div>
</div>
</body>
2019-01-25 14:41:35 +00:00
</html>