X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fnetwork_functions.php;h=4953a1d097c1b2a14af07d150b7bacf226efaa0b;hp=dfa15112c76a72414f199c3333b1d351ea9062b9;hb=b8c071f12a601619c4c02b9441b3e0e012db6ced;hpb=0bc147b8bab4706803309eab2d8b05042462efe6 diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index dfa15112c7..4953a1d097 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -41,6 +41,21 @@ if (!defined('__SECURITY')) { die(); } // END - if +// Handle a (maybe) sent form here +function doNetworkHandleForm () { + // Was the form sent? + if ((isFormSent()) || (isPostRequestElementSet('edit')) || (isPostRequestElementSet('del')) || (isPostRequestElementSet('change')) || (isPostRequestElementSet('remove'))) { + // Do we have a 'do'? + if (isGetRequestElementSet('do')) { + // Process the request + doAdminNetworkProcessForm(); + } else { + // No 'do' found + loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_DO_404')); + } + } // END - if +} + // Processes an admin form function doAdminNetworkProcessForm () { // Form really sent? @@ -60,7 +75,7 @@ function doAdminNetworkProcessForm () { // Is the function valid? if (!function_exists($functionName)) { // Invalid function name - debug_report_bug('Invalid do ' . getRequestElement('do') . ', function ' . $functionName .' does not exist.'); + debug_report_bug('Invalid do ' . getRequestElement('do') . ', function ' . $functionName .' does not exist.', false); } // END - if // Call-back the method handling our request