filebot/website/donate.php

28 lines
877 B
PHP
Raw Normal View History

<?php
2015-06-04 15:59:36 +00:00
$type = isset($_GET['src']) ? $_GET['src'] : '';
2015-06-04 16:12:44 +00:00
$name = 'FileBot Media Renamer';
// packages: msi, app, deb, jar, portable
2015-06-04 16:12:44 +00:00
if ($type == 'msi')
$name = 'FileBot for Windows';
else if ($type == 'app')
$name = 'FileBot for Mac';
else if ($type == 'deb')
$name = 'FileBot for Debian Linux';
2015-06-04 15:59:36 +00:00
else if ($type == 'portable')
$name = 'FileBot Portable';
2017-04-20 18:21:02 +00:00
else if ($type == 'jar')
$name = 'FileBot Jar';
2016-10-17 08:53:25 +00:00
else if ($type == 'forum')
$name = 'Customer Support';
2015-06-04 15:59:36 +00:00
else if (strlen($type) > 0)
$name = 'FileBot ('.strtolower($type).')';
// insert product name and redirect to paypal donation page
2016-09-16 17:29:55 +00:00
$url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=rednoah%40filebot%2enet&lc=US&item_name='.urlencode($name).'&amount=10%2e00&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted';
header('HTTP/1.1 302 Found');
header('Location: '.$url);
?>