X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_network_api.php;h=5b8367c197bdc78c43193c64ec4dec481609f8ec;hp=3711063bbf0ddfb4e6d2e8db41753f00bf0432f7;hb=8fad776382e63b3f73f8dbe289f229d79cfc2c22;hpb=e3d32ba51d2faa9d771ba684520a7cfa87fbf577 diff --git a/inc/modules/admin/what-config_network_api.php b/inc/modules/admin/what-config_network_api.php index 3711063bbf..5b8367c197 100644 --- a/inc/modules/admin/what-config_network_api.php +++ b/inc/modules/admin/what-config_network_api.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 * @@ -55,15 +55,16 @@ if ($GLOBALS['network_display'] === false) { return; } // END - if -// Do we have a network selected? -if (isGetRequestElementSet('network')) { +// Is there a network selected? +if (isGetRequestElementSet('network_id')) { // Check all networks that doesn't have a configuration entry - $result = SQL_QUERY_ESC('SELECT + $result = SQL_QUERY_ESC("SELECT `network_id`, `network_short_name`, `network_title`, `network_reflink`, `network_query_amount`, + `network_active`, NULL AS `network_api_affiliate_id`, NULL AS `network_api_password`, NULL AS `network_api_site_id`, @@ -74,16 +75,23 @@ FROM `{?_MYSQL_PREFIX?}_network_data` WHERE `network_id`=%s -LIMIT 1', +LIMIT 1", array( - bigintval(getRequestElement('network')) + bigintval(getRequestElement('network_id')) ), __FILE__, __LINE__); - // Do we have an entry? + // Is there an entry? if (SQL_NUMROWS($result) == 1) { // Load data $content = SQL_FETCHARRAY($result); + // Is the network active? + if ($content['network_active'] == 'N') { + // Not active + displayMessage('{--ADMIN_NETWORK_NOT_ACTIVE--}'); + return; + } // END - if + // Query for config table $result_config = SQL_QUERY_ESC('SELECT `network_api_affiliate_id`, @@ -98,10 +106,10 @@ WHERE `network_id`=%s LIMIT 1', array( - bigintval(getRequestElement('network')) + bigintval(getRequestElement('network_id')) ), __FUNCTION__, __LINE__); - // Do we have an entry? + // Is there an entry? if (SQL_NUMROWS($result_config) == 1) { // Load entries $content = merge_array($content, SQL_FETCHARRAY($result_config));