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

<?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&amp;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');
}
?>