Vergleich inc/datahandlers/pm.php - 1.2.0 - 1.2.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: pm.php 2165 2006-08-30 06:24:52Z chris $

 * $Id: pm.php 2989 2007-04-04 13:56:57Z chris $

 */

 */

 

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


/*
EXAMPLE USE:


/*
EXAMPLE USE:

Zeile 394Zeile 400

if($pm['saveasdraft'])
{


if($pm['saveasdraft'])
{

				$updateddraft['uid'] = $pm['sender']['uid'];

				$this->pm_insert_data['uid'] = $pm['sender']['uid'];

			}
else
{

			}
else
{

				$updateddraft['uid'] = $pm['recipient']['uid'];

				$this->pm_insert_data['uid'] = $pm['recipient']['uid'];

			}
$plugins->run_hooks_by_ref("datahandler_pm_insert_updatedraft", $this);
$db->update_query(TABLE_PREFIX."privatemessages", $this->pm_insert_data, "pmid='{$pm['pmid']}' AND uid='{$pm['sender']['uid']}'");

			}
$plugins->run_hooks_by_ref("datahandler_pm_insert_updatedraft", $this);
$db->update_query(TABLE_PREFIX."privatemessages", $this->pm_insert_data, "pmid='{$pm['pmid']}' AND uid='{$pm['sender']['uid']}'");

Zeile 423Zeile 429

if($pm['saveasdraft'])
{


if($pm['saveasdraft'])
{

				$newpm['uid'] = $pm['sender']['uid'];

				$this->pm_insert_data['uid'] = $pm['sender']['uid'];

			}
$plugins->run_hooks_by_ref("datahandler_pm_insert", $this);
$db->insert_query(TABLE_PREFIX."privatemessages", $this->pm_insert_data);

			}
$plugins->run_hooks_by_ref("datahandler_pm_insert", $this);
$db->insert_query(TABLE_PREFIX."privatemessages", $this->pm_insert_data);