Fixed offline profiles
This commit is contained in:
parent
83ca3de7eb
commit
b7e1c92d55
4 changed files with 11 additions and 4 deletions
|
@ -2,7 +2,11 @@ const fs = require('fs')
|
||||||
|
|
||||||
module.exports = async (app, req, res, api, getLevels) => {
|
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 username = getLevels || req.params.id
|
||||||
let accountMode = !req.query.hasOwnProperty("player") && Number(req.params.id)
|
let accountMode = !req.query.hasOwnProperty("player") && Number(req.params.id)
|
||||||
let foundID = app.userCache(req.id, username)
|
let foundID = app.userCache(req.id, username)
|
||||||
|
|
BIN
assets/leaderboardarrow.png
Normal file
BIN
assets/leaderboardarrow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<div id="everything" class="center" style="overflow: hidden">
|
<div id="everything" class="center" style="overflow: hidden">
|
||||||
<h2 style="margin-top: 2%; margin-bottom: 2.2%">RobTop's Purgatory</h2>
|
<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;"> </h1>
|
||||||
<img id="glubfub" src="../assets/keymaster.png" height="25%" class="gdButton">
|
<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>
|
<a href="../gdps"><img class="gdButton" src="../assets/basement.png" width=85%;"></a>
|
||||||
</div>
|
</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%;">
|
<img src="../assets/privateservers.png" width=85%;">
|
||||||
</div>
|
</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%;">
|
<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>
|
<a href="../leaderboard"><img class="gdButton" src="../assets/leaderboard.png" width="55%"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
"id": "",
|
"id": "",
|
||||||
"endpoint": "http://boomlings.com/database/",
|
"endpoint": "http://boomlings.com/database/",
|
||||||
"timestampSuffix": " ago",
|
"timestampSuffix": " ago",
|
||||||
"downloadsDisabled": true,
|
|
||||||
"demonList": "https://pointercrate.com/"
|
"demonList": "https://pointercrate.com/"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue