$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;
// 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
}
return FALSE;
} // END - if
- // Remove the 'ok' part
- unsetPostRequestElement('ok');
-
// Add the whole request to database
SQL_QUERY(getInsertSqlFromArray(postRequestArray(), 'network_data'), __FUNCTION__, __LINE__);
return FALSE;
} // END - if
- // Remove the 'ok' part
- unsetPostRequestElement('ok');
-
// Add id
setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
return FALSE;
} // END - if
- // Remove the 'ok' part
- unsetPostRequestElement('ok');
-
// Add id
setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
return FALSE;
} // END - if
- // Remove the 'ok' part
- unsetPostRequestElement('ok');
-
// Add id
setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
return FALSE;
} // END - if
- // Remove the 'ok' part
- unsetPostRequestElement('ok');
-
// Add id
setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
// Adds/update network API configuration
function doAdminNetworkProcessNetworkApiConfig () {
- // Remove the 'ok' part
- unsetPostRequestElement('ok');
-
// Add id
setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
// 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')));
// 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.
$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