forked from GithubBackups/vichan
Update 404.php
This commit is contained in:
parent
0fee740147
commit
0ea92d99f7
8
404.php
8
404.php
@ -1,11 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include "inc/functions.php";
|
include "inc/functions.php";
|
||||||
|
include "inc/cache.php";
|
||||||
|
|
||||||
if(!file_exists("404/"))
|
if(!file_exists("404/"))
|
||||||
mkdir("404/");
|
mkdir("404/");
|
||||||
|
|
||||||
|
$cache = new Cache;
|
||||||
|
$cache->init();
|
||||||
|
|
||||||
|
if($cache->get("404glob") == false){
|
||||||
$files = glob("404/*.*");
|
$files = glob("404/*.*");
|
||||||
|
$cache->set("404glob", $files);
|
||||||
|
}else
|
||||||
|
$files = $cache->get("404glob");
|
||||||
|
|
||||||
if(count($files) == 0)
|
if(count($files) == 0)
|
||||||
$errorimage = "";
|
$errorimage = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user