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

source: OpenPNE/trunk/webapp_biz/modules/biz/do/h_biz_group_add.php @ 284

Last change on this file since 284 was 284, checked in by ogawa, 14 years ago

CS

File size: 1.3 KB
Line 
1<?php
2/**
3 * @copyright 2005-2006 OpenPNE Project
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
5 */
6
7class biz_do_h_biz_group_add extends OpenPNE_Action
8{
9    function execute($requests)
10    {
11        $u = $GLOBALS['AUTH']->uid();
12        $sessid = session_id();
13
14        $member_list = serialize($requests['member_list']);
15
16        if (!$requests['name']) {
17            client_redirect_absolute('?m=biz&a=page_h_biz_group_add&m=biz&msg='.urlencode('グループ名を登録してください。').'&name='.$requests['name'].'&info='.$requests['info'].'&memberlist='.$member_list);
18            exit();
19        }
20
21        $filename = '';
22        if ($_FILES['image_filename']['name']) {
23            $filename = biz_saveImage($_FILES['image_filename'], "g_".$sessid);
24            if (!$filename) {
25                $filename = $requests['image_filename'];
26                client_redirect_absolute('?m=biz&a=page_h_biz_group_add&msg='.urlencode('画像は300KB以内のGIF・JPEG・PNGにしてください。').'&m=biz&id='.$id);
27                exit();
28            }
29        }
30        t_image_clear_tmp(session_id());
31
32        biz_insertGroup($requests['name'], $u, $requests['info'], $filename, $requests['member_list']);
33
34        client_redirect_absolute("?m=biz&a=page_g_home&target_c_commu_id=".biz_getGroupMax());
35    }
36}
37
38?>
Note: See TracBrowser for help on using the repository browser.