Vergleich private.php - 1.02 - 1.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
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 245Zeile 250
		$query = $db->query("SELECT u.*, g.canusepms FROM ".TABLE_PREFIX."users u LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup) WHERE u.uid IN ($sql)");
$buddies = "";
while($buddy = $db->fetch_array($query))

		$query = $db->query("SELECT u.*, g.canusepms FROM ".TABLE_PREFIX."users u LEFT JOIN ".TABLE_PREFIX."usergroups g ON (g.gid=u.usergroup) WHERE u.uid IN ($sql)");
$buddies = "";
while($buddy = $db->fetch_array($query))

		{

		{

			if($mybb->user['receivepms'] != "no" && $buddy['receivepms'] != "no" && $buddy['canusepms'] != "no")
{
$buddies .= "<option value=\"$buddy[username]\">$buddy[username]</option>\n";
}

			if($mybb->user['receivepms'] != "no" && $buddy['receivepms'] != "no" && $buddy['canusepms'] != "no")
{
$buddies .= "<option value=\"$buddy[username]\">$buddy[username]</option>\n";
}

		}

		}

		if($buddies)
{
eval("\$buddyselect = \"".$templates->get("private_send_buddyselect")."\";");

		if($buddies)
{
eval("\$buddyselect = \"".$templates->get("private_send_buddyselect")."\";");

		}
}

		}
}

	$pmid = $mybb->input['pmid'];
$do = $mybb->input['do'];
eval("\$send = \"".$templates->get("private_send")."\";");

	$pmid = $mybb->input['pmid'];
$do = $mybb->input['do'];
eval("\$send = \"".$templates->get("private_send")."\";");

Zeile 297Zeile 302
	$lang->error_recipientpmturnedoff = sprintf($lang->error_recipientpmturnedoff, $mybb->input['to']);
$lang->error_recipientignoring = sprintf($lang->error_recipientignoring, $mybb->input['to']);
if($nosend)

	$lang->error_recipientpmturnedoff = sprintf($lang->error_recipientpmturnedoff, $mybb->input['to']);
$lang->error_recipientignoring = sprintf($lang->error_recipientignoring, $mybb->input['to']);
if($nosend)

	{

	{

		error($lang->error_recipientignoring);
}
if($touser['receivepms'] == "no" || $touser['canusepms'] == "no" && !$mybb->input['saveasdraft'])

		error($lang->error_recipientignoring);
}
if($touser['receivepms'] == "no" || $touser['canusepms'] == "no" && !$mybb->input['saveasdraft'])

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']."'");