commit a600b135977c36c78442654aeb297f5a366f19a1
parent f53dd02ad8f6bc32c08520815b905c5b52a4b8d8
Author: rbckman <rob@tarina.org>
Date: Mon, 3 Aug 2026 15:44:52 +0300
clean up
Diffstat:
26 files changed, 0 insertions(+), 1104 deletions(-)
diff --git a/html/almost.html b/html/almost.html
@@ -1,80 +0,0 @@
-$def with (products,bag,sessionkey,productname,inbag,db,getprice,getrate,category,markdown,visitors, total, unique, show)
-
-$ siteconfig = db.select('propaganda', what='id, name, description, description2')[0]
-
-<HEAD>
- <meta charset="utf-8">
- $#<title>$siteconfig.name | $siteconfig.description</title>
- <title>Robin Bäckman | maker & baker</title>
- <link rel="stylesheet" href="/static/splash.css?v=108" type="text/css" rel="stylesheet"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta http-equiv="cache-control" content="no-cache">
-</HEAD>
-
-<BODY>
-<div class="introtext">
-$if show == 'all':
- $ goodies = db.query("SELECT * FROM propagandapics ORDER BY ID DESC LIMIT 1000;")
- $#<a href="?show=">show less 📃</a> top 999!<br>
-$else:
- $ goodies = db.query("SELECT * FROM propagandapics ORDER BY ID DESC LIMIT 3;")
- $#<a href="?show=all">show more 📃</a> here latest<br>
-$for g in goodies:
- <a href="/#$g.name">$g.name</a><br>
-<div id="visitors">
-last VISITS by COUNTRIES<br>
-$for i in visitors:
- <img src="/static/flags/${i}.png">
-<br>
-$unique UNICORNS 🦄 PEACE! ☮️
-<br>
-</div>
-$#<h1>$siteconfig.name</h1>
-$#$:markdown.markdown(siteconfig.description)
-$:markdown.markdown(siteconfig.description)
-$:markdown.markdown(siteconfig.description2)
-~
-<br>
-<br>
-$ backlink = ''
-$ goodies = db.query("SELECT * FROM propagandapics;")
-$for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <div id="$g.name">
- ~*~
- <br>
- $if backlink != '':
- <a href="/#">upp tibaks</a><br>
- ~
- <br>
- <img src="/static/img/web/$g.soundname">
- <br>
- <br>
- <br>
- <br>
- $:markdown.markdown(g.description)
- <br>
- <br>
- $:markdown.markdown(g.description2)
- <br>
- ~
- <br>
- </div>
- $ backlink = g.name
-<br>
-<br>
-robinbackman.com
-<br>
-Just Do Good
-<br>
-<a href="/#">back up?</a><br>
-</div>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-<br>
-
-</BODY>
diff --git a/html/bigpic.html b/html/bigpic.html
@@ -1,5 +0,0 @@
-$def with (p,name,goodies)
-
-$for i in goodies:
- <a href="/static/upload/$i.soundlink/$i.soundname""><img class="imgprod" width="100%" src="/static/img/web/$i.soundname"></a><br>
- <a href="/shop#$p"><-- back</a><br>
diff --git a/html/bitcoin.html b/html/bitcoin.html
@@ -1,6 +0,0 @@
-$def with (wallet)
-
-$for i in wallet:
- $i
- $wallet[i]
-
diff --git a/html/categories.html b/html/categories.html
@@ -1,13 +0,0 @@
-$def with (listcategories, addcategory)
-<div id="container">
-<div id="default">
-<br>
-$for i in listcategories:
- <a href='/categories?delete=$i.id'>$i.category</a>
-<div id="addevent">
-<form method="POST">
-$:addcategory.render()
-</form>
-</div>
-</div>
-</div>
diff --git a/html/checkout.html b/html/checkout.html
@@ -1,49 +0,0 @@
-$def with (checkoutform,bag,productname,errormsg,db,getprice)
-$ totsats = 0
-$ toteuro = 0
-<div id="container">
-<div id="default">
-<br>
-~*~<br>
-<h2>Checkout</h2>
-in your order:<br>
-$for i in bag:
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='" +i.product+"';")
- $code:
- price = getprice(i.product)
- quantity = i.quantity
- p_totsats=i.quantity*price[0]
- p_toteuro=i.quantity*price[1]
- $i.quantity x $productname(i.product)
- <a href="/dropitem/$i.product">X</a> $p_toteuro€<br>
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <br>
- <img src="/static/img/thumb/$g.soundname" style="width:120px"><br>
- <br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
-$if totsats > 0:
- <br>
- total: $toteuro €
-<br>
-<br>
- ~*~<br>
-<br>
-Order is only reserved once paid.
-<br>
-<br>
-<h2>$errormsg</h2>
-<div id="addevent">
-<form method="POST">
-$:checkoutform.render()
-</form>
-</div>
-<br>
-~*~<br>
-<br>
-<a href="/shop"><<<<<< back shoppin for more!!</a>
-</div>
-</div>
-</div>
diff --git a/html/cv.html b/html/cv.html
@@ -1,10 +0,0 @@
-<div id="container">
- <div id="default">
- <br>
- <h2>Robin Bäckman CV</h2>
- <a href="/static/RobinBackmanCV.pdf">PDF</a><br>
- <a href="/static/RobinBackmanCV.sla">Scribus source file</a><br>
- <a href="javascript:history.back()">back</a><br>
- </div>
- </div>
-</div>
diff --git a/html/goodies-old.html b/html/goodies-old.html
@@ -1,53 +0,0 @@
-$def with (key,keys,productname,db,getprice)
-<div id="container">
-<div id="default">
-<a href="/">go back</a>
-<br>
-<h2>All Your Goodies!</h2>
-<br>
-
-$ totsats = 0
-$ toteuro = 0
-$if keys != []:
- $for k in keys:
- $ bags = db.query("SELECT * FROM paidbags WHERE sessionkey='"+k.invoice_key+"' ORDER BY timeadded DESC;")
- $for i in bags:
- $ invoice = db.select('invoices', where="invoice_key='"+i.sessionkey+"'")[0]
- <div class="orders" id="$invoice.id">
- $code:
- price = getprice(i.product)
- quantity = i.quantity
- p_totsats=i.quantity*price[0]
- p_toteuro=i.quantity*price[1]
- $i.timeadded
- <br>
- $productname(i.product)<br>
- status: $invoice.status<br>
- $if invoice.status=='shipped':
- $invoice.dateshipped
- <br>
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='"+i.product+"';")
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$g.soundname" style="width:120px"><br>
- $else:
- <a href="/static/upload/$g.soundlink/$g.soundname">$g.soundname</a> <- Download file
- <br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
- </div>
- <br>
-<br>
-total: $totsats Satoshi or $toteuro €<br>
-<br>
-Order is only reserved once paid.
-If you choose NO-SHIPPING you will have to pick up the order yourself.
-Contact this guy rob@tarina.org ☮
-<br>
-<br>
-</div>
-<a href="/"><<<<<< back shoppin for more!!</a>
-</div>
-</div>
-</div>
diff --git a/html/goodies.html b/html/goodies.html
@@ -1,53 +0,0 @@
-$def with (key,keys,productname,db,getprice)
-<div id="container">
-<div id="default">
-<a href="/">go back</a>
-<br>
-<h2>All Your Goodies!</h2>
-<br>
-
-$ totsats = 0
-$ toteuro = 0
-$if keys != []:
- $for k in keys:
- $ bags = db.query("SELECT * FROM paidbags WHERE sessionkey='"+k.invoice_key+"' ORDER BY timeadded DESC;")
- $for i in bags:
- $ invoice = db.select('invoices', where="invoice_key='"+i.sessionkey+"'")[0]
- <div class="orders" id="$invoice.id">
- $code:
- price = getprice(i.product)
- quantity = i.quantity
- p_totsats=i.quantity*price[0]
- p_toteuro=i.quantity*price[1]
- $i.timeadded
- <br>
- $productname(i.product)<br>
- status: $invoice.status<br>
- $if invoice.status=='shipped':
- $invoice.dateshipped
- <br>
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='"+i.product+"';")
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$g.soundname" style="width:120px"><br>
- $else:
- <a href="/static/upload/$g.soundlink/$g.soundname">$g.soundname</a> <- Download file
- <br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
- </div>
- <br>
-<br>
-total: $toteuro €<br>
-<br>
-Order is only reserved once paid.
-If you choose NO-SHIPPING you will have to pick up the order yourself.
-Contact this guy rob@tarina.org ☮
-<br>
-<br>
-</div>
-<a href="/"><<<<<< back shoppin for more!!</a>
-</div>
-</div>
-</div>
diff --git a/html/l33t.html b/html/l33t.html
@@ -1,14 +0,0 @@
-$def with (addproduct)
-<div id="container">
- <div id="default">
- <br>
- <h2>Add Product</h2>
- <div id="addevent">
- <form method="POST">
- $:addproduct.render()
- </form>
- </div>
- <b><p></p></b>
- </div>
- </div>
-</div>
diff --git a/html/landing.html b/html/landing.html
@@ -1,16 +0,0 @@
-$def with (nothing)
-<div id="container">
-<h2>Gonzo Pi Web Shop opening soon!</h2>
-<div id="logocontainer">
-<p>for preorders contact go@gonzopi.org
-$#<img class="logo" src="/static/tarina-logo.png">
-<br>
-<div id="logo2">
-</div>
-
-</div>
-<br>
-<small><a href="https://github.com/rbckman/gonzopi">Gonzopi code</a> <a href="https://github.com/rbckman/gonzopi_build">Gonzopi build</a> </small>
-<br>
-<br>
-<br>
diff --git a/html/op.html b/html/op.html
@@ -1,13 +0,0 @@
-$def with (content)
-<!doctype html>
-<HEAD>
- <meta charset="utf-8">
- <title>Tarina web shop Welcome!</title>
- <link rel="stylesheet" href="/static/robstyle.css?v=1.36" type="text/css" rel="stylesheet"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta http-equiv="cache-control" content="no-cache">
-</HEAD>
-<BODY>
- <a href="/upload">Upload</a> <a href="/feed">Feed</a> | <a href="/propaganda">Propaganda</a> | <a href="/config">Config</a> | <a href="/categories">Categories</a> | <a href="/products/">Products</a> | <a href="/shipping/">Shipping</a> | <a href="/orders?status=unpaid">Orders</a> | <a href="/logout">Logout</a>
-$:content
-</BODY>
diff --git a/html/operator.html b/html/operator.html
@@ -1,4 +0,0 @@
-<div id="container">
-<div id="default">
-</div>
-</div>
diff --git a/html/orders.html b/html/orders.html
@@ -1,83 +0,0 @@
-$def with (payments,db,getinvoice,totsats,status,paid,unpaid,shipped,nonshipped,pickup,removed,thankyou,productname,getprice)
-$ link = ''
-<br>
-<h2>Orders</h2>
-<br>
-<p>unpaid $unpaid</p>
-<p>paid $paid</p>
-<p>shipped $shipped</p>
-<p>pickup $pickup</p>
-<p>removed $removed</p>
-<br>
-<b>waiting to be shipped $nonshipped</b>
-<br>
-<a href="?status=unpaid">unpaid</a> |
-<a href="?status=paid">paid</a> |
-<a href="?status=shipped">shipped</a> |
-<a href="?status=pickup">pickup</a> |
-<a href="?status=removed">removed</a> |
-<a href="?status=thankyou">thankyou</a>
-<br>
-<br>
-$ id=0
-$ totsats=0
-$ toteuro=0
-$for i in payments:
- $ id=id+1
- $ toteuro = 0
- $if i.status == status:
- <div class="orders" id="$id">
- <pre>
- $if i.status != 'unpaid' and i.status != 'thankyou':
- $ bag = db.query("SELECT * FROM paidbags WHERE sessionkey='" + i.invoice_key +"';")
- $else:
- $ bag = db.query("SELECT * FROM customerbag WHERE sessionkey='"+i.invoice_key+"';")
- $ pending = db.select('pending', where="invoice_key='"+i.invoice_key+"'")[0]
- $ invoice = db.select('invoices', where="invoice_key='"+i.invoice_key+"'")[0]
- $if i.payment == 'Bitcoin':
- $ link = "/paybtc/" + i.invoice_key
- $elif i.payment == 'Bitcoin Lightning':
- $ link = "/payln/" + i.invoice_key
- $elif i.payment == 'Mobile Pay':
- <b>order status: $i.status</b>
- <a href=$link>$i.invoice_key</a>
- $i.payment
- in your order:<br>
- $ total = 0
- $for b in bag:
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='"+b.product+"';")
- $code:
- price = getprice(b.product)
- quantity = b.quantity
- p_totsats=b.quantity*price[0]
- p_toteuro=b.quantity*price[1]
- $b.quantity x $productname(b.product)
- <a href="/dropitem/$b.product">X</a> $p_toteuro€<br>
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$g.soundname" style="width:120px"><br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
- $if pending.country != None:
- $ shippinginfo = db.select('shipping', where="country='" + pending.country + "'", what='price, days')[0]
- Shipping cost to $pending.country is $(shippinginfo.price/100)€ <br>
- Shipping estimate is $shippinginfo.days days<br>
- $code:
- toteuro += shippinginfo.price/100
- $if totsats > 0:
- total: $toteuro €
-
- order $i.timestamp
- $pending.email
- $pending.firstname $pending.lastname
- $if pending.country != 'NO-SHIPPING':
- $pending.address
- $pending.postalcode
- $pending.town
- $pending.country
- </pre>
- <a href='/orders?status=thankyou&key=$i.invoice_key'>thank you</a> | <a href='/orders?status=shipped&key=$i.invoice_key'>shipped</a> | <a href='/orders?status=paid&key=$i.invoice_key'>paid</a> | <a href='/orders?status=pickup&key=$i.invoice_key'>pickup</a> |<a href='/orders?status=paynotice&key=$i.invoice_key'>payment notice</a> | <a href='/orders?status=removed&key=$i.invoice_key'>remove</a>
- </div>
- <br>
-
diff --git a/html/orders2.html b/html/orders2.html
@@ -1,75 +0,0 @@
-$def with (payments,db,getinvoice,totsats,status,paid,unpaid,shipped,nonshipped,pickup,removed,productname,getprice)
-$ link = ''
-<h2>Orders</h2>
-<h4>total $totsats</h4>
-<p>paid $paid</p>
-<p>shipped $shipped</p>
-<p>pickup $pickup</p>
-<p>unpaid $unpaid</p>
-<p>removed $removed</p>
-<h3>waiting to be shipped $nonshipped</h3>
-<a href="?status=unpaid">unpaid</a>
-<a href="?status=paid">paid</a>
-<a href="?status=shipped">shipped</a>
-<a href="?status=pickup">pickup</a>
-<a href="?status=removed">removed</a>
-<a href="?status=thankyou">thankyou</a>
-$ id=0
-$ totsats=0
-$ toteuro=0
-$for i in payments:
- $ id=id+1
- $if i.status == status:
- <div class="orders" id="$id">
- <pre>
- $ bag = db.query("SELECT * FROM paidbags WHERE sessionkey='" + i.invoice_key +"';")
- $ pending = db.select('pending', where="invoice_key='"+i.invoice_key+"'")[0]
- $ invoice = db.select('invoices', where="invoice_key='"+i.invoice_key+"'")[0]
- $ ln = getinvoice(i.ln)
- $if i.payment == 'Bitcoin':
- $ link = "/paybtc/" + i.invoice_key
- $if i.payment == 'Bitcoin Lightning':
- $ link = "/payln/" + i.invoice_key
- <b>order status: $i.status</b>
- <b>ln status: $ln['status']</b>
- <a href=$link>$i.invoice_key</a>
- $ln['msatoshi'] mSatoshis
- $if ln['status'] == 'paid':
- $ totsats=totsats+ln['msatoshi']
- $i.payment
- $i.ln
- in your order:<br>
- $ total = 0
- $for b in bag:
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='"+b.product+"';")
- $code:
- price = getprice(b.product)
- quantity = b.quantity
- p_totsats=b.quantity*price[0]
- p_toteuro=b.quantity*price[1]
- $b.quantity x $productname(b.product)
- <a href="/dropitem/$b.product">X</a> $p_totsats $p_toteuro€<br>
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$g.soundname" style="width:120px"><br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
- $if totsats > 0:
- <br>
- total: $totsats Satoshi or $toteuro €
-
- Satoshis: $i.totsats
- order $i.timestamp
- $pending.email
- $pending.firstname $pending.lastname
- $if pending.country != 'NO-SHIPPING':
- $pending.address
- $pending.postalcode
- $pending.town
- $pending.country
- </pre>
- <a href='/orders?status=thankyou&key=$i.invoice_key'>thank you</a> | <a href='/orders?status=shipped&key=$i.invoice_key'>shipped</a> | <a href='/orders?status=paid&key=$i.invoice_key'>paid</a> | <a href='/orders?status=pickup&key=$i.invoice_key'>pickup</a> |<a href='/orders?status=paynotice&key=$i.invoice_key'>payment notice</a> | <a href='/orders?status=removed&key=$i.invoice_key'>remove</a>
- </div>
- <br>
-
diff --git a/html/ordersbtcold.html b/html/ordersbtcold.html
@@ -1,75 +0,0 @@
-$def with (payments,db,getinvoice,totsats,status,paid,unpaid,shipped,nonshipped,pickup,removed,productname,getprice)
-$ link = ''
-<h2>Orders</h2>
-<h4>total $totsats</h4>
-<p>paid $paid</p>
-<p>shipped $shipped</p>
-<p>pickup $pickup</p>
-<p>unpaid $unpaid</p>
-<p>removed $removed</p>
-<h3>waiting to be shipped $nonshipped</h3>
-<a href="?status=unpaid">unpaid</a>
-<a href="?status=paid">paid</a>
-<a href="?status=shipped">shipped</a>
-<a href="?status=pickup">pickup</a>
-<a href="?status=removed">removed</a>
-<a href="?status=thankyou">thankyou</a>
-$ id=0
-$ totsats=0
-$ toteuro=0
-$for i in payments:
- $ id=id+1
- $if i.status == status:
- <div class="orders" id="$id">
- <pre>
- $ bag = db.query("SELECT * FROM paidbags WHERE sessionkey='" + i.invoice_key +"';")
- $ pending = db.select('pending', where="invoice_key='"+i.invoice_key+"'")[0]
- $ invoice = db.select('invoices', where="invoice_key='"+i.invoice_key+"'")[0]
- $ ln = getinvoice(i.ln)
- $if i.payment == 'Bitcoin':
- $ link = "/paybtc/" + i.invoice_key
- $if i.payment == 'Bitcoin Lightning':
- $ link = "/payln/" + i.invoice_key
- <b>order status: $i.status</b>
- <b>ln status: $ln['status']</b>
- <a href=$link>$i.invoice_key</a>
- $if ln['status'] == 'paid':
- $ln['amount_msat'] mSatoshis
- $ totsats=totsats+ln['amount_msat']
- $i.payment
- $i.ln
- in your order:<br>
- $ total = 0
- $for b in bag:
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='"+b.product+"';")
- $code:
- price = getprice(b.product)
- quantity = b.quantity
- p_totsats=b.quantity*price[0]
- p_toteuro=b.quantity*price[1]
- $b.quantity x $productname(b.product)
- <a href="/dropitem/$b.product">X</a> $p_totsats $p_toteuro€<br>
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$g.soundname" style="width:120px"><br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
- $if totsats > 0:
- <br>
- total: $totsats Satoshi or $toteuro €
-
- Satoshis: $i.totsats
- order $i.timestamp
- $pending.email
- $pending.firstname $pending.lastname
- $if pending.country != 'NO-SHIPPING':
- $pending.address
- $pending.postalcode
- $pending.town
- $pending.country
- </pre>
- <a href='/orders?status=thankyou&key=$i.invoice_key'>thank you</a> | <a href='/orders?status=shipped&key=$i.invoice_key'>shipped</a> | <a href='/orders?status=paid&key=$i.invoice_key'>paid</a> | <a href='/orders?status=pickup&key=$i.invoice_key'>pickup</a> |<a href='/orders?status=paynotice&key=$i.invoice_key'>payment notice</a> | <a href='/orders?status=removed&key=$i.invoice_key'>remove</a>
- </div>
- <br>
-
diff --git a/html/pay.html b/html/pay.html
@@ -1,27 +0,0 @@
-$def with (invoice)
-$ qr = '/static/qr/' + invoice['id'] + '.png'
-<script>
-function copy() {
- let textarea = document.getElementById("payreq");
- textarea.select();
- document.execCommand("copy");
-}
-</script>
-<meta http-equiv="refresh" content="5" />
-<br>
-<h2>$invoice['description']<br>$invoice['msatoshi'] msat, $invoice['quoted_amount'] $invoice['quoted_currency']</h2>
-<br>
-<img src="$qr">
-<div id='hash'>
-<h4>id:</h4>
-<textarea id='payid'>
-$invoice['id']
-</textarea>
-<h4>pay req:</h4>
-<textarea id='payreq'>
-$invoice['payreq']
-</textarea>
-<br>
-<button id="copybutton" onclick="copy()">Copy</button>
-<button id="backbutton" autofocus onclick="parent.location='/'">Back</button>
-</div>
diff --git a/html/paybtc.html b/html/paybtc.html
@@ -1,101 +0,0 @@
-$def with (invoice, btcaddress, btcuri, showpayment, bag, productname, db, getprice, getrate, ordertype, pendinginfo, eur_to_sat)
-$ qr = '/static/qr/' + btcaddress + '.png'
-<script>
-function copy() {
- let textarea = document.getElementById("payreq");
- textarea.select();
- document.execCommand("copy");
-}
-</script>
-<meta http-equiv="refresh" content="60" />
-
-<div id="container">
-<br>
-<a href="/checkout">Go back!</a>
-
-<br>
-in your order:<br>
-$ totsats=0
-$ toteuro=0
-$for i in bag:
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='" +i.product+"';")
- $code:
- price = getprice(i.product)
- quantity = i.quantity
- p_totsats=i.quantity*price[0]
- p_toteuro=i.quantity*price[1]
- $i.quantity x $productname(i.product)
- $p_totsats $p_toteuro€<br>
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$g.soundname" style="width:120px">
- <br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
-$if totsats > 0:
- <br>
-
-$if ordertype() == 'digital':
- <h2>Digital goods will be shipped to your email once invoice paid..</h2>
-$else:
- $ shippinginfo = db.select('shipping', where="country='" + pendinginfo.country + "'", what='price, days')[0]
- Shipping cost to $pendinginfo.country is <br>$eur_to_sat(shippinginfo.price) Satoshi or ~ $(shippinginfo.price/100)€ <br>
- Shipping estimate is $shippinginfo.days days<br>
- $code:
- totsats += eur_to_sat(shippinginfo.price)
- toteuro += shippinginfo.price/100
- <pre>
- First Name: $pendinginfo.firstname
- Last Name: $pendinginfo.lastname
- Country: $pendinginfo.country
- Address: $pendinginfo.address
- Town: $pendinginfo.town
- Postalcode: $pendinginfo.postalcode
- Email: $pendinginfo.email
- </pre>
-
-<br>
-$if totsats > 0:
- total: $totsats Satoshi ~ $(toteuro)€
- with rate: $getrate()€/₿
-
-<br>
-Order is only reserved once paid.
-<br>
-<br>
-
-$if showpayment == []:
- <h5>Status: not paid</h5>
-$else:
- $for i in showpayment:
- <h2>Status:</h2>
- <h2>txid: $i['txids']</h2>
- <h2>confirmations: $i['confirmations']</h2>
-<br>
-<img style="width:220px" src="$qr">
-<div id='hash'>
-<h2>bitcoin address:</h2>
-<textarea id='payid'>
-$btcaddress
-</textarea>
-<h2>pay uri:</h2>
-<textarea id='payreq'>
-$btcuri
-</textarea>
-<br>
-<button id="copybutton" onclick="copy()">Copy</button>
-<button id="backbutton" autofocus onclick="parent.location='/payln/$invoice.invoice_key'">Pay with Lightning</button>
-</div>
-
-<br>
-<br>
-
-<a href="/checkout">Go back!</a>
-
-<br>
-</div>
-<br>
-<br>
-<br>
-<br>
diff --git a/html/payln.html b/html/payln.html
@@ -1,106 +0,0 @@
-$def with (lninvoice,invoice,bag,productname,digitalkey,db,getprice,getrate,ordertype,pendinginfo,eur_to_sat)
-$ qr = '/static/qr/' + invoice['invoice_key'] + '.png'
-<script>
-function copy() {
- let textarea = document.getElementById("payreq");
- textarea.select();
- document.execCommand("copy");
-}
-</script>
-
-<div id="container">
-<br>
-<br>
-$if lninvoice['status'] != 'paid':
- <meta http-equiv="refresh" content="30" />
- <a href="/checkout">Go back!</a>
- <br>
- <h2>Pay with Bitcoin Lightning</h2>
-$else:
- <h3>Payment recieved!</h3>
- $if digitalkey:
- <p>link to your digital goodies is in your mail!</p><br>
- <img src="/static/jamesfrancothanks.gif" style="width:300px"><br>
- <a href="/">Back to beginning</a>
- <br>
-in your order:<br>
-$ totsats=0
-$ toteuro=0
-$for i in bag:
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='" +i.product+"';")
- $code:
- price = getprice(i.product)
- quantity = i.quantity
- p_totsats=i.quantity*price[0]
- p_toteuro=i.quantity*price[1]
- $i.quantity x $productname(i.product)
- $p_totsats $p_toteuro€<br>
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$g.soundname" style="width:120px">
- <br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
-
-$if ordertype() == 'digital':
- <h2>Digital goods will be shipped to your email once invoice paid..</h2>
-$else:
- $ shippinginfo = db.select('shipping', where="country='" + pendinginfo.country + "'", what='price, days')[0]
- Shipping cost to $pendinginfo.country is <br>$eur_to_sat(shippinginfo.price) Satoshi or ~ $(shippinginfo.price/100)€ <br>
- Shipping estimate is $shippinginfo.days days<br>
- $code:
- totsats += eur_to_sat(shippinginfo.price)
- toteuro += shippinginfo.price/100
- <pre>
- First Name: $pendinginfo.firstname
- Last Name: $pendinginfo.lastname
- Country: $pendinginfo.country
- Address: $pendinginfo.address
- Town: $pendinginfo.town
- Postalcode: $pendinginfo.postalcode
- Email: $pendinginfo.email
- </pre>
-
-<br>
-$if totsats > 0:
- total: $totsats Satoshi $(toteuro)€
- with rate: $getrate()€/₿
-
-<br>
-Order is only reserved once paid.
-<br>
-<br>
-
-$if totsats > 0:
- <br>
- total: $totsats Satoshi or $toteuro €<br>
- with rate: $getrate()€/₿
- <h2>status: $lninvoice['status']</h2>
-<br>
-<a href="lightning:$lninvoice['bolt11']"><img src="$qr"></a>
-<div id='hash'>
-<h2>id:</h2>
-<textarea id='payid'>
-$lninvoice['label']
-</textarea>
-<h2>bolt11:</h2>
-<textarea id='payreq'>
-$lninvoice['bolt11']
-</textarea>
-<br>
-<button id="copybutton" onclick="copy()">Copy</button>
-<button id="backbutton" autofocus onclick="parent.location='/paybtc/$invoice.invoice_key'">Pay with Bitcoin on-chain</button>
-</div>
-
-<br>
-<br>
-
-<a href="/checkout">Go back!</a>
-
-<br>
-</div>
-<br>
-<br>
-<br>
-<br>
diff --git a/html/payment.html b/html/payment.html
@@ -1,27 +0,0 @@
-$def with (invoice)
-$ qr = '/static/qr/' + invoice['id'] + '.png'
-<script>
-function copy() {
- let textarea = document.getElementById("payreq");
- textarea.select();
- document.execCommand("copy");
-}
-</script>
-<meta http-equiv="refresh" content="60" />
-<br>
-<h2>$invoice['description']<br>$invoice['msatoshi'] msat, $invoice['quoted_amount'] $invoice['quoted_currency']</h2>
-<br>
-<img src="$qr">
-<div id='hash'>
-<h4>id:</h4>
-<textarea id='payid'>
-$invoice['id']
-</textarea>
-<h4>pay req:</h4>
-<textarea id='payreq'>
-$invoice['payreq']
-</textarea>
-<br>
-<button id="copybutton" onclick="copy()">Copy</button>
-<button id="backbutton" autofocus onclick="parent.location='/'">Back</button>
-</div>
diff --git a/html/payments.html b/html/payments.html
@@ -1,33 +0,0 @@
-$def with (payments)
-$var payments = payments
-$ link = ''
-</div>
-<h2>payments</h2>
-<table>
-$for i in payments:
- $if i.payment == 'Bitcoin':
- $ link = "/paybtc/" + i.invoice_key
- $if i.payment == 'Bitcoin Lightning':
- $ link = "/payln/" + i.invoice_key
- <pre>
- <b>status: $i.status</b>
- <a href=$link>$i.invoice_key</a>
- $i.payment
- $i.btc
- $i.ln
- $i.products | $float(i.amount/100) € | Satoshis: $i.totsats
- order $i.timestamp
- $if i.datepaid:
- paid $i.datepaid
- $else:
- not paid!
- $i.email
- $i.firstname $i.lastname
- $i.address
- $i.postalcode
- $i.town
- $i.country
- <a href='/payments?status=thankyou&key=$i.invoice_key'>thank you</a> | <a href='/payments?status=shipped&key=$i.invoice_key'>shipped</a> | <a href='/payments?status=paynotice&key=$i.invoice_key'>payment notice</a> | <a href='/payments?status=remove&key=$i.invoice_key'>remove</a>
- </pre>
-</table>
-
diff --git a/html/paymobile.html b/html/paymobile.html
@@ -1,88 +0,0 @@
-$def with (lninvoice,invoice,bag,productname,digitalkey,db,getprice,getrate,ordertype,pendinginfo,eur_to_sat)
-$ qr = '/static/qr/' + invoice['invoice_key'] + '.png'
-<script>
-function copy() {
- let textarea = document.getElementById("payreq");
- textarea.select();
- document.execCommand("copy");
-}
-</script>
-
-<div id="container">
-<br>
-~*~<br>
-<br>
-<h2>Waiting for payment</h2>
-<br>
-~*~<br>
-$if invoice.status != 'paid':
- <meta http-equiv="refresh" content="30" />
- <br>
-$else:
- <h3>Payment recieved!</h3>
- $if digitalkey:
- <p>link to your digital goodies is in your mail!</p><br>
- <img src="/static/jamesfrancothanks.gif" style="width:300px"><br>
- <a href="/">Back to beginning</a>
- <br>
-$ totsats=0
-$ toteuro=0
-$for i in bag:
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='" +i.product+"';")
- $code:
- price = getprice(i.product)
- quantity = i.quantity
- p_totsats=i.quantity*price[0]
- p_toteuro=i.quantity*price[1]
- $code:
- toteuro += p_toteuro
-
-$if ordertype() == 'digital':
- ~*~
-$else:
- $ shippinginfo = db.select('shipping', where="country='" + pendinginfo.country + "'", what='price, days')[0]
- $code:
- totsats += eur_to_sat(shippinginfo.price)
- toteuro += shippinginfo.price/100
-
-$if invoice.status == 'unpaid':
- <br>
- Send a payment of total: $(toteuro)€
- <br>
- <br>
- to Robin Johannes Bäckman
- <br>
- with mobilepay app number: 0469507618
- <br>
- or send payment here <a href="https://buymeacoffee.com/rbckman">buymecoffee</a>
- <br>
- <br>
- ~<br>
- <br>
- it was a pleasure doing business with you and please give me feedback on me@robinbackman.com
- <br>
- <br>
- ~<br>
- <br>
- status: unpaid
- <br>
- <br>
- ~*~<br>
- <br>
- Order is only reserved once paid.
- <br>
-$else:
- <br>
- order status: $invoice.status
- <br>
- ~*~<br>
-<br>
-
-<a href="/checkout"><--- back shopping for moar yes plz</a>
-
-<br>
-</div>
-<br>
-<br>
-<br>
-<br>
diff --git a/html/pending.html b/html/pending.html
@@ -1,64 +0,0 @@
-$def with (pending_key,pendingform,pendinginfo,bag,productname,db,getprice,eur_to_sat,ordertype)
-$ totsats = 0
-$ toteuro = 0
-<div id="container">
-<div id="default">
-<br>
-~*~<br>
-<h2>Your Order</h2>
-
-in your order:<br>
-$for i in bag:
- $ goodies = db.query("SELECT * FROM soundlink WHERE id='" +i.product+"';")
- $code:
- price = getprice(i.product)
- quantity = i.quantity
- p_totsats=i.quantity*price[0]
- p_toteuro=i.quantity*price[1]
- $i.quantity x $productname(i.product)
- <a href="/dropitem/$i.product">X</a> $p_toteuro€<br>
- $for g in goodies:
- $if g.soundname[-5:] == '.jpeg' or g.soundname[-4:] == '.png':
- <br>
- <img src="/static/img/thumb/$g.soundname" style="width:120px"><br>
- $code:
- totsats += p_totsats
- toteuro += p_toteuro
-
-<br>
-<br>
-$if ordertype() == 'digital':
- <h2>Digital goods if any will be shipped to your email once invoice paid..</h2>
-$else:
- $ shippinginfo = db.select('shipping', where="country='" + pendinginfo.country + "'", what='price, days')[0]
- Shipping cost to $pendinginfo.country is $(shippinginfo.price/100)€ <br>
- Shipping estimate is $shippinginfo.days days<br>
- $code:
- totsats += eur_to_sat(shippinginfo.price)
- toteuro += shippinginfo.price/100
- <pre>
- First Name: $pendinginfo.firstname
- Last Name: $pendinginfo.lastname
- Country: $pendinginfo.country
- Address: $pendinginfo.address
- Town: $pendinginfo.town
- Postalcode: $pendinginfo.postalcode
- Email: $pendinginfo.email
- </pre>
-
-<br>
-<p>
-$if totsats > 0:
- total: $(toteuro)€
-<p>
-~*~<br>
-<div id="addevent">
-<form method="POST">
-$:pendingform.render()
-</form>
-</div>
-<b><p></p></b>
-<a href="/checkout"><- back shopping for moar? yes plz</a>
-</div>
-</div>
-</div>
diff --git a/html/products.html b/html/products.html
@@ -1,41 +0,0 @@
-$def with (addproduct, listproducts, goodies, idvalue, nocache)
-<div id="container">
-<div id="default">
-<br>
-$for i in listproducts:
- <div class="editproduct" id="$i.id"><a href='/products/$i.id'>$i.name[:15]</a></div>
-<br>
-$if idvalue == '':
- <h2>Add product</h2>
-$else:
- <h2>Edit product</h2>
-<div id="addevent">
-<form method="POST">
-$:addproduct.render()
-</form>
-<a href='/products/$idvalue?cmd=del&id=$idvalue'>remove product</a>
-<br>
-<hr>
-$if goodies != None:
- $for i in goodies:
- $if i.soundname[-5:] == '.jpeg' or i.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$i.soundname?nocache=$nocache">
- $else:
- <p>$i.soundname</p>
- <br>
- <a href='/products/$idvalue?cmd=flipleft&soundname=$i.soundname'>flip to left</a> |
- <a href='/products/$idvalue?cmd=remove&soundname=$i.soundname'>remove</a> |
- <a href='/products/$idvalue?cmd=flipright&soundname=$i.soundname'>flip to right</a>
- <br>
- <hr>
-$if idvalue != '':
- <form method="POST" enctype="multipart/form-data" action="">
- <input type="file" name="imgfile"/> <br>
- <br/>
- <input name="upload", type="submit" value="upload" />
- </form>
-</div>
-
-</div>
-</div>
-</div>
diff --git a/html/propaganda.html b/html/propaganda.html
@@ -1,47 +0,0 @@
-$def with (configform, picform, goodies, nocache, story)
-<br>
-~*~
-<br>
-$for i in goodies:
- <a href="/propaganda?soundname=$i.soundlink">$i.soundlink</a> | $i.name
- <br>
-~*~
-<div id="container">
-<div id="default">
-<br>
-
-<form method="POST">
-$if story == None:
- $:configform.render()
-</form>
-<br>
-<b>upload images</b>
-<br>
-<form method="POST" enctype="multipart/form-data" action="">
-<input type="file" name="imgfile"/> <br>
-<br/>
-<input name="upload", type="submit" value="upload" />
-</form>
-<br/>
-$if story != None:
- $for i in story:
- $if i.soundname[-5:] == '.jpeg' or i.soundname[-4:] == '.png':
- <img src="/static/img/thumb/$i.soundname?nocache=$nocache">
- $else:
- <p>$i.soundname</p>
- <br>
- <a href='/propaganda?cmd=flipleft&soundname=$i.soundname'>flip to left</a> |
- <a href='/propaganda?cmd=remove&soundname=$i.soundname'>remove</a> |
- <a href='/propaganda?cmd=flipright&soundname=$i.soundname'>flip to right</a>
- <br>
- $picform.fill(name=i.name, description=i.description, description2=i.description2, id=i.soundlink)
- <form method="POST">
- $:picform.render()
- </form>
- <hr>
-
-</div>
-
-</div>
-</div>
-</div>
diff --git a/html/shipping.html b/html/shipping.html
@@ -1,16 +0,0 @@
-$def with (addcountry, listcountries)
-<div id="container">
-<div id="default">
-<br>
-<h2>Add shipping country</h2>
-<div id="addevent">
-<form method="POST">
-$:addcountry.render()
-</form>
-</div>
-$for i in listcountries:
- <a href='/shipping/$i.id'>$i.country $i.price $i.days</a>
-<b><p></p></b>
-</div>
-</div>
-</div>
diff --git a/html/splash.html b/html/splash.html
@@ -1,5 +0,0 @@
-$def with (content)
-
-<!doctype html>
-$:content
-