]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/network_functions.php
ext was missing, fixed error message
[mailer.git] / inc / libs / network_functions.php
index af436aff7b8bb6d95ac3315d821068f2eaa483f9..998dbd42ed75b23ec2d62049130cf9de7f4e9146 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 11/04/2009 *
- * ===============                              Last change: 11/04/2009 *
+ * Mailer v0.2.1-FINAL                                Start: 11/04/2009 *
+ * ===================                          Last change: 11/04/2009 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : network_functions.php                            *
@@ -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);