| Conditions | 3 |
| Paths | 3 |
| Total Lines | 29 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | function procKrzipAdminInsertConfig() |
||
| 12 | { |
||
| 13 | $module_config = Context::getRequestVars(); |
||
| 14 | getDestroyXeVars($module_config); |
||
| 15 | unset($module_config->module); |
||
| 16 | unset($module_config->act); |
||
| 17 | unset($module_config->mid); |
||
| 18 | unset($module_config->vid); |
||
| 19 | |||
| 20 | $oKrzipController = getController('krzip'); |
||
| 21 | $output = $oKrzipController->updateConfig($module_config); |
||
| 22 | if(!$output->toBool()) |
||
| 23 | { |
||
| 24 | return $output; |
||
| 25 | } |
||
| 26 | |||
| 27 | $success_return_url = Context::get('success_return_url'); |
||
| 28 | if($success_return_url) |
||
| 29 | { |
||
| 30 | $return_url = $success_return_url; |
||
| 31 | } |
||
| 32 | else |
||
| 33 | { |
||
| 34 | $return_url = getNotEncodedUrl('', 'module', 'krzip', 'act', 'dispKrzipAdminConfig'); |
||
| 35 | } |
||
| 36 | |||
| 37 | $this->setMessage('success_registed'); |
||
| 38 | $this->setRedirectUrl($return_url); |
||
| 39 | } |
||
| 40 | } |
||
| 44 |