ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE/branches/prj/pne-merge/2217-message_mail/bin/tool_send_message_in_queue.php @ 6539

Last change on this file since 6539 was 6539, checked in by kiwa, 12 years ago

#2217 ゆりさんの日記にあるとおりに変更してみた

File size: 1.0 KB
Line 
1<?php
2/**
3 * @copyright 2005-2008 OpenPNE Project
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
5 */
6
7require_once './config.inc.php';
8require_once OPENPNE_WEBAPP_DIR . '/init.inc';
9require_once OPENPNE_MODULES_DIR . '/admin/lib/db_admin.php';
10
11if (OPENPNE_UNDER_MAINTENANCE) {
12    exit;
13}
14
15$sql = "SELECT * FROM c_message_queue order by c_message_queue_id";
16
17$c_message_queue_list = db_get_all_limit($sql, 0, SEND_MESSAGE_QUEUE_NUM);
18
19foreach ($c_message_queue_list as $c_message_queue) {
20    db_message_insert_c_message($c_message_queue['c_member_id_from'], $c_message_queue['c_member_id_to'], $c_message_queue['subject'], $c_message_queue['body']);
21    do_admin_send_message_mail_send($c_message_queue['c_member_id_to'], $c_message_queue['c_member_id_from']);
22    do_admin_send_message_mail_send_ktai($c_message_queue['c_member_id_to'], $c_message_queue['c_member_id_from'], $c_message_queue['subject'], $c_message_queue['body']);
23
24    db_admin_delete_c_message_queue($c_message_queue['c_message_queue_id']);
25}
26
27?>
Note: See TracBrowser for help on using the repository browser.