Extension ext-network does now show if a network requires the webmaster to send a...
[mailer.git] / inc / modules / admin / what-list_networks.php
index 9e59591977b017072f6a261fa2490ea8ba2d261e..ef72b032d50d1f2794d6ce308e4d7a05483c0b63 100644 (file)
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -43,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 // These are expert settings!
 if (doVerifyExpertSettings() != 'agreed') {
@@ -65,32 +63,34 @@ if ($GLOBALS['network_display'] === false) {
 
 // Query for networks
 $result = SQL_QUERY('SELECT
-       `network_id`, `network_short_name`, `network_title`, `network_reflink`, `network_data_seperator`, `network_row_seperator`, `network_request_type`, `network_charset`
+       `network_id`,
+       `network_short_name`,
+       `network_title`,
+       `network_reflink`,
+       `network_data_seperator`,
+       `network_row_seperator`,
+       `network_request_type`,
+       `network_charset`,
+       `network_requires_id`
 FROM
        `{?_MYSQL_PREFIX?}_network_data`
 ORDER BY
        `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'));
+       displayMessage('{--ADMIN_NETWORK_NONE_SUPPORTED--}');
 }
 
 // Free result