Fixed offline profiles

This commit is contained in:
Colon 2021-01-29 23:12:48 -05:00
parent 83ca3de7eb
commit b7e1c92d55
4 changed files with 11 additions and 4 deletions

View file

@ -2,7 +2,11 @@ const fs = require('fs')
module.exports = async (app, req, res, api, getLevels) => {
if (req.offline) return res.send("-1")
if (req.offline) {
if (!api) return res.redirect('/search/' + req.params.id)
else return res.send("-1")
}
let username = getLevels || req.params.id
let accountMode = !req.query.hasOwnProperty("player") && Number(req.params.id)
let foundID = app.userCache(req.id, username)

BIN
assets/leaderboardarrow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

View file

@ -14,7 +14,7 @@
<div id="everything" class="center" style="overflow: hidden">
<h2 style="margin-top: 2%; margin-bottom: 2.2%">RobTop's Purgatory</h2>
<h1 id="msg" class="smaller" style="margin-bottom: 1.2%; white-space: normal;">Hey, hey</h1>
<h1 id="msg" class="smaller" style="margin-bottom: 1.2%; white-space: normal;">&nbsp;</h1>
<img id="glubfub" src="../assets/keymaster.png" height="25%" class="gdButton">
@ -34,10 +34,14 @@
<a href="../gdps"><img class="gdButton" src="../assets/basement.png" width=85%;"></a>
</div>
<div style="position:absolute; bottom: 22%; right:7%; width: 10%; text-align: right; pointer-events: none">
<div style="position:absolute; bottom: 22%; right: 7%; width: 10%; text-align: right; pointer-events: none">
<img src="../assets/privateservers.png" width=85%;">
</div>
<div style="position:absolute; top: 15.5%; right: 7.5%; width: 10%; text-align: right; pointer-events: none">
<img src="../assets/leaderboardarrow.png" width=85%;">
</div>
<div style="position:absolute; top: 2.2%; right: 2.5%; text-align: right; width: 11%;">
<a href="../leaderboard"><img class="gdButton" src="../assets/leaderboard.png" width="55%"></a>
</div>

View file

@ -7,7 +7,6 @@
"id": "",
"endpoint": "http://boomlings.com/database/",
"timestampSuffix": " ago",
"downloadsDisabled": true,
"demonList": "https://pointercrate.com/"
},