- <?php
-
- if (isset($_GET['user']))
- {
- switch($_GET['user'])
- {
- case 'user':
- {
- if (isset($_GET['m']))
- {
- Secure::message_u_exists(intval($_GET['m']));
- Secure::message_user_loged(intval($_GET['m']));
- Pms::DeleteMsgUser(intval($_GET['m']));
- $stop = TimeGeneration();
- message_forum($lng['pm_is_deleted'],'pms.php');
- }
- else
- {
- $stop = TimeGeneration();
- message_forum($lng['invalidmode'],'pms.php');
- }
- break;
- }
- case 'author':
- {
- if (isset($_GET['m']))
- {
- Secure::message_a_exists(intval($_GET['m']));
- Secure::message_author_loged(intval($_GET['m']));
- Pms::DeleteMsgAuthor(intval($_GET['m']));
- $stop = TimeGeneration();
- message_forum($lng['pm_is_deleted'],'pms.php?mode=folder&submode=sentbox');
- }
- else
- {
- $stop = TimeGeneration();
- message_forum($lng['invalidmode'],'pms.php');
- }
- break;
- }
- default:
- {
- $stop = TimeGeneration();
- message_forum($lng['invalidmode'],'pms.php');
- break;
- }
- }
- }
- else
- {
- $stop = TimeGeneration();
- message_forum($lng['invalidmode'],'pms.php');
- }
-
- ?>
|