Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * @copyright 2005-2008 OpenPNE Project |
---|
4 | * @license http://www.php.net/license/3_01.txt PHP License 3.01 |
---|
5 | */ |
---|
6 | |
---|
7 | class pc_do_h_member_config_update_display_home extends OpenPNE_Action |
---|
8 | { |
---|
9 | function handleError($errors) |
---|
10 | { |
---|
11 | $_REQUEST['msg'] = array_shift($errors); |
---|
12 | openpne_forward('pc', 'page', 'h_config', $errors); |
---|
13 | exit; |
---|
14 | } |
---|
15 | |
---|
16 | function execute($requests) |
---|
17 | { |
---|
18 | $u = $GLOBALS['AUTH']->uid(); |
---|
19 | |
---|
20 | $default_config = util_get_c_member_config_default(); |
---|
21 | foreach ($requests as $key => $value) { |
---|
22 | if (array_key_exists($key, $default_config)) { |
---|
23 | db_member_update_c_member_config($u, $key, $value); |
---|
24 | } |
---|
25 | } |
---|
26 | |
---|
27 | openpne_redirect('pc', 'page_h_home'); |
---|
28 | } |
---|
29 | } |
---|
30 | |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.