mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-11 21:03:11 +00:00
Updated JSON to MIT
Cleaned up sanity.php Cleaning up random bugs and cretura
This commit is contained in:
parent
5da0da06fd
commit
c9b81414b0
10 changed files with 251 additions and 242 deletions
19
app/sanity/check/_dir.php
Normal file
19
app/sanity/check/_dir.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?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'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue