$thirdparty[] = $key; } } xtc_db_query("DELETE FROM " . TABLE_CONFIGURATION . " WHERE configuration_key = 'MODULE_PAYMENT_PAYPAL_PLUS_THIRDPARTY_PAYMENT'"); xtc_db_query("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_key, configuration_value, last_modified) VALUES ('MODULE_PAYMENT_PAYPAL_PLUS_THIRDPARTY_PAYMENT', '" . xtc_db_input(implode(';', $thirdparty)) . "', NOW())"); } if (isset($_POST['config']['description'])) { $sql_data_array = array(); foreach ($_POST['config']['description'] as $key => $value) { if ($value != '') { $sql_data_array[] = array('config_key' => $key, 'config_value' => $value); } else { $paypal->delete_config($key); } } $paypal->save_config($sql_data_array); } if (isset($_POST['config']['profile'])) { $sql_data_array = array(); foreach ($_POST['config']['profile'] as $key => $value) { $sql_data_array[] = array('config_key' => $key, 'config_value' => $value); } $paypal->save_config($sql_data_array); } } if (isset($_POST['configuration']) && count($_POST['configuration']) > 0) { foreach ($_POST['configuration'] as $key => $value) { xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . xtc_db_input($value) . "', last_modified = NOW() WHERE configuration_key='" . $key . "'"); } } xtc_redirect(xtc_href_link(basename($PHP_SELF)));