ここの情報は古いです。ご理解頂いた上でお取り扱いください。
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 | |
---|
7 | class pc_page_c_event_delete_confirm extends OpenPNE_Action |
---|
8 | { |
---|
9 | function execute($requests) |
---|
10 | { |
---|
11 | $u = $GLOBALS['AUTH']->uid(); |
---|
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 | $c_commu = db_commu_c_commu4c_commu_id2($c_commu_id); |
---|
29 | if ($c_commu['is_topic'] == 'admin_only' && |
---|
30 | !db_commu_is_c_commu_admin($c_commu_id, $u)) { |
---|
31 | handle_kengen_error(); |
---|
32 | } |
---|
33 | if ($c_commu['is_topic'] == 'member' && |
---|
34 | !db_commu_is_c_commu_member($c_commu_id, $u)) { |
---|
35 | handle_kengen_error(); |
---|
36 | } |
---|
37 | //--- |
---|
38 | |
---|
39 | $this->set('inc_navi', fetch_inc_navi('c', $c_commu_id)); |
---|
40 | |
---|
41 | $this->set('c_commu_id', $c_commu_id); |
---|
42 | $this->set('c_commu_topic_id', $c_commu_topic_id); |
---|
43 | return 'success'; |
---|
44 | } |
---|
45 | } |
---|
46 | |
---|
47 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.
Download in other formats: