aboutsummaryrefslogtreecommitdiffstats
path: root/paypal.inc.php
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2014-10-12 12:27:45 +0300
committerThomas Backlund <tmb@mageia.org>2014-10-12 12:27:45 +0300
commit9ce6d646ff718cd62f6434c9a4c94e450436612a (patch)
tree3ee82e5db7c0aee44a5573d9d17035c6ecac697d /paypal.inc.php
parenta0b2d09125d7911656fe4cb286f20643c4432281 (diff)
downloadwww-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.gz
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.bz2
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.tar.xz
www-9ce6d646ff718cd62f6434c9a4c94e450436612a.zip
Revert "Updated Estonian translation"
Diffstat (limited to 'paypal.inc.php')
-rw-r--r--paypal.inc.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/paypal.inc.php b/paypal.inc.php
new file mode 100644
index 000000000..fd5a77f39
--- /dev/null
+++ b/paypal.inc.php
@@ -0,0 +1,36 @@
+<?php
+/**
+*/
+
+/**
+*/
+function html_paypal_form($lang = 'en')
+{
+ $buttons = array(
+ 'en' => 'en_US',
+ 'fr' => 'fr_FR',
+ 'es' => 'es_ES',
+ 'de' => 'de_DE',
+ 'it' => 'it_IT',
+ 'nl' => 'nl_NL',
+ 'pl' => 'pl_PL',
+ 'zh' => 'zh_CN',
+ 'zh_cn' => 'zh_CN'
+ );
+ if (!array_key_exists($lang, $buttons))
+ $lang = 'en';
+
+ $btnLoc = $buttons[$lang];
+
+ $html = <<<H
+<form action="https://www.paypal.com/cgi-bin/webscr" method="post" id="pp_form">
+ <input type="hidden" name="cmd" value="_s-xclick">
+ <input type="hidden" name="hosted_button_id" value="62X2MFQRAYABL">
+ <p id="pp_form_btn">
+ <input type="image" src="https://www.paypal.com/{$btnLoc}/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
+ <img alt="" border="0" src="https://www.paypal.com/{$btnLoc}/i/scr/pixel.gif" width="1" height="1">
+ </p>
+</form>
+H;
+ return $html;
+} \ No newline at end of file