@@ -470,6 +470,12 @@ |
||
470 | 470 | {$StartRec}, 25;"); |
471 | 471 | } |
472 | 472 | |
473 | + /** |
|
474 | + * @param integer $message_type |
|
475 | + * @param string $from |
|
476 | + * @param string $subject |
|
477 | + * @param string $text |
|
478 | + */ |
|
473 | 479 | public static function db_message_insert_all($message_type, $from, $subject, $text) { |
474 | 480 | return doquery($QryInsertMessage = 'INSERT INTO {{messages}} (`message_owner`, `message_sender`, `message_time`, `message_type`, `message_from`, `message_subject`, `message_text`) ' . |
475 | 481 | "SELECT `id`, 0, unix_timestamp(now()), {$message_type}, '{$from}', '{$subject}', '{$text}' FROM {{users}}"); |