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

source: OpenPNE/branches/work/asano/pne_album_2_11_6/webapp/modules/pc/page/h_album_image_add.php @ 6524

Last change on this file since 6524 was 6524, checked in by cybaron, 15 years ago

work/asano/pne_albumの最新リビジョン(r6523)までをマージ

File size: 1.3 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 pc_page_h_album_image_add extends OpenPNE_Action
8{
9    function execute($requests)
10    {
11        $u = $GLOBALS['AUTH']->uid();
12
13        // --- リクエスト変数
14        $form_val['image_description1'] = $requests['image_description1'];
15        $form_val['image_description2'] = $requests['image_description2'];
16        $form_val['image_description3'] = $requests['image_description3'];
17        $form_val['image_description4'] = $requests['image_description4'];
18        $form_val['image_description5'] = $requests['image_description5'];
19        $target_c_album_id = $requests['target_c_album_id'];
20       
21        //--- 権限チェック
22        $album = db_album_get_c_album4c_album_id($target_c_album_id);
23        if($album['c_member_id'] != $u){
24            handle_kengen_error();
25        }
26
27        $this->set('inc_navi', fetch_inc_navi("h"));
28
29        $c_album = db_album_get_c_album4c_album_id($target_c_album_id);
30
31        $this->set('album_subject',$c_album['subject']);
32        $this->set('target_c_album_id',$target_c_album_id);
33        $this->set("form_val", $form_val);
34       
35        //画像データ一時ファイル削除
36        $sessid = session_id();
37        t_image_clear_tmp($sessid);
38
39        return 'success';
40    }
41}
42
43?>
Note: See TracBrowser for help on using the repository browser.