A lightweight forum engine written in PHP. Repository is now obsolete and read-only. http://www.pioder.pl/uforum.html
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.

55 lines
1.1 KiB

  1. <?php
  2. if (isset($_GET['user']))
  3. {
  4. switch($_GET['user'])
  5. {
  6. case 'user':
  7. {
  8. if (isset($_GET['m']))
  9. {
  10. Secure::message_u_exists(intval($_GET['m']));
  11. Secure::message_user_loged(intval($_GET['m']));
  12. Pms::DeleteMsgUser(intval($_GET['m']));
  13. $stop = TimeGeneration();
  14. message_forum($lng['pm_is_deleted'],'pms.php');
  15. }
  16. else
  17. {
  18. $stop = TimeGeneration();
  19. message_forum($lng['invalidmode'],'pms.php');
  20. }
  21. break;
  22. }
  23. case 'author':
  24. {
  25. if (isset($_GET['m']))
  26. {
  27. Secure::message_a_exists(intval($_GET['m']));
  28. Secure::message_author_loged(intval($_GET['m']));
  29. Pms::DeleteMsgAuthor(intval($_GET['m']));
  30. $stop = TimeGeneration();
  31. message_forum($lng['pm_is_deleted'],'pms.php?mode=folder&amp;submode=sentbox');
  32. }
  33. else
  34. {
  35. $stop = TimeGeneration();
  36. message_forum($lng['invalidmode'],'pms.php');
  37. }
  38. break;
  39. }
  40. default:
  41. {
  42. $stop = TimeGeneration();
  43. message_forum($lng['invalidmode'],'pms.php');
  44. break;
  45. }
  46. }
  47. }
  48. else
  49. {
  50. $stop = TimeGeneration();
  51. message_forum($lng['invalidmode'],'pms.php');
  52. }
  53. ?>