cgi: Rename the preset vars and supply the currency
authorWerner Koch <wk@gnupg.org>
Tue, 16 May 2017 17:08:32 +0000 (19:08 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 16 May 2017 17:08:32 +0000 (19:08 +0200)
cgi/procdonate.cgi
web/donate/donate.de.org
web/donate/donate.org

index 46fc0dd..a6dc28d 100755 (executable)
@@ -1029,13 +1029,13 @@ elsif ($mode eq 'preset') {
     else {
         # Then look at arbitrary values
         # No checking needed.
-        if ($q->param('s_amount') ne '') {
+        if ($q->param('s_amt') ne '') {
             $amount = int $q->param('s_amount');
         }
-        if ($q->param('s_currency') ne '') {
+        if ($q->param('s_cur') ne '') {
             $currency = $q->param('s_currency');
         }
-        if ($q->param('s_paytype') ne '') {
+        if ($q->param('s_pt') ne '') {
             $paytype = $q->param('s_paytype');
         }
     }
index 8d80df4..e6904a8 100644 (file)
@@ -1,3 +1,4 @@
+#                                                  -*- html -*-
 #+TITLE: GnuPG - Spenden
 #+STARTUP: showall
 #+SETUPFILE: "../share/setup.inc"
index d7a61c3..13491a9 100644 (file)
       <div class="form-group">
         <div class="col-md-offset-2 col-md-6">
           <div class="btn-group btn-group-xs" role="group" aria-label="suggested amounts">
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amount=500"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=500&s_cur=eur"
                class="btn btn-default">500&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amount=200"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=200&s_cur=eur"
                class="btn btn-default">200&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amount=100"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=100&s_cur=eur"
                class="btn btn-default">100&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amount=50"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=50&s_cur=eur"
                class="btn btn-default">50&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amount=20"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=20&s_cur=eur"
                class="btn btn-default">20&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amount=10"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=10&s_cur=eur"
                class="btn btn-default">10&#x202f;€</a>
-            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amount=5"
+            <a href="/cgi-bin/procdonate.cgi?mode=preset&s_amt=5&s_cur=eur"
                class="btn btn-default">5&#x202f;€</a>
           </div>
           <span class="help-block">