| Code: : |
| <?php /****************************************************************************/ /* PHP-NUKE: Web Portal System */ /* =========================== */ /* */ /* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */ /* http://phpnuke.org */ /* */ /* This program is free software. You can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /* */ /* Donations block to accept money thru PayPal. */ /* */ /* Scott Rubin - phpnuke id: scottr - http://www.ierealtor.com - 1/2003 */ /* email: scottr2@earthlink.net */ /* */ /* This assumes you have already setup an account with PayPal. */ /* Just change $paypal_email below to your PayPal email address. */ /* */ /*++++***********************************************************************/ if (eregi("block-Donations.php",$PHP_SELF)) { Header("Location: index.php"); die(); } # Block to accept money thru PayPal /*******************************************************************/ /* change $paypal_email value to be your paypal email address */ /* change $top_msg value to display text above the paypal image */ /* change $bottom_msg value to display text below the paypal image */ /*******************************************************************/ $paypal_email="yourname@your-domain.com"; $top_msg = ""; $bottom_msg = ""; $content = "<br><center>"; $content .= "$top_msg"; $content .= "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">"; $content .= "<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">"; $content .= "<input type=\"hidden\" name=\"business\" value=\"$paypal_email\">"; $content .= "<input type=\"hidden\" name=\"currency_code\" value=\"GBP\">"; $content .= "<input type=\"image\" src=\"https://www.paypal.com/images/x-click-but04.gif\" border=\"0\" name=\"submit\" alt=\"Make payments with PayPal - it's fast, free and secure!\">"; $content .= "</form>"; $content .= "$bottom_msg"; $content .= "</center><br>"; ?> |