Zeile 130 | Zeile 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 150 | Zeile 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 171 | Zeile 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 192 | Zeile 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 213 | Zeile 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 278 | Zeile 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 465 | Zeile 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 665 | Zeile 670 |
---|
if(substr($key, 0, 3) == "new") { $highestid++;
|
if(substr($key, 0, 3) == "new") { $highestid++;
|
$fid = $highestid;
| $fid = intval($highestid);
|
} else {
| } else {
|
Zeile 689 | Zeile 694 |
---|
{ $val = "Trash Can"; }
|
{ $val = "Trash Can"; }
|
$fid = $key;
| $fid = intval($key);
|
} if($val != "") {
| } if($val != "") {
|
Zeile 802 | Zeile 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']."'");
|