forked from GithubBackups/vichan
Merge branch 'bui-master'
This commit is contained in:
commit
8c70404036
15
404.php
15
404.php
@ -29,6 +29,21 @@ $page = <<<EOT
|
|||||||
<div class="ban">
|
<div class="ban">
|
||||||
<p style="text-align:center"><img src="/static/404/{$errorimage}" style="width:100%"></p>
|
<p style="text-align:center"><img src="/static/404/{$errorimage}" style="width:100%"></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
if (localStorage.favorites) {
|
||||||
|
var faves = JSON.parse(localStorage.favorites);
|
||||||
|
|
||||||
|
$.each(faves, function(k, v) {
|
||||||
|
if (window.location.pathname === '/' + v + '/') {
|
||||||
|
faves.pop(v);
|
||||||
|
localStorage.favorites = JSON.stringify(faves);
|
||||||
|
|
||||||
|
alert('As /' + v + '/ no longer exists, it has been removed from your favorites.');
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
EOT;
|
EOT;
|
||||||
|
|
||||||
echo Element("page.html", array("config" => $config, "body" => $errorimage ? $page : "", "title" => "404 Not Found"));
|
echo Element("page.html", array("config" => $config, "body" => $errorimage ? $page : "", "title" => "404 Not Found"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user