1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

PM next update - admin logging, more reformatting

This commit is contained in:
e107steved
2009-12-11 22:33:15 +00:00
parent 38c8bdf207
commit 5a432e9958
4 changed files with 502 additions and 116 deletions

View File

@@ -9,8 +9,8 @@
*
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm_class.php,v $
* $Revision: 1.9 $
* $Date: 2009-12-10 20:40:38 $
* $Revision: 1.10 $
* $Date: 2009-12-11 22:33:15 $
* $Author: e107steved $
*/
@@ -142,6 +142,16 @@ class private_message
return $ret;
}
/**
* Delete a PM from a user's inbox/outbox.
* PM is only actually deleted from DB once both sender and recipient have marked it as deleted
* When physically deleted, any attachments are deleted as well
*
* @param integer $pmid - ID of the PM
* @return boolean|string - FALSE if PM not found, or other DB error. String if successful
*/
function del($pmid)
{
global $sql;
@@ -193,8 +203,11 @@ class private_message
}
return $ret;
}
return FALSE;
}
function pm_send_notify($uid, $pminfo, $pmid, $attach_count = 0)
{
require_once(e_HANDLER.'mail.php');