Vergleich private.php - 1.01 - 1.04

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 278Zeile 278
	{
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 665Zeile 665
			if(substr($key, 0, 3) == "new")
{
$highestid++;

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

				$fid = $highestid;

				$fid = intval($highestid);

			}
else
{

			}
else
{

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

				{
$val = "Trash Can";
}

				$fid = $key;

				$fid = intval($key);

			}
if($val != "")
{

			}
if($val != "")
{

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