From: Roland Häder Date: Thu, 12 Nov 2009 11:09:52 +0000 (+0000) Subject: Comments fixed, ext-network continued, fix for mod stats: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e2148142f8b1a8f40fd6e7ca32185569c5a9083e;p=mailer.git Comments fixed, ext-network continued, fix for mod stats: - A lot comments fixed (underline for project title) - ext-network continued: Networks are now deleteable - Fix for admin module 'what-stats_mods.php' --- diff --git a/.gitattributes b/.gitattributes index 1f2d2a92cb..5c459e0ef7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -432,6 +432,7 @@ inc/modules/admin/what-list_country.php -text inc/modules/admin/what-list_doubler.php -text inc/modules/admin/what-list_holiday.php -text inc/modules/admin/what-list_links.php -text +inc/modules/admin/what-list_network_types.php -text inc/modules/admin/what-list_networks.php -text inc/modules/admin/what-list_notifications.php -text inc/modules/admin/what-list_payouts.php -text diff --git a/inc/extensions/ext- b/inc/extensions/ext- index baae98b47e..de91370a82 100644 --- a/inc/extensions/ext- +++ b/inc/extensions/ext- @@ -1,7 +1,7 @@ "Es wurde kein bekanntes Formular versendet.", 'ADMIN_NETWORK_NOTHING_FOUND' => "Es wurden keine Daten zum Editieren oder Löschen gefunden.", 'ADMIN_NETWORK_NOTHING_CHANGED' => "Es wurden keine Änderungen an den allgemeinen Daten ausgeführt.", + 'ADMIN_NETWORK_NOTHING_REMOVED' => "Es wurden keine allgemeinen Daten gelöscht.", // - Form titles 'ADMIN_NETWORK_ADD_TITLE' => "Neues Werbenetzwerk hinzufügen - Allgemeine Daten", 'ADMIN_NETWORK_EDIT_TITLE' => "Werbenetzwerk editieren - Allgemeine Daten", @@ -66,6 +67,7 @@ addMessages(array( 'ADMIN_NETWORK_REMOVE' => "Daten entfernen", // - Success nots 'ADMIN_NETWORK_UPDATED' => "Es wurden %s Einträge in den allgemeinen Daten aktualisiert.", + 'ADMIN_NETWORK_REMOVED' => "Es wurden %s Einträge aus den allgemeinen Dateen gelöscht.", // - Sponsor networks 'ADMIN_NETWORK_NONE_SUPPORTED' => "Es sind noch keine Werbenetzwerke eingerichtet.", 'ADMIN_NETWORK_SHORT_NAME' => "Kurzname", diff --git a/inc/libs/html_mail_functions.php b/inc/libs/html_mail_functions.php index 29f49585d1..f7a34e0298 100644 --- a/inc/libs/html_mail_functions.php +++ b/inc/libs/html_mail_functions.php @@ -1,7 +1,7 @@ 0) { + // By default nothing is removed + $removed = 0; + + // Something has been selected, so start updating them + foreach (postRequestElement('sel') as $id => $sel) { + // Update this entry? + if ($sel == 1) { + // Remove this entry + $removed += doAdminRemoveNetworkEntry('data', 'network_id', $id); + } // END - if + } // END - foreach + + // Do we have removes? + if ($removed > 0) { + // Removals done + loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_NETWORK_REMOVED'), $removed)); + } else { + // Nothing removed + loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_NOTHING_REMOVED')); + } + } // END - if +} + // [EOF] ?> diff --git a/inc/libs/newsletter_functions.php b/inc/libs/newsletter_functions.php index ec20b363ad..0de1fe33cc 100644 --- a/inc/libs/newsletter_functions.php +++ b/inc/libs/newsletter_functions.php @@ -1,10 +1,10 @@ diff --git a/inc/modules/admin/what-list_networks.php b/inc/modules/admin/what-list_networks.php index 04e3653775..de637747b8 100644 --- a/inc/modules/admin/what-list_networks.php +++ b/inc/modules/admin/what-list_networks.php @@ -1,7 +1,7 @@