1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
|
function insertwbb23(){
global $db,$n;
$db->unbuffered_query("INSERT INTO bb".$n."_privatemessage (senderid,recipientlist,recipientcount,subject,message,sendtime,allowsmilies,allowhtml,allowbbcode,allowimages,showsignature,iconid,inoutbox,tracking,attachments,pmhash) VALUES ('".$this->senderid."','".addslashes($recipientlistSerialized)."','".$recipientcount."','".$this->subject."','".addslashes($this->message)."','".time()."','3','0','1','0','0','1','0','0', '0', '".addslashes($pmhash)."')", 1);
$pmid = $db->insert_id();
$db->unbuffered_query("INSERT INTO bb".$n."_privatemessagereceipts (privatemessageid, recipientid,recipient,blindcopy) VALUES ('$pmid','".$this->empfangid."','".addslashes($this->empfangid)."','0')",1);
$db->unbuffered_query("UPDATE bb".$n."_users SET pmtotalcount=pmtotalcount+1,pminboxcount=pminboxcount+1,pmnewcount=pmnewcount+1,pmunreadcount=pmunreadcount+1 WHERE userid='".$this->empfangid."'", 1);
if($this->popup==1) $db->unbuffered_query("UPDATE bb".$n."_users SET pmpopup=2 WHERE userid='".$this->empfangid."'",1);
return;
} |