thiswebshoprules

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

commit f119c4071ca17be8db877542a109d53f8e903109
parent 27bd7545d9dc6e77bf668d56dcc9e743b8c90720
Author: rob <rob@tarina.org>
Date:   Sun, 15 Jan 2023 12:11:04 +0200

rm unnecesary things

Diffstat:
Ddb/cyberpunkcafe.db | 0
Mpublic_html/templates/base.html | 2+-
Mpublic_html/templates/bigpic.html | 8++++----
Mserver.py | 14++++++++------
Dsessions/f651d47d565863a861dd182771022b27bf6d5af2 | 3---
5 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/db/cyberpunkcafe.db b/db/cyberpunkcafe.db Binary files differ. diff --git a/public_html/templates/base.html b/public_html/templates/base.html @@ -3,7 +3,7 @@ $def with (content) <HEAD> <meta charset="utf-8"> <title>Rockman Brothers | International Heavy Voodoo Sound</title> - <link rel="stylesheet" href="/static/robstyle.css?v=11" type="text/css" rel="stylesheet"/> + <link rel="stylesheet" href="/static/robstyle.css?v=12" type="text/css" rel="stylesheet"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="cache-control" content="no-cache"> </HEAD> diff --git a/public_html/templates/bigpic.html b/public_html/templates/bigpic.html @@ -1,5 +1,5 @@ -$def with (p, product) - -<a href="/#$product"><-- back</a> -<a href="/#$product"><img src="/static/img/$product/web/$p" style="width:100%;"></a> +$def with (p,name,goodies) +<a href="/#$p"><-- back</a><br> +<a href="/#$p"><img class="imgprod" src="/static/img/web/$goodies.soundname"></a><br> +<a href="/#$p"><-- back</a><br> diff --git a/server.py b/server.py @@ -93,9 +93,9 @@ def logged(): def sendmail(email, subject, msg): #Send mail echomsg = subprocess.Popen(('echo', msg), stdout=subprocess.PIPE) - sendmsg = subprocess.check_output(('mail', '-r', 'rob@tarina.org', '-s', subject, email), stdin=echomsg.stdout) + sendmsg = subprocess.check_output(('mail', '-r', webmaster, '-s', subject, email), stdin=echomsg.stdout) echomsg.wait() - #subprocess.call(['echo', msg, '|', 'mail', '-r', 'rob@tarina.org','-s', subject, email]) + #subprocess.call(['echo', msg, '|', 'mail', '-r', webmaster,'-s', subject, email]) def getmacaroon(): with open(basedir+'access.macaroon', 'rb') as f: @@ -323,8 +323,10 @@ class bigpic(): def GET(self, i): print('faaaakyeee ' + i) p = web.input(pic=None) - if p.pic != None: - return render.bigpic(p.pic, i) + name=productname(i) + goodies = db.query("SELECT * FROM soundlink WHERE id='"+i+"';")[0] + #if p.pic != None: + return render.bigpic(i,name,goodies) class checkout(): t = [] @@ -471,8 +473,8 @@ class payln: if ordertype()=='physical': msg = "Thank you for order " + lninvoice['description'] + " at Tarina shop, we'll be processing your order as soon as possible and send it to " + customer.firstname + ' ' + customer.lastname + ', ' + customer.address + ', ' + str(customer.postalcode) + ', ' + customer.town + ', ' + customer.country + '. To pay/view status or take a look at the digital goodies of your order please visit ' + baseurl + '/goodies/'+digitalkey else: - msg='sup? goto '+baseurl+'/goodies/'+digitalkey - sendmail(customer.email, 'Tarina Shop', msg) + msg='sup? thanks! here the goodies '+baseurl+'/goodies/'+digitalkey + sendmail(customer.email, 'Groove the Fuck Out!', msg) web.seeother('/payln/'+invoice_key) if lninvoice['status'] == 'paid': bag = db.query("SELECT * FROM paidbags WHERE sessionkey='"+invoice_key+"';") diff --git a/sessions/f651d47d565863a861dd182771022b27bf6d5af2 b/sessions/f651d47d565863a861dd182771022b27bf6d5af2 @@ -1,3 +0,0 @@ -gASVhwAAAAAAAAB9lCiMCnNlc3Npb25faWSUjChmNjUxZDQ3ZDU2NTg2M2E4NjFkZDE4Mjc3MTAy -MmIyN2JmNmQ1YWYylIwFbG9naW6USwCMCXByaXZpbGVnZZRLAIwDYmFnlF2UjApzZXNzaW9ua2V5 -lIwFZW1wdHmUjAJpcJSMDTIxNy4xMi44Ni4yNDaUdS4=