summaryrefslogtreecommitdiffstats
path: root/donate.php
blob: 85ef1d600279b815f199fbe698849d07f8208249 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
// (c) 2014-2015 Timothy Pearson
// All Rights Reserved

include("tde-head-and-foot.php");
doHeader("Support Trinity", "Donate", "_");
?>

<h2>The Trinity project needs your support!</h2>
    <p>
    While Trinity is free software, making it is not free.<br>
    Developing and maintaining Trinity takes an enormous amount of effort, and relies heavily on both a fast
    Internet connection and large, power-hungry computers for the build farm and Web services.
    </p>
    <p>
    If you can, please help to both assist the Trinity development team and pay for the various resources in
    use by donating here:
    </p>

<?php
	$donation_complete = false;
	$donation_aborted = false;
	if (isset($_GET['action'])) {
		if ($_GET['action'] == "done") {
			$donation_complete = true;
		}
		else if ($_GET['action'] == "cancel") {
			$donation_aborted = true;
		}
	}
	if ($donation_complete == true) {
		echo "	<fieldset>";
		echo "	<legend>Donation Received</legend>";
		echo "    <font color=\"green\"><b>Thank you for your donation to the Trinity Desktop project!</b></font><br>&nbsp;<br>Your funding will help to create an even better TDE experience into the future.";
		echo "	</fieldset>";
	}
	else if ($donation_aborted == true) {
		echo "	<fieldset>";
		echo "	<legend>Donation Cancelled</legend>";
		echo "    <font color=\"red\"><b>We're sorry you changed your mind.</b></font><br>&nbsp;<br>However, if you love TDE there are other ways to get involved and help the project!<br>Check out our <a href=\"/helpwanted.php\">Get Involved</a> page for more ideas.";
		echo "	</fieldset>";
	}
	else
	{
		if ( 0 /* enable fiat currencies via PayPal */ )
		{
			echo "	<p>\n";
			echo "	<fieldset>\n";
			echo "	<legend>Via PayPal</legend>\n";
			echo "	<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"_top\">\n";
			echo "	<input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\">\n";
			echo "	<input type=\"hidden\" name=\"hosted_button_id\" value=\"HVGH827GE28G2\">\n";
			echo "	<input type=\"image\" src=\"https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online!\">\n";
			echo "	<img alt=\"\" border=\"0\" src=\"https://www.paypalobjects.com/en_US/i/scr/pixel.gif\" width=\"1\" height=\"1\">\n";
			echo "	</form>\n";
			echo "	</fieldset>\n";
			echo "	</p>\n";
		}
		else
		{
			echo "	<p>\n";
			echo "	<fieldset>\n";
			echo "	<legend>Via PayPal</legend>\n";
			echo "	Donations through PayPal has been temporarily disabled until";
			echo " we prepare a way to make donation transactions transparent for";
			echo " everyone. Please donate using another method for the time being.\n";
			echo "	</fieldset>\n";
			echo "	</p>\n";
		}
		if ( 1 /* credit card or bank transfer */ )
		{
			echo "	<p>\n";
			echo "	<fieldset>\n";
			echo "	<legend>Via Credit Card or Bank Transfer</legend>\n";
			echo "		You can use some exchanges which allow bank transfer or";
			echo " transfer by credit card to send a fiat currency and automatically";
			echo " send Bitcoins to the TDE Bitcoin wallet.\n";
			echo "		These exchanges do not require any registration,";
			echo " so they are quite convenient to use.<br/>\n";
			echo "		For example:<br/>\n";
			echo "		<ul>\n";
			echo "		<li>to use a bank transfer of Euros, you can use";
			echo " <a href=\"https://www.anycoin.cz/exchange\">Anycoin.cz</a>";
			echo " (you can change the interface to English using the Settings Gear -> Jazyk combobox)</li>\n";
			echo "		<li>to transfer by credit card, you can use";
			echo " <a href=\"https://simpleswap.io/exchange?from=usd&to=btc&amount=45\">SimpleSwap.io</a></li>\n";
			echo "		</ul>\n";
			echo "		TDE wallet address: <b>bc1q52gwsfps0acdg5rdekjhzvch4a6tf5pc036e5z</b><br/>\n";
			echo "	</fieldset>\n";
			echo "	</p>\n";
		}
		if ( 1 /* enable Bitcoin */ )
		{
			echo "	<p>\n";
			echo "	<fieldset>\n";
			echo "	<legend>Via Bitcoin</legend>\n";
			echo "		Donate <a href='donate-btc0002' target='donate_btc'>0.2&nbsp;mBTC</a> &ndash; \n";
			echo "		<a href='donate-btc0005' target='donate_btc'>0.5&nbsp;mBTC</a> &ndash; \n";
			echo "		<a href='donate-btc001' target='donate_btc'>1&nbsp;mBTC</a> &ndash; \n";
			echo "		<a href='donate-btc' target='donate_btc'>other&nbsp;mBTC</a> to TDE!<br />\n";
			echo "		<iframe src='donate-btc0005' name='donate_btc' width='400' height='600' style='border:none;' title='Donate via Bitcoin'></iframe><br />\n";
			echo "	</fieldset>\n";
			echo "	</p>\n";
		}
		echo "	<p>Every little bit helps and is much appreciated!</p>\n";
		echo "	<a href=\"https://floss.social/@tde\" rel=\"me\" />\n";
	}
?>

<?php
	doFooter();
?>