]> git.mxchange.org Git - mailer.git/commitdiff
Adding of request parameters partialy finished
authorRoland Häder <roland@mxchange.org>
Thu, 26 Nov 2009 19:43:29 +0000 (19:43 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 26 Nov 2009 19:43:29 +0000 (19:43 +0000)
13 files changed:
.gitattributes
inc/extensions/ext-network.php
inc/language/network_de.php
inc/libs/network_functions.php
inc/modules/admin/what-list_network_params.php [new file with mode: 0644]
templates/de/html/admin/admin_add_network_params.tpl [new file with mode: 0644]
templates/de/html/admin/admin_add_network_type.tpl
templates/de/html/admin/admin_del_network_types.tpl
templates/de/html/admin/admin_del_network_types_row.tpl
templates/de/html/admin/admin_edit_network_types.tpl
templates/de/html/admin/admin_edit_network_types_row.tpl
templates/de/html/admin/admin_list_network_types.tpl
templates/de/html/admin/admin_network_type_added.tpl

index 383737c2e446e09aaa7c48e9340a140fc61e0956..6877e65995c6e283781f5d1317dfda6a007d7944 100644 (file)
@@ -434,6 +434,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_params.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
@@ -875,6 +876,7 @@ templates/de/html/admin/admin_add_cat.tpl -text
 templates/de/html/admin/admin_add_country.tpl -text
 templates/de/html/admin/admin_add_max.tpl -text
 templates/de/html/admin/admin_add_network.tpl -text
+templates/de/html/admin/admin_add_network_params.tpl -text
 templates/de/html/admin/admin_add_network_type.tpl -text
 templates/de/html/admin/admin_add_payment.tpl -text
 templates/de/html/admin/admin_add_points.tpl -text
index 1635a7c6c7ad1b74f76d18aca9c0ccbdad5316db..56ec8c84597bf474d4c3b78bc7412d446aeed530 100644 (file)
@@ -84,13 +84,12 @@ PRIMARY KEY (`network_type_id`)
                // HTTP parameters (names) for URLs
                addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_request_params`');
                addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_request_params` (
-`network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-`request_param_max_reload_time` VARCHAR(10) NOT NULL DEFAULT 'reload',
-`request_param_min_waiting_time` VARCHAR(10) NOT NULL DEFAULT 'ma',
-`request_param_min_remain_clicks` VARCHAR(10) NOT NULL DEFAULT 'uebrig',
-`request_param_min_payment` VARCHAR(10) NOT NULL DEFAULT 'verguetung',
-`request_param_allow_erotic` VARCHAR(10) NOT NULL DEFAULT 'erotik',
-PRIMARY KEY (`network_type_id`)
+`network_param_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`request_param_key` VARCHAR(10) NOT NULL DEFAULT 'invalid',
+`request_param_value` VARCHAR(10) NOT NULL DEFAULT 'invalid',
+UNIQUE `provider_key` (`network_id`, `request_param_key`),
+PRIMARY KEY (`network_param_id`)
 ) TYPE={?_TABLE_TYPE?} COMMENT='Request parameters for GET/POST request'");
 
                // Error status codes
index 8252b9a085522496098ff1a72cef1424d423cf23..67563eab71805eee0a2f42dae668c96b813d1f7b 100644 (file)
@@ -50,23 +50,25 @@ addMessages(array(
        'ADMIN_NETWORK_NOTHING_FOUND' => "Es wurden keine Daten zum Editieren oder L&ouml;schen gefunden.",
        'ADMIN_NETWORK_NOTHING_CHANGED' => "Es wurden keine &Auml;nderungen an den allgemeinen Daten ausgef&uuml;hrt.",
        'ADMIN_NETWORK_NOTHING_REMOVED' => "Es wurden keine allgemeinen Daten gel&ouml;scht.",
-       'ADMIN_NETWORK_TYPE_NOTHING_CHANGED' => "Es wurden keine &Auml;nderungen an den Werbeart-Handlern ausgef&uuml;hrt.",
-       'ADMIN_NETWORK_TYPE_NOTHING_REMOVED' => "Es wurden keine Werbeart-Handler gel&ouml;scht.",
+       'ADMIN_NETWORK_TYPES_NOTHING_CHANGED' => "Es wurden keine &Auml;nderungen an den Werbeart-Handlern ausgef&uuml;hrt.",
+       'ADMIN_NETWORK_TYPES_NOTHING_REMOVED' => "Es wurden keine Werbeart-Handler gel&ouml;scht.",
        'ADMIN_NETWORK_ALREADY_ADDED' => "Ein Werbenetzwerk mit dem Kurznamen <span class=\"data\">%s</span> existiert bereits.",
        'ADMIN_NETWORK_DATA_NOT_ADDED' => "Das Werbenetzwerk mit dem Kurznamen <span class=\"data\">%s</span> wurde nicht hinzugef&uuml;gt.",
-       'ADMIN_NETWORK_TYPES_404' => "Es wurden keine Werbearten zum Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
-       'ADMIN_NETWORK_TYPE_HANDLE_ALREADY_ADDED' => "Ein Werbeart-Handler <span class=\"data\">%s</span> existiert bereits.",
-       'ADMIN_NETWORK_TYPE_NOT_ADDED' => "Der Werbeart-Handler <span class=\"data\">%s</span> wurde nicht hinzugef&uuml;gt.",
-       'ADMIN_NETWORK_TYPE_NOTHING_FOUND' => "Es wurden keine Werbart-Handler zum Editieren oder L&ouml;schen gefunden.",
+       'ADMIN_NETWORK_TYPES_404' => "Es wurden keine Werbearten-Handler zum Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
+       'ADMIN_NETWORK_TYPES_HANDLE_ALREADY_ADDED' => "Ein Werbeart-Handler <span class=\"data\">%s</span> existiert bereits.",
+       'ADMIN_NETWORK_TYPES_NOT_ADDED' => "Der Werbeart-Handler <span class=\"data\">%s</span> wurde nicht hinzugef&uuml;gt.",
+       'ADMIN_NETWORK_TYPES_NOTHING_FOUND' => "Es wurden keine Werbart-Handler zum Editieren oder L&ouml;schen gefunden.",
+       'ADMIN_NETWORK_PARAMS_404' => "Es wurden keine API-Abfrageparameter zum Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
        // - Form titles
        'ADMIN_NETWORK_ADD_TITLE' => "Neues Werbenetzwerk hinzuf&uuml;gen - Allgemeine Daten",
        'ADMIN_NETWORK_EDIT_TITLE' => "Werbenetzwerk editieren - Allgemeine Daten",
        'ADMIN_NETWORK_DELETE_TITLE' => "Werbenetzwerk l&ouml;schen - Allgemeine Daten",
        'ADMIN_NETWORK_SELECT_TITLE' => "Werbenetzwerk ausw&auml;hlen",
-       'ADMIN_NETWORK_TYPE_ADD_TITLE' => "Werbenetzwerk verwalten - Neue Werbeart hinzuf&uuml;gen",
-       'ADMIN_NETWORK_TYPE_EDIT_TITLE' => "Werbeart-Handler editieren",
-       'ADMIN_NETWORK_TYPE_DELETE_TITLE' => "Werbeart-Handle l&ouml;schen",
-       'ADMIN_NETWORK_TYPE_LIST_TITLE' => "Werbeart-Handler auflisten und verwalten",
+       'ADMIN_NETWORK_TYPES_ADD_TITLE' => "Werbenetzwerk verwalten - Neue Werbeart hinzuf&uuml;gen",
+       'ADMIN_NETWORK_TYPES_EDIT_TITLE' => "Werbeart-Handler editieren",
+       'ADMIN_NETWORK_TYPES_DELETE_TITLE' => "Werbeart-Handle l&ouml;schen",
+       'ADMIN_NETWORK_TYPES_LIST_TITLE' => "Werbeart-Handler auflisten und verwalten",
+       'ADMIN_NETWORK_PARAMS_ADD_TITLE' => "Werbenetzwerk verwalten - Neuen API-Abfrageparameter hinzuf&uuml;gen",
        // - Link titles
        'ADMIN_NETWORK_LIST_TYPES_LINK_TITLE' => "Weiter zu den Werbearten",
        'ADMIN_NETWORK_LIST_PARAMS_LINK_TITLE' => "Weiter zu den Abfrageparametern",
@@ -79,46 +81,48 @@ addMessages(array(
        'ADMIN_NETWORK_DELETE' => "L&ouml;schen",
        'ADMIN_NETWORK_REMOVE' => "Daten entfernen",
        'ADMIN_NETWORK_CHOOSE' => "Werbenetzwerk ausw&auml;hlen",
-       'ADMIN_NETWORK_TYPE_ADD' => "Werbeart hinzuf&uuml;gen",
-       'ADMIN_NETWORK_TYPE_EDIT' => "Editieren",
-       'ADMIN_NETWORK_TYPE_DELETE' => "L&ouml;schen",
-       'ADMIN_NETWORK_TYPE_CHANGE' => "Handler &auml;ndern",
-       'ADMIN_NETWORK_TYPE_REMOVE' => "Handler entfernen",
+       'ADMIN_NETWORK_TYPES_ADD' => "Werbeart hinzuf&uuml;gen",
+       'ADMIN_NETWORK_TYPES_EDIT' => "Editieren",
+       'ADMIN_NETWORK_TYPES_DELETE' => "L&ouml;schen",
+       'ADMIN_NETWORK_TYPES_CHANGE' => "Handler &auml;ndern",
+       'ADMIN_NETWORK_TYPES_REMOVE' => "Handler entfernen",
+       'ADMIN_NETWORK_PARAMS_ADD' => "Abfrageparameter hinzuf&uuml;gen",
        // - Success titles
        'ADMIN_NETWORK_ADDED_TITLE' => "Allgemeine Werbenetzwerkdaten hinzugef&uuml;gt.",
-       'ADMIN_NETWORK_TYPE_ADDED_TITLE' => "Werbeart-Handler hinzugef&uuml;gt.",
+       'ADMIN_NETWORK_TYPES_ADDED_TITLE' => "Werbeart-Handler hinzugef&uuml;gt.",
        // - Success nots
        'ADMIN_NETWORK_UPDATED' => "Es wurden <span class=\"data\">%s</span> Eintr&auml;ge in den allgemeinen Daten aktualisiert.",
        'ADMIN_NETWORK_REMOVED' => "Es wurden <span class=\"data\">%s</span> Eintr&auml;ge aus den allgemeinen Daten gel&ouml;scht.",
-       'ADMIN_NETWORK_TYPE_UPDATED' => "Es wurden <span class=\"data\">%s</span> Werbeart-Handler aktualisiert.",
-       'ADMIN_NETWORK_TYPE_REMOVED' => "Es wurden <span class=\"data\">%s</span> Werbeart-Handler gel&ouml;scht.",
+       'ADMIN_NETWORK_TYPES_UPDATED' => "Es wurden <span class=\"data\">%s</span> Werbeart-Handler aktualisiert.",
+       'ADMIN_NETWORK_TYPES_REMOVED' => "Es wurden <span class=\"data\">%s</span> Werbeart-Handler gel&ouml;scht.",
        // - Form notes
        'ADMIN_NETWORK_ADD_NOTE' => "Mehr Datenschutz bei POST-Abfragen bedeutet, dass die von den Internetanbietern betriebenen Caches (Proxy) die POST-Daten nicht mitloggen (so eine Art Kodex). Der Zeichensatz ist meistens ISO-8859-1 oder WINDOWS-1252.",
        'ADMIN_NETWORK_LIST_NOTE' => "Seien Sie mit dem L&ouml;schen und Editieren von Allgemeine Daten sehr vorsichtig. Sie sollten hierzu R&uuml;cksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten.",
-       'ADMIN_NETWORK_TYPE_ADD_NOTE' => "F&uuml;gen Sie hier weitere Werbearten dem ausgw&auml;hlten Werbenetzwerk hinzu. Die Abfrage-, Klick- und Banner-URL m&uuml;ssen dabei Platzhalter enthalten, die Sie der Dokumentation und <a href=\"http://forum.mxchange.org/forum-43.html\" rel=\"external\" title=\"Direkt-Link zur Forumkategorie Werbenetzwerke\" target=\"_blank\">dem Forum</a> entnehmen k&ouml;nnen.",
-       'ADMIN_NETWORK_TYPE_LIST_NOTE' => "Seien Sie mit dem L&ouml;schen und Editieren von Werbeart-Handlern sehr vorsichtig. Sie sollten hierzu R&uuml;cksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten. Dokumentation zu den Platzhaltern (&#37;FOO&#37;, &#37;BAR&#37; usw.) finden Sie in der Dokumentation DOCs/de/network/README.txt.",
+       'ADMIN_NETWORK_TYPES_ADD_NOTE' => "F&uuml;gen Sie hier weitere Werbearten dem ausgw&auml;hlten Werbenetzwerk hinzu. Die Abfrage-, Klick- und Banner-URL m&uuml;ssen dabei Platzhalter enthalten, die Sie der Dokumentation und <a href=\"http://forum.mxchange.org/forum-43.html\" rel=\"external\" title=\"Direkt-Link zur Forumkategorie Werbenetzwerke\" target=\"_blank\">dem Forum</a> entnehmen k&ouml;nnen.",
+       'ADMIN_NETWORK_TYPES_LIST_NOTE' => "Seien Sie mit dem L&ouml;schen und Editieren von Werbeart-Handlern sehr vorsichtig. Sie sollten hierzu R&uuml;cksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten. Dokumentation zu den Platzhaltern (&#37;FOO&#37;, &#37;BAR&#37; usw.) finden Sie in der Dokumentation DOCs/de/network/README.txt.",
+       'ADMIN_NETWORK_PARAMS_ADD_NOTE' => "F&uuml;gen Sie hier weitere Abfrageparameter dem ausgw&auml;hlten Werbenetzwerk hinzu. Geben Sie keine Werte an, wie z.B. 5 Sekunden oder 30 Mails, geben Sie bei Abfrageparameter den GET- bzw. POST-Parameternamen an.",
        // - Advertise types
-       'ADMIN_NETWORK_TYPE_BANNERCLICK' => "Banner-Klick",
-       'ADMIN_NETWORK_TYPE_BANNERVIEW' => "Banner-View",
-       'ADMIN_NETWORK_TYPE_BANNERCLICK_VIEW' => "Banner-Klick/-View",
-       'ADMIN_NETWORK_TYPE_SURFBARCLICK' => "Surfbar-Klick",
-       'ADMIN_NETWORK_TYPE_SURFBARVIEW' => "Surfbar-View",
-       'ADMIN_NETWORK_TYPE_SURFBARCLICK_VIEW' => "Surfbar-Klick/-View",
-       'ADMIN_NETWORK_TYPE_FORCEDBANNER' => "Forced-Banner",
-       'ADMIN_NETWORK_TYPE_TEXTLINKCLICK' => "Textlink-Klick",
-       'ADMIN_NETWORK_TYPE_TEXTLINKVIEW' => "Textlink-View",
-       'ADMIN_NETWORK_TYPE_TEXTLINKCLICK_VIEW' => "Textlink-Klick/-View",
-       'ADMIN_NETWORK_TYPE_LAYERCLICK' => "Layer-Klick",
-       'ADMIN_NETWORK_TYPE_LAYERVIEW' => "Layer-View",
-       'ADMIN_NETWORK_TYPE_LAYERCLICK_VIEW' => "Layer-Klick/-View",
-       'ADMIN_NETWORK_TYPE_POPUP' => "PopUp",
-       'ADMIN_NETWORK_TYPE_POPDOWN' => "PopDown",
-       'ADMIN_NETWORK_TYPE_TEXTMAIL' => "Textmail",
-       'ADMIN_NETWORK_TYPE_HTMLMAIL' => "HTML-Mail",
-       'ADMIN_NETWORK_TYPE_LEAD' => "Lead",
-       'ADMIN_NETWORK_TYPE_SALE' => "Sale",
-       'ADMIN_NETWORK_TYPE_PAYPERACTIVE' => "PayPerAktiv",
-       'ADMIN_NETWORK_TYPE_PAGEPEEL' => "Page-Peel",
+       'ADMIN_NETWORK_TYPES_BANNERCLICK' => "Banner-Klick",
+       'ADMIN_NETWORK_TYPES_BANNERVIEW' => "Banner-View",
+       'ADMIN_NETWORK_TYPES_BANNERCLICK_VIEW' => "Banner-Klick/-View",
+       'ADMIN_NETWORK_TYPES_SURFBARCLICK' => "Surfbar-Klick",
+       'ADMIN_NETWORK_TYPES_SURFBARVIEW' => "Surfbar-View",
+       'ADMIN_NETWORK_TYPES_SURFBARCLICK_VIEW' => "Surfbar-Klick/-View",
+       'ADMIN_NETWORK_TYPES_FORCEDBANNER' => "Forced-Banner",
+       'ADMIN_NETWORK_TYPES_TEXTLINKCLICK' => "Textlink-Klick",
+       'ADMIN_NETWORK_TYPES_TEXTLINKVIEW' => "Textlink-View",
+       'ADMIN_NETWORK_TYPES_TEXTLINKCLICK_VIEW' => "Textlink-Klick/-View",
+       'ADMIN_NETWORK_TYPES_LAYERCLICK' => "Layer-Klick",
+       'ADMIN_NETWORK_TYPES_LAYERVIEW' => "Layer-View",
+       'ADMIN_NETWORK_TYPES_LAYERCLICK_VIEW' => "Layer-Klick/-View",
+       'ADMIN_NETWORK_TYPES_POPUP' => "PopUp",
+       'ADMIN_NETWORK_TYPES_POPDOWN' => "PopDown",
+       'ADMIN_NETWORK_TYPES_TEXTMAIL' => "Textmail",
+       'ADMIN_NETWORK_TYPES_HTMLMAIL' => "HTML-Mail",
+       'ADMIN_NETWORK_TYPES_LEAD' => "Lead",
+       'ADMIN_NETWORK_TYPES_SALE' => "Sale",
+       'ADMIN_NETWORK_TYPES_PAYPERACTIVE' => "PayPerAktiv",
+       'ADMIN_NETWORK_TYPES_PAGEPEEL' => "Page-Peel",
        // - Sponsor networks
        'ADMIN_NETWORK_NONE_SUPPORTED' => "Es sind noch keine Werbenetzwerke eingerichtet.",
        'ADMIN_NETWORK_SHORT_NAME' => "Kurzname",
@@ -134,10 +138,19 @@ addMessages(array(
        'ADMIN_NETWORK_DATA_SEPERATOR2' => "Daten",
        'ADMIN_NETWORK_ROW_SEPERATOR2' => "Zeilen",
        // - Advertise type
-       'ADMIN_NETWORK_TYPE_HANDLE' => "Werbeart-Handler",
-       'ADMIN_NETWORK_TYPE_API_URL' => "API-URL der Werbeart",
-       'ADMIN_NETWORK_TYPE_CLICK_URL' => "Klick-URL der Werbeart",
-       'ADMIN_NETWORK_TYPE_BANNER_URL' => "Banner-URL der Werbeart",
+       'ADMIN_NETWORK_TYPES_HANDLE' => "Werbeart-Handler",
+       'ADMIN_NETWORK_TYPES_API_URL' => "API-URL der Werbeart",
+       'ADMIN_NETWORK_TYPES_CLICK_URL' => "Klick-URL der Werbeart",
+       'ADMIN_NETWORK_TYPES_BANNER_URL' => "Banner-URL der Werbeart",
+       // - API request parameter
+       'ADMIN_NETWORK_PARAMS_KEY' => "Abfragename",
+       'ADMIN_NETWORK_PARAMS_VALUE' => "Abfrageparameter",
+       'ADMIN_NETWORK_PARAMS_ID' => "Kundennummer (Id)",
+       'ADMIN_NETWORK_PARAMS_PASSWORD' => "Interface-Kennwort",
+       'ADMIN_NETWORK_PARAMS_RELOAD' => "Maximale Reloadsperre",
+       'ADMIN_NETWORK_PARAMS_REMAIN' => "Mindestanzahl der restlichen Klicks",
+       'ADMIN_NETWORK_PARAMS_REWARD' => "Mindestverg&uuml;tung",
+       'ADMIN_NETWORK_PARAMS_EROTIC' => "Erotik erlaubt",
 ));
 
 // [EOF]
index 2f6fd916d37d5509378397588a9e7914ab63094d..cf270436b093952e098ef1da5b950da8c08d090d 100644 (file)
@@ -421,7 +421,7 @@ function doAdminNetworkProcessHandlenetworktypeForm () {
                        $GLOBALS['network_display'] = false;
                } else {
                        // Nothing selected/found
-                       loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPE_NOTHING_FOUND'));
+                       loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPES_NOTHING_FOUND'));
                }
        } // END - if
 }
@@ -503,7 +503,7 @@ function doAdminNetworkProcessAddnetworktypeForm () {
        // Is the network type handle already used with given network?
        if (isNetworkTypeHandleValid(postRequestElement('network_type_handle'), getRequestElement('network'))) {
                // Already added
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPE_HANDLE_ALREADY_ADDED', postRequestElement('network_type_handle')));
+               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_HANDLE_ALREADY_ADDED', postRequestElement('network_type_handle')));
 
                // ... so abort here
                return false;
@@ -530,7 +530,7 @@ function doAdminNetworkProcessAddnetworktypeForm () {
                loadTemplate('admin_network_type_added', false, postRequestArray());
        } else {
                // Not added
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPE_NOT_ADDED', postRequestElement('network_type_handle')));
+               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_NOT_ADDED', postRequestElement('network_type_handle')));
        }
 }
 
@@ -571,10 +571,10 @@ function doAdminNetworkProcessChangenetworktypeForm () {
                // Do we have updates?
                if ($updated > 0) {
                        // Updates done
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPE_UPDATED', $updated));
+                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_UPDATED', $updated));
                } else {
                        // Nothing changed
-                       loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPE_NOTHING_CHANGED'));
+                       loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPES_NOTHING_CHANGED'));
                }
        } // END - if
 }
@@ -598,10 +598,10 @@ function doAdminNetworkProcessRemovenetworktypeForm () {
                // Do we have removes?
                if ($removed > 0) {
                        // Removals done
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPE_REMOVED', $removed));
+                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_REMOVED', $removed));
                } else {
                        // Nothing removed
-                       loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPE_NOTHING_REMOVED'));
+                       loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_TYPES_NOTHING_REMOVED'));
                }
        } // END - if
 }
diff --git a/inc/modules/admin/what-list_network_params.php b/inc/modules/admin/what-list_network_params.php
new file mode 100644 (file)
index 0000000..ce21dc9
--- /dev/null
@@ -0,0 +1,120 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 11/26/2009 *
+ * ===================                          Last change: 11/26/2009 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-list_network_params.php                     *
+ * -------------------------------------------------------------------- *
+ * Short description : List/manage network API query parameters         *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Verwaltet API-Abfrageparameter                   *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $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                           *
+ * For more information visit: http://www.mxchange.org                  *
+ *                                                                      *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or    *
+ * (at your option) any later version.                                  *
+ *                                                                      *
+ * This program is distributed in the hope that it will be useful,      *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
+ * GNU General Public License for more details.                         *
+ *                                                                      *
+ * You should have received a copy of the GNU General Public License    *
+ * along with this program; if not, write to the Free Software          *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if ((!defined('__SECURITY')) || (!isAdmin())) {
+       die();
+} // END - if
+
+// 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;
+
+// Handle form here
+doNetworkHandleForm();
+
+// Display forms?
+if ($GLOBALS['network_display'] === false) {
+       // Abort here
+       return;
+} // END - if
+
+// Do we have a network selected?
+if (isGetRequestElementSet('network')) {
+       // Get its data for template
+       $networkData = getNetworkDataById(getRequestElement('network'));
+
+       // Load all advert types for given network
+       $result = SQL_QUERY_ESC("SELECT
+       `network_param_id`, `request_param_key`, `request_param_value`
+FROM
+       `{?_MYSQL_PREFIX?}_network_request_params`
+WHERE
+       `network_id`=%s
+ORDER BY
+       `request_param_key` ASC",
+               array(getRequestElement('network')), __FILE__, __LINE__);
+
+       // Do we have entries?
+       if (SQL_NUMROWS($result) > 0) {
+               // List all entries
+               $OUT = ''; $SW = 2;
+               while ($row = SQL_FETCHARRAY($result)) {
+                       // Add/translate some data
+                       $row['sw'] = $SW;
+
+                       // Add row template and switch color
+                       $OUT .= loadTemplate('admin_list_network_params_row', true, $row);
+                       $SW = 3 - $SW;
+               } // END - while
+
+               // Prepare data for template
+               $content = array(
+                       'rows'            => $OUT,
+                       'network_id'      => getRequestElement('network'),
+                       'network_title'   => $networkData['network_title'],
+                       'network_reflink' => $networkData['network_reflink'],
+               );
+
+               // Load main template
+               loadTemplate('admin_list_network_params', false, $content);
+       } else {
+               // No entries found
+               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_PARAMS_404', $networkData['network_title']));
+       }
+
+       // Free result
+       SQL_FREERESULT($result);
+
+       // Add form for adding new params
+       loadTemplate('admin_add_network_params', false, $networkData);
+} else {
+       // Generate network list for this script
+       outputHtml(generateAdminNetworkList());
+}
+
+// [EOF]
+?>
diff --git a/templates/de/html/admin/admin_add_network_params.tpl b/templates/de/html/admin/admin_add_network_params.tpl
new file mode 100644 (file)
index 0000000..146da8e
--- /dev/null
@@ -0,0 +1,43 @@
+<div align="center">
+<form accept-charset="utf-8" action="{%url=modules.php?module=admin&amp;what=list_network_params&amp;do=addnetworkparam&amp;network=$content[network_id]%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
+       <tr>
+               <td class="admin_title bottom" colspan="2" align="center">
+                       <strong>{--ADMIN_NETWORK_PARAMS_ADD_TITLE--}</strong>
+                       <div class="tiny">
+                               (<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
+                       </div>
+               </td>
+       </tr>
+       <tr>
+               <td align="right" width="250">{--ADMIN_NETWORK_PARAMS_KEY--}:</td>
+               <td>
+                       <select name="network_param_key" class="admin_select" size="1">
+                               <option value="id">{--ADMIN_NETWORK_PARAMS_ID--}</option>
+                               <option value="password">{--ADMIN_NETWORK_PARAMS_PASSWORD--}</option>
+                               <option value="reload">{--ADMIN_NETWORK_PARAMS_RELOAD--}</option>
+                               <option value="remain">{--ADMIN_NETWORK_PARAMS_REMAIN--}</option>
+                               <option value="payment">{--ADMIN_NETWORK_PARAMS_REWARD--}</option>
+                               <option value="erotic">{--ADMIN_NETWORK_PARAMS_EROTIC--}</option>
+                       </select>
+               </td>
+       </tr>
+       <tr>
+               <td class="bottom" align="right" width="250">{--ADMIN_NETWORK_PARAMS_VALUE--}:</td>
+               <td class="bottom">
+                       <input type="text" name="network_param_value" class="admin_normal" size="10" maxlength="10" />
+               </td>
+       </tr>
+       <tr>
+               <td class="admin_footer" colspan="2" align="center">
+                       <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
+                       <input type="submit" name="ok" class="admin_submit" value="{--ADMIN_NETWORK_PARAMS_ADD--}" />
+               </td>
+       </tr>
+</table>
+</form>
+</div>
+
+<div class="admin_note">
+       {--ADMIN_NETWORK_PARAMS_ADD_NOTE--}
+</div>
index 17606203c07c0256441752f4b9f0ef7c755cc178..8c144f85c3c41cc2bd98d087be0348f4d2ae827a 100644 (file)
@@ -3,54 +3,54 @@
 <table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
        <tr>
                <td class="admin_title bottom" colspan="2" align="center">
-                       <strong>{--ADMIN_NETWORK_TYPE_ADD_TITLE--}</strong>
+                       <strong>{--ADMIN_NETWORK_TYPES_ADD_TITLE--}</strong>
                        <div class="tiny">
                                (<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
                        </div>
                </td>
        </tr>
        <tr>
-               <td align="right" width="250">{--ADMIN_NETWORK_TYPE_HANDLE--}:</td>
+               <td align="right" width="250">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
                <td>
                        <select name="network_type_handle" class="admin_select" size="1">
-                               <option value="banner">{--ADMIN_NETWORK_TYPE_BANNERCLICK_VIEW--}</option>
-                               <option value="surfbar">{--ADMIN_NETWORK_TYPE_SURFBARCLICK_VIEW--}</option>
-                               <option value="foredbanner">{--ADMIN_NETWORK_TYPE_FORCEDBANNER--}</option>
-                               <option value="textlink">{--ADMIN_NETWORK_TYPE_TEXTLINKCLICK_VIEW--}</option>
-                               <option value="layer">{--ADMIN_NETWORK_TYPE_LAYERCLICK_VIEW--}</option>
-                               <option value="popup">{--ADMIN_NETWORK_TYPE_POPUP--}</option>
-                               <option value="popdown">{--ADMIN_NETWORK_TYPE_POPDOWN--}</option>
-                               <option value="textmail">{--ADMIN_NETWORK_TYPE_TEXTMAIL--}</option>
-                               <option value="htmlmail">{--ADMIN_NETWORK_TYPE_HTMLMAIL--}</option>
-                               <option value="lead">{--ADMIN_NETWORK_TYPE_LEAD--}</option>
-                               <option value="sale">{--ADMIN_NETWORK_TYPE_SALE--}</option>
-                               <option value="payperactive">{--ADMIN_NETWORK_TYPE_PAYPERACTIVE--}</option>
-                               <option value="pagepeel">{--ADMIN_NETWORK_TYPE_PAGEPEEL--}</option>
+                               <option value="banner">{--ADMIN_NETWORK_TYPES_BANNERCLICK_VIEW--}</option>
+                               <option value="surfbar">{--ADMIN_NETWORK_TYPES_SURFBARCLICK_VIEW--}</option>
+                               <option value="foredbanner">{--ADMIN_NETWORK_TYPES_FORCEDBANNER--}</option>
+                               <option value="textlink">{--ADMIN_NETWORK_TYPES_TEXTLINKCLICK_VIEW--}</option>
+                               <option value="layer">{--ADMIN_NETWORK_TYPES_LAYERCLICK_VIEW--}</option>
+                               <option value="popup">{--ADMIN_NETWORK_TYPES_POPUP--}</option>
+                               <option value="popdown">{--ADMIN_NETWORK_TYPES_POPDOWN--}</option>
+                               <option value="textmail">{--ADMIN_NETWORK_TYPES_TEXTMAIL--}</option>
+                               <option value="htmlmail">{--ADMIN_NETWORK_TYPES_HTMLMAIL--}</option>
+                               <option value="lead">{--ADMIN_NETWORK_TYPES_LEAD--}</option>
+                               <option value="sale">{--ADMIN_NETWORK_TYPES_SALE--}</option>
+                               <option value="payperactive">{--ADMIN_NETWORK_TYPES_PAYPERACTIVE--}</option>
+                               <option value="pagepeel">{--ADMIN_NETWORK_TYPES_PAGEPEEL--}</option>
                        </select>
                </td>
        </tr>
        <tr>
-               <td align="right" width="250">{--ADMIN_NETWORK_TYPE_API_URL--}:</td>
+               <td align="right" width="250">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
                <td>
-                       <input type="text" name="network_type_api_url" class="admin_normal" size="30" maxlength="255" />
+                       <input type="text" name="network_type_api_url" class="admin_normal" size="50" maxlength="255" />
                </td>
        </tr>
        <tr>
-               <td align="right" width="250">{--ADMIN_NETWORK_TYPE_CLICK_URL--}:</td>
+               <td align="right" width="250">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
                <td>
-                       <input type="text" name="network_type_click_url" class="admin_normal" size="20" maxlength="255" />
+                       <input type="text" name="network_type_click_url" class="admin_normal" size="40" maxlength="255" />
                </td>
        </tr>
        <tr>
-               <td class="bottom" align="right" width="250">{--ADMIN_NETWORK_TYPE_BANNER_URL--}:</td>
+               <td class="bottom" align="right" width="250">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
                <td class="bottom">
-                       <input type="text" name="network_type_banner_url" class="admin_normal" size="20" maxlength="255" />
+                       <input type="text" name="network_type_banner_url" class="admin_normal" size="40" maxlength="255" />
                </td>
        </tr>
        <tr>
                <td class="admin_footer" colspan="2" align="center">
                        <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" name="ok" class="admin_submit" value="{--ADMIN_NETWORK_TYPE_ADD--}" />
+                       <input type="submit" name="ok" class="admin_submit" value="{--ADMIN_NETWORK_TYPES_ADD--}" />
                </td>
        </tr>
 </table>
@@ -58,5 +58,5 @@
 </div>
 
 <div class="admin_note">
-       {--ADMIN_NETWORK_TYPE_ADD_NOTE--}
+       {--ADMIN_NETWORK_TYPES_ADD_NOTE--}
 </div>
index 633096d63b1a23290eea80cf8a325f737e61ecdd..f3c6ce64bdf104b7961b7208811175f0e8177d95 100644 (file)
@@ -4,7 +4,7 @@
        <tr>
                <td align="center" class="admin_title bottom" height="25" colspan="2">
                        <div>
-                               <strong>{--ADMIN_NETWORK_TYPE_DELETE_TITLE--}</strong>
+                               <strong>{--ADMIN_NETWORK_TYPES_DELETE_TITLE--}</strong>
                        </div>
                        <div class="tiny">
                                (<a href="$content[network_data][network_reflink]" title="$content[network_data][network_title]" target="_blank">$content[network_data][network_title]</a>)
        <tr>
                <td colspan="2" class="admin_footer">
                        <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" name="remove" class="admin_delete" value="{--ADMIN_NETWORK_TYPE_REMOVE--}" />
+                       <input type="submit" name="remove" class="admin_delete" value="{--ADMIN_NETWORK_TYPES_REMOVE--}" />
                </td>
        </tr>
 </table>
 </form>
 
 <div class="admin_note">
-       {--ADMIN_NETWORK_TYPE_LIST_NOTE--}
+       {--ADMIN_NETWORK_TYPES_LIST_NOTE--}
 </div>
 </div>
index e4e15785c4ba8995e887430c3863c12131ddec61..2d9fa33be6a8b99458be18b0037cda6bf76e6d7d 100644 (file)
@@ -1,24 +1,24 @@
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_HANDLE--}:</td>
+       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
        <td class="switch_sw$content[sw]">
                <input type="hidden" name="sel[$content[network_id]]" value="1" />
                $content[network_type_handle]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_API_URL--}:</td>
+       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
        <td class="switch_sw$content[sw]">
                $content[network_type_api_url]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_CLICK_URL--}:</td>
+       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
        <td class="switch_sw$content[sw]">
                $content[network_type_click_url]
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_BANNER_URL--}:</td>
+       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
        <td class="switch_sw$content[sw] bottom">
                $content[network_type_banner_url]
        </td>
index f0bdc6be6a7472ef767590fae0238c5396e67c14..f6f78838d2e9cbc36128d76f954448b0f5910037 100644 (file)
@@ -4,7 +4,7 @@
        <tr>
                <td align="center" class="admin_title bottom" height="25" colspan="2">
                        <div>
-                               <strong>{--ADMIN_NETWORK_TYPE_EDIT_TITLE--}</strong>
+                               <strong>{--ADMIN_NETWORK_TYPES_EDIT_TITLE--}</strong>
                        </div>
                        <div class="tiny">
                                (<a href="$content[network_data][network_reflink]" title="$content[network_data][network_title]" target="_blank">$content[network_data][network_title]</a>)
        <tr>
                <td colspan="2" class="admin_footer">
                        <input type="reset" class="admin_reset" value="{--CLEAR_FORM--}" />
-                       <input type="submit" name="change" class="admin_submit" value="{--ADMIN_NETWORK_TYPE_CHANGE--}" />
+                       <input type="submit" name="change" class="admin_submit" value="{--ADMIN_NETWORK_TYPES_CHANGE--}" />
                </td>
        </tr>
 </table>
 </form>
 
 <div class="admin_note">
-       {--ADMIN_NETWORK_TYPE_LIST_NOTE--}
+       {--ADMIN_NETWORK_TYPES_LIST_NOTE--}
 </div>
 </div>
index 61847e6f4650c69b4d7824979a05f907891c86f9..188b03504bbc5a980a9bce9bde2276d0af5e268b 100644 (file)
@@ -1,24 +1,24 @@
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_HANDLE--}:</td>
+       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_HANDLE--}:</td>
        <td class="switch_sw$content[sw]">
                <input type="hidden" name="sel[$content[network_type_id]]" value="1" />
                <input type="text" name="network_type_handle[$content[network_type_id]]" class="admin_normal" size="20" maxlength="255" value="$content[network_type_handle]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_API_URL--}:</td>
+       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_API_URL--}:</td>
        <td class="switch_sw$content[sw]">
                <input type="text" name="network_type_api_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_api_url]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_CLICK_URL--}:</td>
+       <td class="switch_sw$content[sw]" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_CLICK_URL--}:</td>
        <td class="switch_sw$content[sw]">
                <input type="text" name="network_type_click_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_click_url]" />
        </td>
 </tr>
 <tr>
-       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPE_BANNER_URL--}:</td>
+       <td class="switch_sw$content[sw] bottom" style="padding-left:5px">{--ADMIN_NETWORK_TYPES_BANNER_URL--}:</td>
        <td class="switch_sw$content[sw] bottom">
                <input type="text" name="network_type_banner_url[$content[network_type_id]]" class="admin_normal" size="50" maxlength="255" value="$content[network_type_banner_url]" />
        </td>
index b99da7a11455b5f3f9db6929bac7aa2a7c28b1bb..346373c601d0ea56604bf7b0a50c9c49d5d477c6 100644 (file)
@@ -4,7 +4,7 @@
        <tr>
                <td colspan="5" align="center" class="admin_title bottom">
                        <div>
-                               <strong>{--ADMIN_NETWORK_TYPE_LIST_TITLE--}</strong>
+                               <strong>{--ADMIN_NETWORK_TYPES_LIST_TITLE--}</strong>
                        </div>
                        <div class="tiny">
                                (<a href="$content[network_reflink]" title="$content[network_title]" target="_blank">$content[network_title]</a>)
        </tr>
        <tr>
                <td align="center" class="header_column bottom right" height="25"><strong>{--ID_SELECT--}</strong></td>
-               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_HANDLE--}</strong></td>
-               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_API_URL--}</strong></td>
-               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPE_CLICK_URL--}</strong></td>
-               <td align="center" class="header_column bottom"><strong>{--ADMIN_NETWORK_TYPE_BANNER_URL--}</strong></td>
+               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPES_HANDLE--}</strong></td>
+               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPES_API_URL--}</strong></td>
+               <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_TYPES_CLICK_URL--}</strong></td>
+               <td align="center" class="header_column bottom"><strong>{--ADMIN_NETWORK_TYPES_BANNER_URL--}</strong></td>
        </tr>
        $content[rows]
        <tr>
                <td colspan="5" class="admin_footer">
                        <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" />
-                       <input type="submit" name="edit" class="admin_submit" value="{--ADMIN_NETWORK_TYPE_EDIT--}" />
-                       <input type="submit" name="del" class="admin_delete" value="{--ADMIN_NETWORK_TYPE_DELETE--}" />
+                       <input type="submit" name="edit" class="admin_submit" value="{--ADMIN_NETWORK_TYPES_EDIT--}" />
+                       <input type="submit" name="del" class="admin_delete" value="{--ADMIN_NETWORK_TYPES_DELETE--}" />
                </td>
        </tr>
 </table>
 </form>
 
 <div class="admin_note">
-       {--ADMIN_NETWORK_TYPE_LIST_NOTE--}
+       {--ADMIN_NETWORK_TYPES_LIST_NOTE--}
 </div>
 </div>
index 81084ddd1b0639fdb7e3de2c13c946c69705a31d..9a31a6b9a5a4f010fb082b76d724392e7267a81e 100644 (file)
@@ -2,7 +2,7 @@
 
 <div style="width:550px" class="admin_table dashed">
        <div class="admin_title bottom">
-               {--ADMIN_NETWORK_TYPE_ADDED_TITLE--}
+               {--ADMIN_NETWORK_TYPES_ADDED_TITLE--}
        </div>
        <div class="admin_message">
                Der Werbeart-Handler $content[network_type_handle] wurde soeben hinzugef&uuml;gt.