]> git.mxchange.org Git - mailer.git/commitdiff
Again usual change ... (you know what)
authorRoland Häder <roland@mxchange.org>
Fri, 28 Dec 2012 23:39:18 +0000 (23:39 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 28 Dec 2012 23:39:18 +0000 (23:39 +0000)
inc/libs/network_functions.php
inc/mysql-manager.php
templates/de/html/admin/admin_add_config_network_type_form.tpl
templates/de/html/admin/admin_add_network.tpl
templates/de/html/admin/admin_add_network_array_translation.tpl
templates/de/html/admin/admin_add_network_request_param.tpl
templates/de/html/admin/admin_add_network_type.tpl
templates/de/html/admin/admin_add_network_vcheck_param.tpl
templates/de/html/admin/admin_edit_config_network_type_form.tpl

index 735b1a53355d6e3e1b5bae80c70c1f00d42c2a1a..1787a7518f802fb4b097a814759ff1827aba0bb0 100644 (file)
@@ -62,11 +62,14 @@ function detectNetworkProcessForm () {
        $GLOBALS['network_form_name'] = 'invalid';
 
        // Now search all valid
-       foreach (array('ok', 'edit', 'delete', 'do_edit', 'do_delete') as $form) {
+       foreach (array('save_config', 'add', 'edit', 'delete', 'do_edit', 'do_delete') as $formName) {
                // Is it detected
-               if (isFormSent($form)) {
+               if (isFormSent($formName)) {
                        // Use this form name
-                       $GLOBALS['network_form_name'] = $form;
+                       $GLOBALS['network_form_name'] = $formName;
+
+                       // Remove it generically here
+                       unsetPostRequestElement($formName);
 
                        // Abort loop
                        break;
@@ -76,7 +79,7 @@ function detectNetworkProcessForm () {
        // Has the form being detected?
        if ($GLOBALS['network_form_name'] == 'invalid') {
                // Not supported
-               reportBug(__FUNCTION__, __LINE__, 'POST form could not be detected.');
+               reportBug(__FUNCTION__, __LINE__, 'POST form could not be detected, postData=<pre>' . print_r(postRequestArray(), TRUE));
        } // END - if
 }
 
@@ -1138,9 +1141,6 @@ function doAdminNetworkProcessAddNetwork () {
                return FALSE;
        } // END - if
 
-       // Remove the 'ok' part
-       unsetPostRequestElement('ok');
-
        // Add the whole request to database
        SQL_QUERY(getInsertSqlFromArray(postRequestArray(), 'network_data'), __FUNCTION__, __LINE__);
 
@@ -1403,9 +1403,6 @@ function doAdminNetworkProcessAddNetworkType () {
                return FALSE;
        } // END - if
 
-       // Remove the 'ok' part
-       unsetPostRequestElement('ok');
-
        // Add id
        setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
 
@@ -1679,9 +1676,6 @@ function doAdminNetworkProcessAddRequestParam () {
                return FALSE;
        } // END - if
 
-       // Remove the 'ok' part
-       unsetPostRequestElement('ok');
-
        // Add id
        setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
 
@@ -1715,9 +1709,6 @@ function doAdminNetworkProcessAddVcheckParam () {
                return FALSE;
        } // END - if
 
-       // Remove the 'ok' part
-       unsetPostRequestElement('ok');
-
        // Add id
        setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
 
@@ -1751,9 +1742,6 @@ function doAdminNetworkProcessAddNetworkArrayTranslation () {
                return FALSE;
        } // END - if
 
-       // Remove the 'ok' part
-       unsetPostRequestElement('ok');
-
        // Add id
        setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
 
@@ -1846,9 +1834,6 @@ function doAdminNetworkProcessHandleArrayTranslations () {
 
 // Adds/update network API configuration
 function doAdminNetworkProcessNetworkApiConfig () {
-       // Remove the 'ok' part
-       unsetPostRequestElement('ok');
-
        // Add id
        setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
 
@@ -1882,9 +1867,6 @@ function doAdminNetworkProcessNetworkApiConfig () {
 
 // Only adds network type configuration if not yet present
 function doAdminNetworkProcessAddHandlerTypesConfig ($displayMessage = TRUE) {
-       // Remove the 'ok' part
-       unsetPostRequestElement('ok');
-
        // Add both ids
        setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
        setPostRequestElement('network_type_id', bigintval(getRequestElement('network_type_id')));
@@ -1977,9 +1959,6 @@ function doAdminNetworkProcessAddHandlerTypesConfig ($displayMessage = TRUE) {
 
 // Only changes network type configuration if not yet present
 function doAdminNetworkProcessEditHandlerTypesConfig ($displayMessage = TRUE) {
-       // Remove the 'ok' part
-       unsetPostRequestElement('ok');
-
        /*
         * Some parameters are optional, at least one must be given so check a bunch
         * of parameters.
index cc61386194d80fad78eda6723cf3fe92deb1df27..1c60912a0159cf9ba600c5006d9b3e237db9a73d 100644 (file)
@@ -2054,7 +2054,7 @@ function doGenericAddEntries ($tableName, $columns = array(), $filterFunctions =
                $search = key(search_array($columns, 'column', $columnName));
 
                // Try to handle call-back functions and/or extra values on the list
-               //* DEBUG: */ outputHtml($key . '/' . $columnName . '=<pre>'.print_r($columns,true).'</pre>search_array()=<pre>'.print_r(search_array($columns, 'column', $columnName), true).'</pre>');
+               //* DEBUG: */ outputHtml($key . '/' . $columnName . '=<pre>'.print_r($columns,true).'</pre>search_array()=<pre>'.print_r(search_array($columns, 'column', $columnName), TRUE).'</pre>');
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sqlValues[' . $key . '(' . gettype($key) . ')][' . gettype($sqlValues[$key]) . ']=' . $sqlValues[$key] . ' - BEFORE!');
                if (is_string($key)) {
                        // Key is a string
index 5d424426ff3f6701c9f99ba276d7fb1d4955a5a7..ec02f62bbfc962ceba1cbe9168c4e62b167c3ba9 100644 (file)
@@ -41,7 +41,7 @@
        </div>
 
        <div class="table_footer">
-               <input type="submit" class="form_submit" name="ok" value="{--ADMIN_ADD_CONFIG_NETWORK_HANDLER_TYPE_FORM_SUBMIT--}" />
+               <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_CONFIG_NETWORK_HANDLER_TYPE_FORM_SUBMIT--}" />
        </div>
 </div>
 {%form_close%}
index 761401fbf6578e963f5d694fe43b990abb8653b0..c2e1c580c432626a328abdd27d789ad4a19d612e 100644 (file)
@@ -65,7 +65,7 @@
        <tr>
                <td class="table_footer" colspan="2" align="center">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" class="form_submit" name="ok" value="{--ADMIN_ADD_NETWORK_SUBMIT--}" />
+                       <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_NETWORK_SUBMIT--}" />
                </td>
        </tr>
 </table>
index 67bd737b54d1832e46fd53f4ef3ffff912b24500..e4b097abc7efb08301374a1ba6e7a8bac6410d02 100644 (file)
@@ -28,7 +28,7 @@
        <tr>
                <td class="table_footer" colspan="2" align="center">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" class="form_submit" name="ok" value="{--ADMIN_ADD_NETWORK_ARRAY_TRANSLATION_SUBMIT--}" />
+                       <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_NETWORK_ARRAY_TRANSLATION_SUBMIT--}" />
                </td>
        </tr>
 </table>
index 0217d37cf986b47b0982498cd17938767eb885cb..c8ae95e316f2420ce883503d9da56d0115331714 100644 (file)
@@ -40,7 +40,7 @@
        <tr>
                <td class="table_footer" colspan="2" align="center">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" class="form_submit" name="ok" value="{--ADMIN_ADD_NETWORK_REQUEST_PARAMETER_SUBMIT--}" />
+                       <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_NETWORK_REQUEST_PARAMETER_SUBMIT--}" />
                </td>
        </tr>
 </table>
index 57af05e89ebdd244f1463d423d68730b357d8e2c..1afc270eeaea13d4ba9e0bea5a5e6ade82b03d74 100644 (file)
@@ -52,7 +52,7 @@
        <tr>
                <td class="table_footer" colspan="2" align="center">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" class="form_submit" name="ok" value="{--ADMIN_ADD_NETWORK_HANDLER_TYPE_SUBMIT--}" />
+                       <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_NETWORK_HANDLER_TYPE_SUBMIT--}" />
                </td>
        </tr>
 </table>
index 09a6da5a8224de3dcc7c5cbc8488e28cb424f5c4..2a3750c7b6eb0e0326adcef47fb1a50880f1bfca 100644 (file)
@@ -32,7 +32,7 @@
        <tr>
                <td class="table_footer" colspan="2" align="center">
                        <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" class="form_submit" name="ok" value="{--ADMIN_ADD_NETWORK_VCHECK_PARAMETER_SUBMIT--}" />
+                       <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_NETWORK_VCHECK_PARAMETER_SUBMIT--}" />
                </td>
        </tr>
 </table>
index 50dc745be7923058ad7500ec38123a50d032e0de..89b26309894adc8d0710350d7d16644146ceea20 100644 (file)
@@ -42,7 +42,7 @@
 
        <div class="table_footer">
                <input type="hidden" name="network_data_id" value="$content[network_data_id]" />
-               <input type="submit" class="form_submit" name="ok" value="{--ADMIN_EDIT_CONFIG_NETWORK_HANDLER_TYPE_FORM_SUBMIT--}" />
+               <input type="submit" class="form_submit" name="edit" value="{--ADMIN_EDIT_CONFIG_NETWORK_HANDLER_TYPE_FORM_SUBMIT--}" />
        </div>
 </div>
 {%form_close%}