From ab208fff56e536585bc0978898a7c3f610c73dce Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 30 May 2012 21:52:55 +0000 Subject: [PATCH] implemented bitcoin donations and advertisement (via http://bitcoinadvertisers.com) svn path=/trunk/; revision=44 --- Admin.page | 10 ++++++++++ Home.page | 3 +++ busy.css | 16 ++++++++++++++++ index.cgi | 17 +++++++++++++++-- project.meta | 7 +++++-- write/projectmeta.cgi | 5 ++++- 6 files changed, 53 insertions(+), 5 deletions(-) diff --git a/Admin.page b/Admin.page index 8bc7e4f..e26420f 100644 --- a/Admin.page +++ b/Admin.page @@ -36,6 +36,16 @@ else
Paypal Address

+ +
Advertisement +
No Advertisement

+ +
+ Bitcoin Address:
+ Content: +

+
diff --git a/Home.page b/Home.page index 01d5b1b..33d40c5 100644 --- a/Home.page +++ b/Home.page @@ -80,5 +80,8 @@ done cat < HomeEND diff --git a/busy.css b/busy.css index 059791d..fc454a3 100644 --- a/busy.css +++ b/busy.css @@ -68,6 +68,22 @@ div#ACCOUNTING { border-color: #AAF; padding: .5em 1em .5em 1em; } +div#ACCOUNTING #btcqr { + position: fixed; + border: 1px solid #000; + background-color: #FFF; + padding: 1em; + + /*left: 40%; right: 40%; top: 10em;*/ + text-align: center; + vertical-align: middle; + z-index: 100; + + overflow: none; +} +div#ACCOUNTING #btcqr img { + width: 80% +} div#MENU { position: absolute; diff --git a/index.cgi b/index.cgi index 482a747..6084c3e 100755 --- a/index.cgi +++ b/index.cgi @@ -86,9 +86,22 @@ $( $LOGIN && $ACL_ADMIN && echo 'Admin
') $( $LOGIN && echo 'My Settings
')
- $(grep -q 'useFlattr=yes' project.meta && echo ' + $(btcAddress="$(sed -rn 's:^btcAddress=(.*)$:\1:p' project.meta)" + flattrThingURL=$(sed -rn 's:^flattrThingURL=(.*)$:\1:p' project.meta) + + grep -q 'useBitcoin=yes' project.meta && [ \! -f "QRcodes/bitcoin:${btcAddress}.png" ] &&\ + qrencode -o "QRcodes/bitcoin:${btcAddress}.png" "bitcoin:$btcAddress" + grep -q 'useBitcoin=yes' project.meta && echo ' + + + ' + grep -q 'useFlattr=yes' project.meta && echo ' -