Oppaitime'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 817B

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