1
0
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:
anonfagola 2014-09-25 15:40:43 -07:00
parent 0fee740147
commit 0ea92d99f7

View File

@ -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 = "";