X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-query_network_apis.php;h=495cfacc94ce6f6e5b95fd26adea88cb80f1d684;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=844cb6238b5699403119c2a1ba0b0c63a26db10d;hpb=bdca58e2ac18d5f06a6b8a30a3488eb1360b67d9;p=mailer.git diff --git a/inc/modules/admin/what-query_network_apis.php b/inc/modules/admin/what-query_network_apis.php index 844cb6238b..495cfacc94 100644 --- a/inc/modules/admin/what-query_network_apis.php +++ b/inc/modules/admin/what-query_network_apis.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -43,5 +43,25 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); +// Is there a network selected? +if (isGetRequestElementSet('network_id')) { + // Display all configured networks and type handlers + doGenericXmlTemplateCallback('admin_list_network_query_api_config', array( + 'network_id' => bigintval(getRequestElement('network_id')) + )); +} else { + // Generate network list for this script + $OUT = generateAdminNetworkList(FALSE, TRUE, FALSE); + + // Is it not empty? + if (!empty($OUT)) { + // Output it + outputHtml($OUT); + } else { + // Nothing configured yet + displayMessage('{--ADMIN_NETWORK_QUERY_API_404--}'); + } +} + // [EOF] ?>