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

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

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

copyright表記修正

File size: 1.2 KB
RevLine 
[2]1<?php
2/**
[1856]3 * @copyright 2005-2007 OpenPNE Project
[2]4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
5 */
6
7// バナー編集
8class admin_do_update_c_banner extends OpenPNE_Action
9{
10    function execute($requests)
11    {
12        $c_banner_id = $requests['c_banner_id'];
13
14        //c_image delete && insert
15        if ($_FILES['upfile']['name']) {
16            db_admin_delete_c_image4c_banner_id($c_banner_id);
17
18            $ext = t_check_image_format($_FILES['upfile']);
19            $c_banner['image_filename'] = "b_{$c_banner_id}_".time().".{$ext}";
20            admin_insert_c_image($_FILES['upfile'], $c_banner['image_filename']);
21        }
22        //c_image delete && insert
23
24        $c_banner['a_href'] = $requests['a_href'];
25        $c_banner['type'] = $requests['type'];
26        $c_banner['nickname'] = $requests['nickname'];
27        $c_banner['is_hidden_before'] = $requests['is_hidden_before'];
28        $c_banner['is_hidden_after'] = $requests['is_hidden_after'];
29
30        //c_banner update
31        db_admin_update_c_banner($c_banner_id, $c_banner);
32        //c_banner update
33
34        admin_client_redirect('edit_c_banner', 'バナーを変更しました');
35    }
36}
37
38?>
Note: See TracBrowser for help on using the repository browser.