PHPGallery/app/sanity/check/_dir.php
Fluffy-Bean c9b81414b0 Updated JSON to MIT
Cleaned up sanity.php
Cleaning up random bugs and cretura
2022-11-06 16:31:22 +00:00

19 lines
No EOL
460 B
PHP

<?php
if (defined('ROOT') && $_SESSION['id'] == 1) {
$files = array(
'usr/images',
'usr/images/pfp',
'usr/images/previews',
'usr/images/thumbnails'
);
foreach ($files as $file) {
if (!is_dir(__DIR__."/../../../$file")) {
$results[] = array(
'type'=>'critical',
'message'=>"$file is missing",
'fix'=>'auto'
);
}
}
}