BioTorrents.de’s version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 670B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. declare(strict_types=1);
  3. $ENV = ENV::go();
  4. if (!$ENV->FEATURE_DONATE) {
  5. header('Location: index.php');
  6. error();
  7. }
  8. // Module mini-config
  9. include SERVER_ROOT.'/sections/donate/config.php';
  10. if (!isset($_REQUEST['action'])) {
  11. include SERVER_ROOT.'/sections/donate/donate.php';
  12. } else {
  13. switch ($_REQUEST['action']) {
  14. case 'ipn': // PayPal hits this page when a donation is received
  15. include SERVER_ROOT.'/sections/donate/ipn.php';
  16. break;
  17. case 'complete':
  18. include SERVER_ROOT.'/sections/donate/complete.php';
  19. break;
  20. case 'cancel':
  21. include SERVER_ROOT.'/sections/donate/cancel.php';
  22. break;
  23. }
  24. }