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

source: OpenPNE/trunk/webapp/modules/admin/do/insert_c_rank.php @ 1856

Last change on this file since 1856 was 1856, checked in by takanashi, 14 years ago

copyright表記修正

File size: 784 bytes
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// ランク追加
8class admin_do_insert_c_rank extends OpenPNE_Action
9{
10    function execute($requests)
11    {
12        $c_rank_id = db_admin_insert_c_rank($requests['name'], '', $requests['point']);
13        if ($_FILES['image_upfile']['name']) {
14            $ext = t_check_image_format($_FILES['image_upfile']);
15            $image_filename = "r_{$c_rank_id}_".time().".{$ext}";
16            admin_insert_c_image($_FILES['image_upfile'], $image_filename);
17
18            db_admin_update_c_rank($c_rank_id, $requests['name'], $image_filename, $requests['point']);
19        }
20
21        admin_client_redirect('list_c_rank', 'ランクを追加しました');
22    }
23}
24
25?>
Note: See TracBrowser for help on using the repository browser.