forked from waveney/chippenham
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDonate.php
More file actions
executable file
·26 lines (20 loc) · 1.07 KB
/
Donate.php
File metadata and controls
executable file
·26 lines (20 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
include_once('int/fest.php');
dohead("Donate",[],1);
echo "<div class=donateCont>";
$Dons = Gen_Get_All('Donations','ORDER BY Importance DESC');
foreach ($Dons as $Don) {
if (!$Don['InUse']) continue;
echo "<div class=donate><img src='" . $Don['Image'] . "'><p>";
echo "<h2>" . (is_numeric($Don['Value'])? "£" :'') . $Don['Value'] ."</h2>" . $Don['Text'] . "<p>";
echo '<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="' . $Don['ButtonId'] . '" />
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
</form>';
echo "</div>";
}
echo "</div>";
echo "<p class=smaller>Donations handled through Paypal, all major credit cards accepted<p>";
dotail();