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

source: OpenPNE/trunk/webapp/modules/ktai/page/c_event_mail_confirm.php @ 1856

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

copyright表記修正

File size: 1.5 KB
Line 
1<?php
2/**
3 * @copyright 2005-2007 OpenPNE Project
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
5 */
6
7class ktai_page_c_event_mail_confirm extends OpenPNE_Action
8{
9    function execute($requests)
10    {
11        $u  = $GLOBALS['KTAI_C_MEMBER_ID'];
12        $tail = $GLOBALS['KTAI_URL_TAIL'];
13
14        // --- リクエスト変数
15        $c_commu_topic_id = $requests['target_c_commu_topic_id'];
16        $c_member_ids = $requests['c_member_id'];
17        $body = $requests['body'];
18        // ----------
19
20        if (!$c_member_ids) {
21            $p = array('target_c_commu_topic_id' => $c_commu_topic_id);
22            openpne_redirect('ktai', 'page_c_event_mail', $p);
23        }
24
25        $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id);
26        $c_commu_id = $c_topic['c_commu_id'];
27
28
29        //--- 権限チェック
30        if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) {
31            handle_kengen_error();
32        }
33        if (!db_commu_is_c_event_admin($c_commu_topic_id, $u)) {
34            handle_kengen_error();
35        }
36        //---
37
38        $this->set('c_commu', db_commu_c_commu4c_commu_id($c_commu_id));
39        $this->set('c_mail_member', db_commu_c_event_mail_confirm_list4c_member_ids($c_member_ids));
40
41        $this->set('body', $body);
42        $this->set('c_member_ids', implode(',', $c_member_ids));
43        $this->set("c_commu_id", $c_commu_id);
44        $this->set("c_commu_topic_id", $c_commu_topic_id);
45        return 'success';
46    }
47}
48
49?>
Note: See TracBrowser for help on using the repository browser.