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

source: OpenPNE/branches/takanashi/prj_takanashi7/bin/tool_send_message_in_queue.php @ 1253

Last change on this file since 1253 was 1253, checked in by takanashi, 16 years ago

PNEPointアクション・ランク確認

File size: 937 bytes
Line 
1<?php
2/**
3 * @copyright 2005-2006 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
11$sql = "SELECT * FROM c_message_queue order by c_message_queue_id";
12
13$c_message_queue_list = db_get_all_limit($sql, 0, SEND_MESSAGE_QUEUE_NUM);
14
15foreach ($c_message_queue_list as $c_message_queue) {
16    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']);
17    do_admin_send_message_mail_send($c_message_queue['c_member_id_to'], $c_message_queue['c_member_id_from']);
18    do_admin_send_message_mail_send_ktai($c_message_queue['c_member_id_to'], $c_message_queue['c_member_id_from']);
19
20    db_admin_delete_c_message_queue($c_message_queue['c_message_queue_id']);
21}
22
23?>
Note: See TracBrowser for help on using the repository browser.