mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-20 20:51:50 +01:00
Update 404.php
This commit is contained in:
parent
0fee740147
commit
0ea92d99f7
8
404.php
8
404.php
@ -1,11 +1,19 @@
|
||||
<?php
|
||||
|
||||
include "inc/functions.php";
|
||||
include "inc/cache.php";
|
||||
|
||||
if(!file_exists("404/"))
|
||||
mkdir("404/");
|
||||
|
||||
$cache = new Cache;
|
||||
$cache->init();
|
||||
|
||||
if($cache->get("404glob") == false){
|
||||
$files = glob("404/*.*");
|
||||
$cache->set("404glob", $files);
|
||||
}else
|
||||
$files = $cache->get("404glob");
|
||||
|
||||
if(count($files) == 0)
|
||||
$errorimage = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user