2020-01-15 15:23:55 -05:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
use function Aviat\AnimeClient\checkFolderPermissions;
|
|
|
|
|
2023-12-21 13:46:15 -05:00
|
|
|
$setupErrors = checkFolderPermissions($_->config);
|
2018-08-16 12:10:24 -04:00
|
|
|
?>
|
|
|
|
|
|
|
|
<?php if ( ! empty($setupErrors)): ?>
|
|
|
|
<aside class="message error">
|
|
|
|
<h1>Issues with server setup:</h1>
|
|
|
|
|
|
|
|
<?php if (array_key_exists('missing', $setupErrors)): ?>
|
|
|
|
<h3>The following folders need to be created, and writable.</h3>
|
|
|
|
<ul>
|
|
|
|
<?php foreach ($setupErrors['missing'] as $error): ?>
|
|
|
|
<li><?= $error ?></li>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</ul>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<?php if (array_key_exists('writable', $setupErrors)): ?>
|
|
|
|
<h3>The following folders are not writable by the server.</h3>
|
|
|
|
<ul>
|
|
|
|
<?php foreach($setupErrors['writable'] as $error): ?>
|
|
|
|
<li><?= $error ?></li>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</ul>
|
|
|
|
<?php endif ?>
|
|
|
|
</aside>
|
|
|
|
<?php endif ?>
|