Rev 635 | Rev 800 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 635 | Rev 717 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | if ($actionID == 'color_update') { |
25 | if ($actionID == 'color_update') { |
26 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
26 | if (!OIDplus::authUtils()->isAdminLoggedIn()) { |
27 | throw new OIDplusException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin'))); |
27 | throw new OIDplusException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin'))); |
28 | } |
28 | } |
29 | 29 | ||
30 | _CheckParamExists($params, 'color_hue_shift'); |
30 | _CheckParamExists($params, 'hue_shift'); |
31 | _CheckParamExists($params, 'color_sat_shift'); |
31 | _CheckParamExists($params, 'sat_shift'); |
32 | _CheckParamExists($params, 'color_val_shift'); |
32 | _CheckParamExists($params, 'val_shift'); |
33 | _CheckParamExists($params, 'color_invert'); |
33 | _CheckParamExists($params, 'invcolors'); |
34 | _CheckParamExists($params, 'design'); |
34 | _CheckParamExists($params, 'theme'); |
35 | 35 | ||
36 | OIDplus::config()->setValue('color_hue_shift', $params['hue_shift']); |
36 | OIDplus::config()->setValue('color_hue_shift', $params['hue_shift']); |
37 | OIDplus::config()->setValue('color_sat_shift', $params['sat_shift']); |
37 | OIDplus::config()->setValue('color_sat_shift', $params['sat_shift']); |
38 | OIDplus::config()->setValue('color_val_shift', $params['val_shift']); |
38 | OIDplus::config()->setValue('color_val_shift', $params['val_shift']); |
39 | OIDplus::config()->setValue('color_invert', $params['invcolors']); |
39 | OIDplus::config()->setValue('color_invert', $params['invcolors']); |