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

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

Last change on this file since 276 was 276, checked in by ogawa, 16 years ago

remove extra spaces

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        {
18            client_redirect_absolute('?m=biz&a=page_h_biz_group_add&m=biz&msg='.urlencode('グループ名を登録してください。').'&name='.$requests['name'].'&info='.$requests['info'].'&memberlist='.$member_list);
19            exit();
20        }
21
22        $filename = '';
23        if($_FILES['image_filename']['name'])
24        {
25            $filename = biz_saveImage($_FILES['image_filename'], "g_".$sessid);
26            if(!$filename)
27            {
28                $filename = $requests['image_filename'];
29                client_redirect_absolute('?m=biz&a=page_h_biz_group_add&msg='.urlencode('画像は300KB以内のGIF・JPEG・PNGにしてください。').'&m=biz&id='.$id);
30                exit();
31            }
32        }
33        t_image_clear_tmp(session_id());
34
35        biz_insertGroup($requests['name'], $u, $requests['info'], $filename, $requests['member_list']);
36
37        client_redirect_absolute("?m=biz&a=page_g_home&target_c_commu_id=".biz_getGroupMax());
38    }
39}
40
41?>
Note: See TracBrowser for help on using the repository browser.