You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
cosmopet-architecture/dup-installer/templates/default/parts/validation/tests/diskspace.php

34 lines
1.0 KiB

<?php
/**
*
* @package templates/default
*/
defined('ABSPATH') || defined('DUPXABSPATH') || exit;
/* Variables */
/* @var $isOk bool */
/* @var $freeSpace int */
/* @var $requiredSpace int */
?>
<div class="sub-title">STATUS</div>
<p>
<?php if ($isOk) : ?>
<span class="green">You have sufficient disk space on your machine to extract the archive.</span>
<?php else : ?>
<span class="maroon">You don’t have sufficient disk space on your machine to extract the archive.</span>
<?php endif; ?>
</p>
<div class="sub-title">DETAILS</div>
<p>
Duplicator needs at least enough disk space to be able to host the package file and the extracted files.<br>
The available free disk space is <b><?php echo $freeSpace; ?></b>, the required disk space should at least be <b><?php echo $requiredSpace; ?></b>.
</p>
<div class="sub-title">TROUBLESHOOT</div>
<ul>
<li>Ask your host to increase your disk space.</li>
<li>Back-up and remove all unnecessary files you have in the install directory to free up space.</li>
</ul>