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

source: OpenPNE/trunk/webapp/modules/admin/do/update_profile_sort_order.php @ 2

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

OpenPNE 2.3.0

File size: 898 bytes
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 admin_do_update_profile_sort_order extends OpenPNE_Action
8{
9    function execute($requests)
10    {
11        if (is_null(db_admin_c_admin_config4name('SORT_ORDER_NICK'))) {
12            db_admin_insert_c_admin_config('SORT_ORDER_NICK', $requests['sort_order_nick']);
13        } else {
14            db_admin_update_c_admin_config('SORT_ORDER_NICK', $requests['sort_order_nick']);
15        }
16
17        if (is_null(db_admin_c_admin_config4name('SORT_ORDER_BIRTH'))) {
18            db_admin_insert_c_admin_config('SORT_ORDER_BIRTH', $requests['sort_order_birth']);
19        } else {
20            db_admin_update_c_admin_config('SORT_ORDER_BIRTH', $requests['sort_order_birth']);
21        }
22
23        admin_client_redirect('edit_c_profile', '並び順を変更しました');
24    }
25}
26
27?>
Note: See TracBrowser for help on using the repository browser.