<?php
|
|
/**
|
|
* @package uForum
|
|
* @file includes/pms/pms_delete.php
|
|
* @version $Id$
|
|
* @copyright 2007-2010 (c) PioDer <[email protected]>
|
|
* @link http://www.pioder.pl/
|
|
* @license see LICENSE.txt
|
|
**/
|
|
if ( !defined('IN_uF') )
|
|
{
|
|
die('Hacking attempt');
|
|
}
|
|
|
|
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');
|
|
}
|
|
|
|
?>
|