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

source: OpenPNE/trunk/webapp/modules/pc/page/h_album_image_add.php @ 6677

Last change on this file since 6677 was 6677, checked in by ogawa, 12 years ago

LICENSEの年号が古くなっていたものを修正

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