]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/network_functions.php
Huge HTML/CSS rewrite (see forum)
[mailer.git] / inc / libs / network_functions.php
index af436aff7b8bb6d95ac3315d821068f2eaa483f9..818af211e33f6d9c84bf20ce0738c317956a659e 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 // Processes an admin form
 function doAdminNetworkProcessForm () {
        // Form really sent?
-       if ((!isFormSent()) && (!isPostRequestElementSet('edit')) && (!isPostRequestElementSet('del'))) {
+       if ((!isFormSent()) && (!isPostRequestElementSet('edit')) && (!isPostRequestElementSet('del')) && (!isPostRequestElementSet('change')) && (!isPostRequestElementSet('remove'))) {
                // Abort here
                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_FORM_NOT_SENT'));
                return;
@@ -173,7 +173,12 @@ function doAdminNetworkProcessHandlenetworkForm () {
                                        $networkData['sw'] = $SW;
 
                                        // Make selection box for network_request_type
-                                       $networkData['network_request_type'] = addSelectionBox('network_request_type', $networkData['network_request_type'], '', 0, 'admin_select');
+                                       $networkData['network_request_type'] = generateOptionList(
+                                               '/ARRAY/',
+                                               array('GET','POST'),
+                                               array(getMessage('ADMIN_NETWORK_REQUEST_TYPE_GET'), getMessage('ADMIN_NETWORK_REQUEST_TYPE_POST')),
+                                               $networkData['network_request_type']
+                                       );
 
                                        // Add row template and switch color
                                        $OUT .= loadTemplate('admin_edit_networks_row', true, $networkData);