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.

67 lines
1.4 KiB

  1. <?php
  2. /**
  3. * @package uForum
  4. * @file includes/pms/pms_delete.php
  5. * @version $Id$
  6. * @copyright 2007-2010 (c) PioDer <pioder@wp.pl>
  7. * @link http://www.pioder.pl/
  8. * @license see LICENSE.txt
  9. **/
  10. if ( !defined('IN_uF') )
  11. {
  12. die('Hacking attempt');
  13. }
  14. if (isset($_GET['user']))
  15. {
  16. switch($_GET['user'])
  17. {
  18. case 'user':
  19. {
  20. if (isset($_GET['m']))
  21. {
  22. Secure::message_u_exists(intval($_GET['m']));
  23. Secure::message_user_loged(intval($_GET['m']));
  24. Pms::DeleteMsgUser(intval($_GET['m']));
  25. $stop = TimeGeneration();
  26. message_forum($lng['pm_is_deleted'],'pms.php');
  27. }
  28. else
  29. {
  30. $stop = TimeGeneration();
  31. message_forum($lng['invalidmode'],'pms.php');
  32. }
  33. break;
  34. }
  35. case 'author':
  36. {
  37. if (isset($_GET['m']))
  38. {
  39. Secure::message_a_exists(intval($_GET['m']));
  40. Secure::message_author_loged(intval($_GET['m']));
  41. Pms::DeleteMsgAuthor(intval($_GET['m']));
  42. $stop = TimeGeneration();
  43. message_forum($lng['pm_is_deleted'],'pms.php?mode=folder&amp;submode=sentbox');
  44. }
  45. else
  46. {
  47. $stop = TimeGeneration();
  48. message_forum($lng['invalidmode'],'pms.php');
  49. }
  50. break;
  51. }
  52. default:
  53. {
  54. $stop = TimeGeneration();
  55. message_forum($lng['invalidmode'],'pms.php');
  56. break;
  57. }
  58. }
  59. }
  60. else
  61. {
  62. $stop = TimeGeneration();
  63. message_forum($lng['invalidmode'],'pms.php');
  64. }
  65. ?>