Vergleich private.php - 1.00 - 1.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

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

 * $Id$

 * $Id: private.php 893 2005-11-09 15:22:32Z Kilroy $

 */
define("KILL_GLOBALS", 1);


 */
define("KILL_GLOBALS", 1);


Zeile 130Zeile 130
	$posticons = getposticons();
$previewmessage = $mybb->input['message'];
$message = htmlspecialchars_uni($mybb->input['message']);

	$posticons = getposticons();
$previewmessage = $mybb->input['message'];
$message = htmlspecialchars_uni($mybb->input['message']);

 
	
if($mybb->input['do'] != 'forward' && $mybb->input['do'] != 'reply')
{
$mybb->input['do'] = '';
}


if($mybb->input['preview'])
{


if($mybb->input['preview'])
{

Zeile 150Zeile 155
			$optionschecked['signature'] = "checked";
}
if($options['disablesmilies'] == "yes")

			$optionschecked['signature'] = "checked";
}
if($options['disablesmilies'] == "yes")

		{

		{

			$optionschecked['disablesmilies'] = "checked";
}
if($options['savecopy'] != "no")

			$optionschecked['disablesmilies'] = "checked";
}
if($options['savecopy'] != "no")

Zeile 171Zeile 176
			$optionschecked['signature'] = "checked";
}
if($mybb->usergroup['cantrackpms'] == "yes")

			$optionschecked['signature'] = "checked";
}
if($mybb->usergroup['cantrackpms'] == "yes")

		{

		{

			$optionschecked['readreceipt'] = "checked";
}
$optionschecked['savecopy'] = "checked";

			$optionschecked['readreceipt'] = "checked";
}
$optionschecked['savecopy'] = "checked";

Zeile 192Zeile 197
				$optionschecked['signature'] = "checked";
}
if($pm['smilieoff'] == "yes")

				$optionschecked['signature'] = "checked";
}
if($pm['smilieoff'] == "yes")

			{

			{

				$optionschecked['disablesmilies'] = "checked";
}
if($pm['receipt'])

				$optionschecked['disablesmilies'] = "checked";
}
if($pm['receipt'])

Zeile 213Zeile 218
				$subject = "Fw: $subject";
}
elseif($mybb->input['do'] == "reply")

				$subject = "Fw: $subject";
}
elseif($mybb->input['do'] == "reply")

			{

			{

				$subject = "Re: $subject";
$uid = $pm['fromid'];
$query = $db->query("SELECT username FROM ".TABLE_PREFIX."users WHERE uid='".$uid."'");

				$subject = "Re: $subject";
$uid = $pm['fromid'];
$query = $db->query("SELECT username FROM ".TABLE_PREFIX."users WHERE uid='".$uid."'");

Zeile 278Zeile 283
	{
error($lang->error_pmnomessage);
}

	{
error($lang->error_pmnomessage);
}

	$query = $db->query("SELECT u.uid, u.username, u.email, u.usergroup, u.pmnotify, u.pmpopup, u.receivepms, u.ignorelist, u.lastactive, u.language, COUNT(pms.pmid) AS pms_total, g.canusepms, g.pmquota, g.cancp  FROM ".TABLE_PREFIX."users u, ".TABLE_PREFIX."usergroups g LEFT JOIN ".TABLE_PREFIX."privatemessages pms ON (pms.uid=u.uid) WHERE u.username='".addslashes($mybb->input['to'])."' AND g.gid=u.usergroup GROUP BY u.uid");

	$query = $db->query("SELECT u.uid, u.username, u.email, u.usergroup, u.pmnotify, u.pmpopup, u.receivepms, u.ignorelist, u.lastactive, u.language, COUNT(pms.pmid) AS pms_total, g.canusepms, g.pmquota, g.cancp  FROM (".TABLE_PREFIX."users u, ".TABLE_PREFIX."usergroups g) LEFT JOIN ".TABLE_PREFIX."privatemessages pms ON (pms.uid=u.uid) WHERE u.username='".addslashes($mybb->input['to'])."' AND g.gid=u.usergroup GROUP BY u.uid");

	$touser = $db->fetch_array($query);

if(!$touser['uid'] && !$mybb->input['saveasdraft'])

	$touser = $db->fetch_array($query);

if(!$touser['uid'] && !$mybb->input['saveasdraft'])

Zeile 465Zeile 470
		if($mybb->input['do'] == "reply")
{
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET status='3' WHERE pmid='".intval($mybb->input['pmid'])."' AND uid='".$mybb->user[uid]."'");

		if($mybb->input['do'] == "reply")
{
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET status='3' WHERE pmid='".intval($mybb->input['pmid'])."' AND uid='".$mybb->user[uid]."'");

		}

		}

		elseif($mybb->input['do'] == "forward")
{
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET status='4' WHERE pmid='".intval($mybb->input['pmid'])."' AND uid='".$mybb->user[uid]."'");

		elseif($mybb->input['do'] == "forward")
{
$db->query("UPDATE ".TABLE_PREFIX."privatemessages SET status='4' WHERE pmid='".intval($mybb->input['pmid'])."' AND uid='".$mybb->user[uid]."'");

Zeile 665Zeile 670
			if(substr($key, 0, 3) == "new")
{
$highestid++;

			if(substr($key, 0, 3) == "new")
{
$highestid++;

				$fid = $highestid;

				$fid = intval($highestid);

			}
else
{

			}
else
{

Zeile 689Zeile 694
				{
$val = "Trash Can";
}

				{
$val = "Trash Can";
}

				$fid = $key;

				$fid = intval($key);

			}
if($val != "")
{

			}
if($val != "")
{

Zeile 802Zeile 807
			reset($mybb->input['check']);
while(list($key, $val) = each($mybb->input['check']))
{

			reset($mybb->input['check']);
while(list($key, $val) = each($mybb->input['check']))
{

 
				$key = intval($key);

				if($deletepms[$key])
{
$db->query("DELETE FROM ".TABLE_PREFIX."privatemessages WHERE pmid='$key' AND uid='".$mybb->user['uid']."'");

				if($deletepms[$key])
{
$db->query("DELETE FROM ".TABLE_PREFIX."privatemessages WHERE pmid='$key' AND uid='".$mybb->user['uid']."'");