filebot/website/donate.php

26 lines
802 B
PHP
Raw Normal View History

<?php
2015-06-04 15:59:36 +00:00
$type = isset($_GET['src']) ? $_GET['src'] : '';
$name = 'FileBot';
// packages: msi, app, deb, jar, portable
2015-06-04 15:59:36 +00:00
if ($type == 'web')
$name = 'FileBot Media Renamer';
else 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);
?>