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 | |
---|
7 | class ktai_page_c_event_delete_confirm extends OpenPNE_Action |
---|
8 | { |
---|
9 | function execute($requests) |
---|
10 | { |
---|
11 | $u = $GLOBALS['KTAI_C_MEMBER_ID']; |
---|
12 | |
---|
13 | // --- リクエスト変数 |
---|
14 | $c_commu_topic_id = $requests['target_c_commu_topic_id']; |
---|
15 | // ---------- |
---|
16 | |
---|
17 | $c_topic = db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id); |
---|
18 | $c_commu_id = $c_topic['c_commu_id']; |
---|
19 | |
---|
20 | //--- 権限チェック |
---|
21 | if (!db_commu_is_c_commu_view4c_commu_idAc_member_id($c_commu_id, $u)) { |
---|
22 | handle_kengen_error(); |
---|
23 | } |
---|
24 | if (!db_commu_is_c_event_admin($c_commu_topic_id, $u) && |
---|
25 | !db_commu_is_c_commu_admin($c_commu_id, $u)) { |
---|
26 | handle_kengen_error(); |
---|
27 | } |
---|
28 | //--- |
---|
29 | |
---|
30 | $this->set('c_commu_topic', db_commu_c_topic4c_commu_topic_id_2($c_commu_topic_id)); |
---|
31 | $this->set('c_commu_id', $c_commu_id); |
---|
32 | $this->set('c_commu_topic_id', $c_commu_topic_id); |
---|
33 | return 'success'; |
---|
34 | } |
---|
35 | } |
---|
36 | |
---|
37 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.