2015-06-04 14:39:10 +00:00
|
|
|
<?php
|
2015-06-04 15:59:36 +00:00
|
|
|
$type = isset($_GET['src']) ? $_GET['src'] : '';
|
|
|
|
$name = 'FileBot';
|
2015-06-04 14:39:10 +00:00
|
|
|
|
|
|
|
// 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')
|
2015-06-04 14:39:10 +00:00
|
|
|
$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).')';
|
2015-06-04 14:39:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
// 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).'¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted';
|
2015-06-04 14:39:10 +00:00
|
|
|
|
|
|
|
header('HTTP/1.1 302 Found');
|
|
|
|
header('Location: '.$url);
|
|
|
|
?>
|