forked from GithubBackups/vichan
Home and Return links in 404.php
This commit is contained in:
parent
2bc652b34f
commit
710d66457b
7
404.php
7
404.php
@ -26,9 +26,16 @@ if (count($files) == 0) {
|
||||
$errorimage = $files[array_rand($files)];
|
||||
}
|
||||
|
||||
if (preg_match('!'.$config['board_regex'].'/'.$config['dir']['res'].'\d+\.html!u', $_SERVER['REQUEST_URI'])) {
|
||||
$return_link = '<a href="../index.html">[ Return ]</a>';
|
||||
} else {
|
||||
$return_link = '';
|
||||
}
|
||||
|
||||
$page = <<<EOT
|
||||
<div class="ban">
|
||||
<p style="text-align:center"><img src="/static/404/{$errorimage}" style="width:100%"></p>
|
||||
<p style="text-align:center"><a href="/index.html">[ Home ]</a>{$return_link}</p>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
Loading…
x
Reference in New Issue
Block a user