add discord footer link and 404 response for invalid hashs

This commit is contained in:
Kieran 2017-11-09 22:32:21 +08:00
parent 6535907095
commit e78a2b9130
2 changed files with 13 additions and 2 deletions

View File

@ -5,9 +5,15 @@
<dom-module id="void-main">
<template>
<style>
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.footer {
text-align:center;
margin-top: 20px;
margin-top: 10px;
text-transform: uppercase;
}
img {
margin-top: 10px;
}
@media(max-width: 470px) {
@ -24,6 +30,9 @@
</template>
<div class="footer">
<div class="links">
<a href="https://discord.gg/8BkxTGs">Discord</a>
</div>
<img src="/graph"/>
</div>
</template>

View File

@ -71,7 +71,9 @@
$db->AddView($f->hash160);
$redis->incr($hashKey);
}
}else{
http_response_code(404);
}
$redis->close();
?>
?>