X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_networks.php;h=bf469c701d7cbe3b69c197f5eb88eceedfe2eb0c;hb=7831e749e7590c640837bda20512fd6dbc5bb966;hp=de637747b868d93655809e190010915bc77fffca;hpb=fe8e4c180ec67e320be98e1e8dc1f9ea612c3636;p=mailer.git diff --git a/inc/modules/admin/what-list_networks.php b/inc/modules/admin/what-list_networks.php index de637747b8..bf469c701d 100644 --- a/inc/modules/admin/what-list_networks.php +++ b/inc/modules/admin/what-list_networks.php @@ -10,14 +10,13 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Listet alle supportierten Werbenetzwerke auf * * -------------------------------------------------------------------- * - * $Revision:: 856 $ * - * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009) $ * + * $Revision:: $ * + * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * - * $Author:: stelzi $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * + * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * 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 * @@ -42,22 +41,19 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('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; -// Was the form sent? -if ((isFormSent()) || (isPostRequestElementSet('edit')) || (isPostRequestElementSet('del')) || (isPostRequestElementSet('change')) || (isPostRequestElementSet('remove'))) { - // Do we have a 'do'? - if (isGetRequestElementSet('do')) { - // Process the request - doAdminNetworkProcessForm(); - } else { - // No 'do' found - loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_DO_404')); - } -} // END - if +// Handle form here +doNetworkHandleForm(); // Display forms? if ($GLOBALS['network_display'] === false) { @@ -71,28 +67,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