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 779B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare(strict_types = 1);
  3. enforce_login();
  4. $P = db_array($_POST);
  5. $FriendID = (int) $_REQUEST['friendid'];
  6. Security::checkInt($FriendID);
  7. if (!empty($_REQUEST['action'])) {
  8. switch ($_REQUEST['action']) {
  9. case 'add':
  10. require_once "$ENV->SERVER_ROOT/sections/friends/add.php";
  11. break;
  12. case 'Remove friend':
  13. authorize();
  14. require_once "$ENV->SERVER_ROOT/sections/friends/remove.php";
  15. break;
  16. case 'Update':
  17. authorize();
  18. require_once "$ENV->SERVER_ROOT/sections/friends/comment.php";
  19. break;
  20. case 'Contact':
  21. header("Location: inbox.php?action=compose&to=$FriendID");
  22. break;
  23. default:
  24. error(404);
  25. }
  26. } else {
  27. require_once "$ENV->SERVER_ROOT/sections/friends/friends.php";
  28. }