2011-03-28 14:21:28 +00:00
< ?
//TODO: Developer, add resend last donation when available AND add missing headers to Test IPN
enforce_login ();
//Include the header
if ( $LoggedUser [ 'RatioWatch' ]) {
error ( 'Due to the high volume of payment disputes, we do not accept donations from users on ratio watch. Sorry.' );
}
if ( ! $UserCount = $Cache -> get_value ( 'stats_user_count' )){
$DB -> query ( " SELECT COUNT(ID) FROM users_main WHERE Enabled='1' " );
list ( $UserCount ) = $DB -> next_record ();
$Cache -> cache_value ( 'stats_user_count' , $UserCount , 0 ); //inf cache
}
2012-10-11 08:00:15 +00:00
$DonorPerms = Permissions :: get_permissions ( DONOR );
2011-03-28 14:21:28 +00:00
2012-10-11 08:00:15 +00:00
View :: show_header ( 'Donate' );
2011-03-28 14:21:28 +00:00
?>
<!-- Donate -->
< div class = " thin " >
< ? if ( check_perms ( 'site_debug' )) { ?>
2012-08-19 08:00:19 +00:00
< div class = " header " >
2012-09-24 08:00:33 +00:00
< h2 > Test IPN </ h2 >
2012-08-19 08:00:19 +00:00
</ div >
2011-03-28 14:21:28 +00:00
< div class = " box pad " >
2012-09-15 08:00:25 +00:00
< form class = " donate_form " name = " test_paypal " method = " post " action = " donate.php " >
2012-09-23 08:00:25 +00:00
< input type = " hidden " name = " action " value = " ipn " />
2011-03-28 14:21:28 +00:00
< input type = " hidden " name = " auth " value = " <?= $LoggedUser['AuthKey'] ?> " />
2012-09-23 08:00:25 +00:00
< ? = PAYPAL_SYMBOL ?> <input type="text" name="mc_gross" value="<?=number_format(PAYPAL_MINIMUM,2)?>" />
< input type = " hidden " name = " custom " value = " <?= $LoggedUser['ID'] ?> " />
< input type = " hidden " name = " payment_status " value = " Completed " />
< input type = " hidden " name = " mc_fee " value = " 0.45 " />
< input type = " hidden " name = " business " value = " <?=PAYPAL_ADDRESS?> " />
< input type = " hidden " name = " txn_id " value = " 0 " />
< input type = " hidden " name = " payment_type " value = " instant " />
< input type = " text " name = " payer_email " value = " <?= $LoggedUser['Username'] ?>@<?=NONSSL_SITE_URL?> " />
< input type = " hidden " name = " mc_currency " value = " <?=PAYPAL_CURRENCY?> " />
< input name = " test " type = " submit " value = " Donate " />
2011-03-28 14:21:28 +00:00
</ form >
</ div >
< ?
}
?>
2012-08-19 08:00:19 +00:00
< div class = " header " >
2012-09-24 08:00:33 +00:00
< h2 > Donate </ h2 >
2012-08-19 08:00:19 +00:00
</ div >
2011-03-28 14:21:28 +00:00
< div class = " box pad " style = " padding:10px 10px 10px 20px; " >
2012-09-23 08:00:25 +00:00
< p > We accept donations to cover the costs associated with running the site and tracker . These costs come from the rental and purchase of the hardware the site runs on ( servers , components , etc . ), in addition to operating expenses ( bandwidth , power , etc . ) .</ p >
2011-03-28 14:21:28 +00:00
< p > Because we do not have any advertisements or sponsorships and this service is provided free of charge , we are entirely reliant upon user donations . If you are financially able , please consider making a donation to help us pay the bills !</ p >
2012-09-23 08:00:25 +00:00
< p > We currently only accept one payment method : PayPal . Because of the fees they charge , there is a < strong > minimum donation amount of < ? = PAYPAL_SYMBOL ?> <?=PAYPAL_MINIMUM?></strong> (Please note, this is only a minimum amount and we greatly appreciate any extra you can afford.).</p>
< p > You don ' t have to be a PayPal member to make a donation , you can simply donate with your credit or debit card . If you do not have a credit or debit card , you should be able to donate from your bank account , but you will need to make an account with them to do this .</ p >
2012-09-15 08:00:25 +00:00
< form class = " donate_form " name = " paypal " action = " https://www.paypal.com/cgi-bin/webscr " method = " post " >
2012-09-23 08:00:25 +00:00
< input type = " hidden " name = " rm " value = " 2 " />
< input type = " hidden " name = " cmd " value = " _donations " />
< input type = " hidden " name = " business " value = " <?=PAYPAL_ADDRESS?> " />
< input type = " hidden " name = " return " value = " http://<?=SITE_URL?>/donate.php?action=complete " />
< input type = " hidden " name = " cancel_return " value = " http://<?=SITE_URL?>/donate.php?action=cancel " />
< input type = " hidden " name = " notify_url " value = " http://<?=NONSSL_SITE_URL?>/donate.php?action=ipn " />
< input type = " hidden " name = " item_name " value = " Donation " />
< input type = " hidden " name = " amount " value = " " />
< input type = " hidden " name = " custom " value = " <?= $LoggedUser['ID'] ?> " />
< input type = " hidden " name = " no_shipping " value = " 0 " />
< input type = " hidden " name = " no_note " value = " 1 " />
< input type = " hidden " name = " currency_code " value = " <?=PAYPAL_CURRENCY?> " />
< input type = " hidden " name = " tax " value = " 0 " />
< input type = " hidden " name = " bn " value = " PP-DonationsBF " />
2011-03-28 14:21:28 +00:00
< input type = " submit " value = " PayPal Donate " />
</ form >
</ div >
?>
< h3 > What you will receive for a 5 & euro ; minimum donation </ h3 >
< div class = " box pad " style = " padding:10px 10px 10px 20px; " >
< ul >
< ? if ( $LoggedUser [ 'Donor' ]) { ?>
< li > Even more love ! ( You will not get multiple hearts . ) </ li >
2012-09-23 08:00:25 +00:00
< li > A warmer , fuzzier feeling than before !</ li >
2011-03-28 14:21:28 +00:00
< ? } else { ?>
< li > Our eternal love , as represented by the < img src = " <?=STATIC_SERVER?>common/symbols/donor.png " alt = " Donor " /> you get next to your name .</ li >
< li > 2 invitations , to invite 2 good friends to use this tracker .</ li >
< ?
if ( USER_LIMIT != 0 && $UserCount >= USER_LIMIT && ! check_perms ( 'site_can_invite_always' ) && ! isset ( $DonorPerms [ 'site_can_invite_always' ])) {
?>
2012-03-04 08:00:21 +00:00
< li class = " warning " > Note : Because the user limit has been reached , you will be unable to use the invites received until a later date .</ li >
2011-03-28 14:21:28 +00:00
< ? } ?>
< li > Immunity to inactivity pruning .</ li >
< li > Access to an ever growing list of exclusive features , including the ability to submit requests and personal collages .</ li >
2012-09-23 08:00:25 +00:00
< li > A warm , fuzzy feeling .</ li >
2011-03-28 14:21:28 +00:00
< ? } ?>
</ ul >
</ div >
< h3 > What you will < strong > not </ strong > receive </ h3 >
< div class = " box pad " style = " padding:10px 10px 10px 20px; " >
< ul >
< ? if ( $LoggedUser [ 'Donor' ]) { ?>
2012-09-23 08:00:25 +00:00
< li > 2 more invitations ; these are one time only .</ li >
2011-03-28 14:21:28 +00:00
< ? } ?>
< li > Immunity from the rules .</ li >
< li > Additional upload credit .</ li >
</ ul >
</ div >
</ div >
<!-- END Donate -->
2012-10-11 08:00:15 +00:00
< ? View :: show_footer (); ?>