]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-query_network_apis.php
Renamed ifSqlHasZeroNums() to ifSqlHasZeroNumRows() and improved some queries.
[mailer.git] / inc / modules / admin / what-query_network_apis.php
index 30d7709580ea8511ce6127bf2cb6c7d4c5a21365..1e46da2b40ad5cabf5c4d057e0dc0378b7054172 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2015 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]
 ?>