Skip to content

Instantly share code, notes, and snippets.

@septor
Created May 10, 2012 13:37
Show Gist options
  • Save septor/2653044 to your computer and use it in GitHub Desktop.
Save septor/2653044 to your computer and use it in GitHub Desktop.
sendpm e107 function
function sendpm($to, $from, $subject, $message){
global $tp;
$spm = new db();
return $spm->db_Insert("private_msg", "0, '".intval($to)."', '".intval($from)."', '".intval(time())."', '0', '".$tp->toDB($subject)."', '".$tp->toDB($message)."', '1', '0', '', '', '".intval(strlen($message))."'");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment