heartranked

git clone https://git.tarina.org/heartranked
Log | Files | Refs

commit e158262fb938a2ec93b6f96b9402adfeae5f04ba
parent 12b47f31c2fc1d171d7d673747931bf992af8aa5
Author: rbckman <rob@tarina.org>
Date:   Mon, 10 Aug 2026 13:31:29 +0300

settings and trust

Diffstat:
Mhtml/trust.html | 6+++++-
Mserver.py | 4++++
Msettings.py | 2+-
3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/html/trust.html b/html/trust.html @@ -8,5 +8,9 @@ $def with (trustform, trustedlist) </form> <br> $for t in trustedlist: - $t['servername'] $t['user'] $t['password'] + $t['servername'] $t['user'] <a href='trust?remove=$t['servername']'>remove</a> + <br> + <br> + <br> + <a href='/'>back</a> </div> diff --git a/server.py b/server.py @@ -262,6 +262,10 @@ class trust(): web.form.Password('password', web.form.notnull, description="passcode:"), web.form.Button('Trust')) def GET(self): + i = web.input(remove=None) + if i.remove != None: + os.system('rm '+basedir+'r/trusted/'+i.remove) + return web.seeother('/trust') trusted=os.listdir(basedir+'r/trusted/') trustedlist=[] for t in trusted: diff --git a/settings.py b/settings.py @@ -4,7 +4,7 @@ #mail to webmaster webmaster = "me@robinbackman.com" -baseurl = "https://robinbackman.com" +baseurl = "https://heartranked.com" postadmin="me@robinbackman.com" postadmin_signature="\n-~-\nGreetings\nKing Robin\nHEART RANKED\nPeace!\nhttps://robinbackman.com/heartranked\nme@robinbackman.com\n"