filebot/website/donate.php

24 lines
757 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';
else if (strlen($type) > 0)
$name = 'FileBot ('.strtolower($type).')';
// insert product name and redirect to paypal donation page
2015-06-04 15:59:36 +00:00
$url = 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=rednoah%40filebot%2enet&lc=AT&item_name='.urlencode($name).'&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted';
header('HTTP/1.1 302 Found');
header('Location: '.$url);
?>