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

source: OpenPNE/branches/work/yamaji/OpenPNE-2.10.1/webapp/modules/admin/page/delete_topic.php @ 4989

Last change on this file since 4989 was 4989, checked in by yamaji, 12 years ago
File size: 1.2 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
7// 管理画面トップページ 認証済み
8
9class admin_page_delete_topic extends OpenPNE_Action
10{
11    function execute($requests)
12    {
13        $v = array();
14       
15        $target_c_commu_topic_id = $requests['target_c_commu_topic_id'];
16       
17        $v = array();
18        $topic = db_commu_c_topic4c_commu_topic_id($target_c_commu_topic_id);
19       
20        if (!$topic) {
21            admin_client_redirect('topic_list', '指定されたトピック・イベントは存在しません');
22        }
23       
24        $member = db_member_c_member4c_member_id($topic['c_member_id']);
25       
26        $topic['count_comments'] = _db_count_c_commu_topic_comments4c_commu_topic_id($topic['c_commu_topic_id']);
27        $commu = db_commu_c_commu4c_commu_id($topic['c_commu_id']);
28        $topic['commu_name'] = $commu['name'];
29        $topic['c_member'] = $member;
30        $topic['original_filename'] = db_file_original_filename4filename($topic['filename']);
31        $this->set('topic', $topic);
32       
33        $v['SNS_NAME'] = SNS_NAME;
34        $v['OPENPNE_VERSION'] = OPENPNE_VERSION;
35        $this->set($v);
36        return 'success';
37    }
38}
39
40?>
Note: See TracBrowser for help on using the repository browser.