if (empty($new_config['credit_risk']['checkforgenre'])) { $config['credit_risk']['checkforgenre'] = array(); } else { $config['credit_risk']['checkforgenre'] = $new_config['credit_risk']['checkforgenre']; } foreach ($config['orders_status_redirect']['timeout'] as $key => $value) { if ($value != '') { $config['orders_status_redirect']['timeout'][$key] = (int) $value; } } if (!empty($_POST['remove_pg'])) { foreach ($_POST['remove_pg'] as $topkey) { unset($config[$topkey]); } } $payone->setConfig($config); $_SESSION[$messages_ns][] = CONFIGURATION_SAVED; } if ($_POST['cmd'] == 'add_paygenre') { foreach ($payone->getPaymentTypes() as $genre => $types) { if (isset($_POST[$genre])) { $payone->addPaymentGenreConfig($genre); } } $_SESSION[$messages_ns][] = PAYMENTGENRE_ADDED; } if ($_POST['cmd'] == 'dump_config') { $t_filename = $payone->dumpConfig(); if ($t_filename === false) { $_SESSION[$messages_ns][] = ERROR_DUMPING_CONFIGURATION; } else {