X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_networks.php;h=c9e26e2c1655e6f596316cc0c4bf42d1bac2fc92;hb=e5dde615db05fb62ebe91bd1c030f40c9b91fe17;hp=83f30c853c79dcb3a33b5b44ee36ba8d343eef21;hpb=b8c071f12a601619c4c02b9441b3e0e012db6ced;p=mailer.git diff --git a/inc/modules/admin/what-list_networks.php b/inc/modules/admin/what-list_networks.php index 83f30c853c..c9e26e2c16 100644 --- a/inc/modules/admin/what-list_networks.php +++ b/inc/modules/admin/what-list_networks.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -44,6 +45,12 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addMenuDescription('admin', __FILE__); +// These are expert settings! +if (doVerifyExpertSettings() != 'agreed') { + // Abort here + return; +} // END - if + // By default we should display list/add new forms $GLOBALS['network_display'] = true; @@ -62,28 +69,22 @@ $result = SQL_QUERY('SELECT FROM `{?_MYSQL_PREFIX?}_network_data` ORDER BY - `network_title` ASC', __FILE__, __LINE__); + `network_short_name` ASC', __FILE__, __LINE__); // Do we have entries? -if (SQL_NUMROWS($result) > 0) { +if (!SQL_HASZERONUMS($result)) { // List all - $SW = 2; $OUT = ''; + $OUT = ''; while ($content = SQL_FETCHARRAY($result)) { - // Add/translate entries - $content['sw'] = $SW; - // Load row template $OUT .= loadTemplate('admin_list_networks_row', true, $content); - - // Switch color - $SW = 3 - $SW; } // END - while // Load main template loadTemplate('admin_list_networks', false, $OUT); } else { // Display a message that there are sponsor networks supported, yet - loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_NONE_SUPPORTED')); + loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_NONE_SUPPORTED--}'); } // Free result