]> git.mxchange.org Git - mailer.git/commitdiff
Extension ext-network continued (sorry guys for all these splitted commits):
authorRoland Häder <roland@mxchange.org>
Thu, 11 Aug 2011 23:37:01 +0000 (23:37 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 11 Aug 2011 23:37:01 +0000 (23:37 +0000)
- Renamed database table 'network_config' to 'network_api_config'
- Also renamed all to above table belonging PHP script, template and language
  strings
- TODOs.txt updated

.gitattributes
DOCS/TODOs.txt
inc/extensions/ext-network.php
inc/language/network_de.php
inc/libs/network_functions.php
inc/modules/admin/what-config_network_api.php [new file with mode: 0644]
inc/modules/admin/what-config_networks.php
templates/de/html/admin/admin_config_network.tpl
templates/de/html/admin/admin_config_network_api.tpl [new file with mode: 0644]

index 462992ab59f531cd1069064a0cceedeb1f0affd7..7d2682de5299c364f994f46f1f5d1a9391432ada 100644 (file)
@@ -479,6 +479,7 @@ inc/modules/admin/what-config_imprint.php svneol=native#text/plain
 inc/modules/admin/what-config_mediadata.php svneol=native#text/plain
 inc/modules/admin/what-config_menu.php svneol=native#text/plain
 inc/modules/admin/what-config_mods.php svneol=native#text/plain
+inc/modules/admin/what-config_network_api.php svneol=native#text/plain
 inc/modules/admin/what-config_networks.php svneol=native#text/plain
 inc/modules/admin/what-config_newsletter.php svneol=native#text/plain
 inc/modules/admin/what-config_nickname.php svneol=native#text/plain
@@ -1097,6 +1098,7 @@ templates/de/html/admin/admin_config_home_settings.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_mediadata.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_menu.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_network.tpl svneol=native#text/plain
+templates/de/html/admin/admin_config_network_api.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_newsletter.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_nickname.tpl svneol=native#text/plain
 templates/de/html/admin/admin_config_order.tpl svneol=native#text/plain
index 3bcfe9778d4f446af26386721b4ca7d86085ff71..e80849d1ead7ddb72cce88f2e9ba3e438c4a1c3a 100644 (file)
 ./inc/modules/admin/what-chk_regs.php:2:// @DEPRECATED
 ./inc/modules/admin/what-config_admins.php:2:// @DEPRECATED
 ./inc/modules/admin/what-config_email.php:2:// @DEPRECATED
+./inc/modules/admin/what-config_networks.php:2:// @DEPRECATED
 ./inc/modules/member/what-earnings.php:2:// @DEPRECATED
 ./inc/modules/member/what-surfbar_book.php:2:// @DEPRECATED
 ./inc/modules/member/what-surfbar_start.php:2:// @DEPRECATED
 ./templates/de/html/admin/admin_config_email.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_home_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_home_settings.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_config_network.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_order_form.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_payouts_del_row.tpl:1:<!-- @DEPRECATED //-->
 ./templates/de/html/admin/admin_config_payouts_del.tpl:1:<!-- @DEPRECATED //-->
index 081839854308017926ec9e44e388c3528d2ef1b0..c8f497aa1d88fbb1a8da5f08f54396b69c733871 100644 (file)
@@ -161,8 +161,8 @@ INDEX (`sort`)",
                        'Translation of API responses, generic data, DO NOT ALTER!');
 
                // Data from the webmaster (you!)
-               addDropTableSql('network_config');
-               addCreateTableSql('network_config', "
+               addDropTableSql('network_api_config');
+               addCreateTableSql('network_api_config', "
 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `network_affiliate_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 `network_api_password` VARCHAR(255) NOT NULL DEFAULT '',
@@ -172,7 +172,7 @@ INDEX (`sort`)",
 PRIMARY KEY (`network_id`),
 UNIQUE INDEX `network_affiliate` (`network_id`,`network_affiliate_id`),
 UNIQUE INDEX `affiliate_site` (`network_affiliate_id`,`network_site_id`)",
-                       'Configuration data from the webmaster (you!)');
+                       'API configuration data');
 
                // Configuration data for e.g. reload-time
                addDropTableSql('network_types_config');
@@ -5019,7 +5019,7 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)",
 
                // Admin menu entries
                addAdminMenuSql('network',NULL,'Werbenetzwerke','Verwalten Sie hier Werbenetzwerke (API-Anbindung), versenden Sie deren Mails, oder &uuml;bernehmen Sie deren Textlinks und vieles mehr. <strong>VORSICHT:</strong> Das Einrichten von weiteren Werbenetzwerken ist nicht leicht, daf&uuml;r aber sehr flexibel! Sollte ein Netzwerk fehlen, so melden Sie dies bitte <a href="http://forum.mxchange.org/topic-462.html" target="_blank" title="Direktlink zum Forum">im Forum</a>!',4);
-               addAdminMenuSql('network','config_networks','API-Zugangsdaten','Stellen Sie Ihre Affiliate- Webseiten-Id und API-Passwort ein. Diese erhalten Sie aus dem jeweiligen Affiliate-Bereich des Werbenetzwerkes. Sollten Sie bei einem Werbenetzwerk noch nicht angemeldet sein, verwenden Sie bitte meinen Referal-Link dazu.',1);
+               addAdminMenuSql('network','config_network_api','API-Zugangsdaten','Stellen Sie Ihre Affiliate- Webseiten-Id und API-Passwort ein. Diese erhalten Sie aus dem jeweiligen Affiliate-Bereich des Werbenetzwerkes. Sollten Sie bei einem Werbenetzwerk noch nicht angemeldet sein, verwenden Sie bitte meinen Referal-Link dazu.',1);
                addAdminMenuSql('network','config_network_types','Werbearten','Stellen Sie hier Reload-Zeiten, Mindestauffenthalt und so weiter pro Werbeart und Werbenetzwerk ein. Es werden sonst Ausgangswerte (Mimimumwerte: 0, Maximumwerte: sehr gross, Erotik: aus) angenommen, die Sie meistens nicht wollen.',2);
                addAdminMenuSql('network','query_networks','APIs abfragen','Fragt alle eingestellten APIs ab. Die Ergebnisse werden dann f&uuml;r einen einstellbaren Zeitraum gecacht und nicht erneut angefordert.',3);
                addAdminMenuSql('network','config_network','Einstellungen','Stellen Sie generelle Einstellungen ein, die f&uuml;r alle Werbenetzwerke gelten, wie z.B. Cache-Erneuerungsinterval. Generell sind aber die Einstellungen in Ordnung, da z.B. sonst Ihre freien Abfragen beim Werbenetzwerk sich zu schnell abbauen.',4);
@@ -5043,7 +5043,7 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)",
                addDropTableSql('network_error_codes');
                addDropTableSql('network_error_types');
                addDropTableSql('network_api_translation');
-               addDropTableSql('network_config');
+               addDropTableSql('network_api_config');
                addDropTableSql('network_types_config');
                addDropTableSql('network_cache');
                addDropTableSql('network_reloads');
index 6d1b077da8ebaf297b0f44f4ad0c5a1cc792c7e5..bd18405b9f7472b614061098c1050157edc8ff51 100644 (file)
@@ -202,14 +202,14 @@ addMessages(array(
        'ADMIN_NETWORK_API_INDEX_TRANSLATION' => "Index-&Uuml;bersetzung",
        'ADMIN_NETWORK_API_INDEX_SORTING' => "Index-Reihenfolge",
        // Network configuration
-       'ADMIN_CONFIG_NETWORK_ENTER_NETWORK_AFFILIATE_ID' => "Ihre Affiliate oder User-Id",
-       'ADMIN_CONFIG_NETWORK_ENTER_NETWORK_API_PASSWORD' => "Ihr Interface-Kennwort",
-       'ADMIN_CONFIG_NETWORK_ENTER_NETWORK_SITE_ID' => "Webseiten-Id Ihres {?MT_WORD2?}",
-       'ADMIN_CONFIG_NETWORK_ENTER_NETWORK_QUERY_AMOUNT' => "Freie Interface-Abfragen t&auml;glich",
-       'ADMIN_CONFIG_NETWORK_SELECT_NETWORK_API_ACTIVE' => "Soll dieses Interface abgefragt werden?",
-       'ADMIN_CONFIG_NETWORK_TITLE' => "Einrichtung des API-Zugangs zum Werbenetzwerk <span class=\"data\">%s</span>:",
-       'ADMIN_CONFIG_NETWORK_SAVE_BUTTON' => "API-Konfiguration speichern",
-       'ADMIN_CONFIG_NETWORK_NOTE' => "Tragen Sie hier Ihre Interface-Zugangsdaten zum angzeigten Werbenetzwerk ein.",
+       'ADMIN_CONFIG_NETWORK_API_ENTER_AFFILIATE_ID' => "Ihre Affiliate oder User-Id",
+       'ADMIN_CONFIG_NETWORK_API_ENTER_API_PASSWORD' => "Ihr Interface-Kennwort",
+       'ADMIN_CONFIG_NETWORK_API_ENTER_SITE_ID' => "Webseiten-Id Ihres {?MT_WORD2?}",
+       'ADMIN_CONFIG_NETWORK_API_ENTER_QUERY_AMOUNT' => "Freie Interface-Abfragen t&auml;glich",
+       'ADMIN_CONFIG_NETWORK_API_SELECT_API_ACTIVE' => "Soll dieses Interface abgefragt werden?",
+       'ADMIN_CONFIG_NETWORK_API_TITLE' => "Einrichtung des API-Zugangs zum Werbenetzwerk <span class=\"data\">%s</span>:",
+       'ADMIN_CONFIG_NETWORK_API_SAVE_BUTTON' => "API-Konfiguration speichern",
+       'ADMIN_CONFIG_NETWORK_API_NOTE' => "Tragen Sie hier Ihre Interface-Zugangsdaten zum angzeigten Werbenetzwerk ein.",
        'ADMIN_NETWORK_API_CONFIG_SAVED' => "API-Konfiguration gespeichert.",
        'ADMIN_NETWORK_API_CONFIG_NOT_SAVED' => "API-Konfiguration NICHT gespeichert (keine &Auml;nderungen).",
        // Error codes
index 60e4740d89f1023004747954a756cb5a007ec008..46df1e13f1bcc4e48fd473b6f9064d5db007e1f2 100644 (file)
@@ -1297,10 +1297,10 @@ function doAdminNetworkProcessAddNetworkApiTranslation () {
 
 // Adds/update network API configuration
 function doAdminNetworkProcessConfigNetwork () {
-       // Check for an entry in network_config
+       // Check for an entry in network_api_config
        $entryCount = countSumTotalData(
                bigintval(getRequestElement('network')),
-               'network_config',
+               'network_api_config',
                'network_id',
                'network_id',
                true
@@ -1315,11 +1315,11 @@ function doAdminNetworkProcessConfigNetwork () {
        // Is there already an entry?
        if ($entryCount == 1) {
                // Generate SQL query
-               $SQL = getUpdateSqlFromArray(postRequestArray(), 'network_config', 'network_id', postRequestElement('network_id'), array('network_id'));
+               $SQL = getUpdateSqlFromArray(postRequestArray(), 'network_api_config', 'network_id', postRequestElement('network_id'), array('network_id'));
        } else {
                // Insert new entry
                $SQL = 'INSERT INTO
-       `{?_MYSQL_PREFIX?}_network_config`
+       `{?_MYSQL_PREFIX?}_network_api_config`
 (
        `' . implode('`,`', array_keys(postRequestArray())) . "`
 ) VALUES (
diff --git a/inc/modules/admin/what-config_network_api.php b/inc/modules/admin/what-config_network_api.php
new file mode 100644 (file)
index 0000000..60a1931
--- /dev/null
@@ -0,0 +1,125 @@
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL                                Start: 08/12/2011 *
+ * ===================                          Last change: 08/12/2011 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-config_network_api.php                      *
+ * -------------------------------------------------------------------- *
+ * Short description : API configuration for advertising networks       *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : API-Konfiguration zu den Werbenetzwerke          *
+ * -------------------------------------------------------------------- *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://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
+addYouAreHereLink('admin', __FILE__);
+
+// 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')) {
+       // Check all networks that doesn't have a configuration entry
+       $result = SQL_QUERY_ESC('SELECT
+       `network_id`,
+       `network_short_name`,
+       `network_title`,
+       `network_reflink`,
+       NULL AS `network_affiliate_id`,
+       NULL AS `network_api_password`,
+       NULL AS `network_site_id`,
+       NULL AS `network_query_amount`,
+       NULL AS `network_api_active`
+FROM
+       `{?_MYSQL_PREFIX?}_network_data`
+WHERE
+       `network_id`=%s
+LIMIT 1',
+               array(
+                       bigintval(getRequestElement('network'))
+               ), __FILE__, __LINE__);
+
+       // Do we have an entry?
+       if (SQL_NUMROWS($result) == 1) {
+               // Load data
+               $content = SQL_FETCHARRAY($result);
+
+               // Query for config table
+               $result_config = SQL_QUERY_ESC('SELECT
+       `network_affiliate_id`,
+       `network_api_password`,
+       `network_site_id`,
+       `network_query_amount`,
+       `network_api_active`
+FROM
+       `{?_MYSQL_PREFIX?}_network_api_config`
+WHERE
+       `network_id`=%s
+LIMIT 1',
+                       array(
+                               bigintval(getRequestElement('network'))
+                       ), __FUNCTION__, __LINE__);
+
+               // Do we have an entry?
+               if (SQL_NUMROWS($result_config) == 1) {
+                       // Load entries
+                       $content = merge_array($content, SQL_FETCHARRAY($result_config));
+               } // END - if
+
+               // Free result
+               SQL_FREERESULT($result_config);
+
+               // Load main template
+               loadTemplate('admin_config_network_api', false, $content);
+       } else {
+               // Please setup some networks first
+               displayMessage('{--ADMIN_NETWORK_DATA_MISSING--}');
+       }
+
+       // Free result
+       SQL_FREERESULT($result);
+} else {
+       // Generate network list for this script
+       outputHtml(generateAdminNetworkList());
+}
+
+// [EOF]
+?>
index 0ccdbd830ee88d36bbd4322559fec59a686cdf38..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,125 +1,3 @@
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 08/31/2010 *
- * ===================                          Last change: 08/31/2010 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : what-config_networks.php                         *
- * -------------------------------------------------------------------- *
- * Short description : Advertisement Network Configuration              *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Werbenetzwerkkonfiguration                       *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://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
-addYouAreHereLink('admin', __FILE__);
-
-// 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')) {
-       // Check all networks that doesn't have a configuration entry
-       $result = SQL_QUERY_ESC('SELECT
-       `network_id`,
-       `network_short_name`,
-       `network_title`,
-       `network_reflink`,
-       NULL AS `network_affiliate_id`,
-       NULL AS `network_api_password`,
-       NULL AS `network_site_id`,
-       NULL AS `network_query_amount`,
-       NULL AS `network_api_active`
-FROM
-       `{?_MYSQL_PREFIX?}_network_data`
-WHERE
-       `network_id`=%s
-LIMIT 1',
-               array(
-                       bigintval(getRequestElement('network'))
-               ), __FILE__, __LINE__);
-
-       // Do we have an entry?
-       if (SQL_NUMROWS($result) == 1) {
-               // Load data
-               $content = SQL_FETCHARRAY($result);
-
-               // Query for config table
-               $result_config = SQL_QUERY_ESC('SELECT
-       `network_affiliate_id`,
-       `network_api_password`,
-       `network_site_id`,
-       `network_query_amount`,
-       `network_api_active`
-FROM
-       `{?_MYSQL_PREFIX?}_network_config`
-WHERE
-       `network_id`=%s
-LIMIT 1',
-                       array(
-                               bigintval(getRequestElement('network'))
-                       ), __FUNCTION__, __LINE__);
-
-               // Do we have an entry?
-               if (SQL_NUMROWS($result_config) == 1) {
-                       // Load entries
-                       $content = merge_array($content, SQL_FETCHARRAY($result_config));
-               } // END - if
-
-               // Free result
-               SQL_FREERESULT($result_config);
-
-               // Load main template
-               loadTemplate('admin_config_network', false, $content);
-       } else {
-               // Please setup some networks first
-               displayMessage('{--ADMIN_NETWORK_DATA_MISSING--}');
-       }
-
-       // Free result
-       SQL_FREERESULT($result);
-} else {
-       // Generate network list for this script
-       outputHtml(generateAdminNetworkList());
-}
-
-// [EOF]
+// @DEPRECATED
 ?>
index c959ac5bb7244b2422b6e3ec1190606938435f52..11f5d85d80b1ca4d16cf4c19e14af24e5ec2a60f 100644 (file)
@@ -1,53 +1 @@
-<div align="center">
-<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=config_networks&amp;do=config_network&amp;network=$content[network_id]%}" method="post">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
-<tr>
-       <td class="table_header bottom" colspan="2" align="center">
-               <strong>{%message,ADMIN_CONFIG_NETWORK_TITLE=<a href="$content[network_reflink]" target="_blank" title="$content[network_title]">$content[network_title]</a>%}</strong>
-       </td>
-</tr>
-<tr>
-       <td align="center" class="{%template,ColorSwitch%} bottom right" width="50%">
-               {--ADMIN_CONFIG_NETWORK_ENTER_NETWORK_AFFILIATE_ID--}:<br />
-               <input type="text" class="form_field" name="network_affiliate_id" size="5" value="$content[network_affiliate_id]" />
-               <div class="tiny">($content[network_title])</div>
-       </td>
-       <td align="center" class="{%template,ColorSwitch%} bottom" width="50%">
-               {--ADMIN_CONFIG_NETWORK_ENTER_NETWORK_SITE_ID--}:<br />
-               <input type="text" class="form_field" name="network_site_id" size="5" value="$content[network_site_id]" />
-               <div class="tiny">($content[network_title])</div>
-       </td>
-</tr>
-<tr>
-       <td align="center" class="{%template,ColorSwitch%} bottom right" width="50%">
-               {--ADMIN_CONFIG_NETWORK_ENTER_NETWORK_API_PASSWORD--}:<br />
-               <input type="text" class="form_field" name="network_api_password" size="20" value="$content[network_api_password]" />
-               <div class="tiny">($content[network_title])</div>
-       </td>
-       <td align="center" class="{%template,ColorSwitch%} bottom" width="50%">
-               {--ADMIN_CONFIG_NETWORK_ENTER_NETWORK_QUERY_AMOUNT--}:<br />
-               <input type="text" class="form_field" name="network_query_amount" size="5" value="$content[network_query_amount]" />
-               <div class="tiny">($content[network_title])</div>
-       </td>
-</tr>
-<tr>
-       <td align="center" class="{%template,ColorSwitch%} bottom" colspan="2">
-               {--ADMIN_CONFIG_NETWORK_SELECT_NETWORK_API_ACTIVE--}:<br />
-               <select class="form_field" name="network_api_active" size="1">
-                       {%pipe,generateNetworkApiActiveOptions=$content[network_api_active]%}
-               </select>
-       </td>
-</tr>
-<tr>
-       <td class="table_footer" colspan="2" align="center">
-               <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
-               <input type="submit" class="form_submit" name="ok" value="{--ADMIN_CONFIG_NETWORK_SAVE_BUTTON--}" />
-       </td>
-</tr>
-</table>
-</form>
-</div>
-
-<div class="notice">
-       {--ADMIN_CONFIG_NETWORK_NOTE--}
-</div>
+<!-- @DEPRECATED //-->
diff --git a/templates/de/html/admin/admin_config_network_api.tpl b/templates/de/html/admin/admin_config_network_api.tpl
new file mode 100644 (file)
index 0000000..d428b89
--- /dev/null
@@ -0,0 +1,53 @@
+<div align="center">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&amp;what=config_networks&amp;do=config_network_api&amp;network=$content[network_id]%}" method="post">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+<tr>
+       <td class="table_header bottom" colspan="2" align="center">
+               <strong>{%message,ADMIN_CONFIG_NETWORK_API_TITLE=<a href="$content[network_reflink]" target="_blank" title="$content[network_title]">$content[network_title]</a>%}</strong>
+       </td>
+</tr>
+<tr>
+       <td align="center" class="{%template,ColorSwitch%} bottom right" width="50%">
+               {--ADMIN_CONFIG_NETWORK_API_ENTER_AFFILIATE_ID--}:<br />
+               <input type="text" class="form_field" name="network_affiliate_id" size="5" value="$content[network_affiliate_id]" />
+               <div class="tiny">($content[network_title])</div>
+       </td>
+       <td align="center" class="{%template,ColorSwitch%} bottom" width="50%">
+               {--ADMIN_CONFIG_NETWORK_API_ENTER_SITE_ID--}:<br />
+               <input type="text" class="form_field" name="network_site_id" size="5" value="$content[network_site_id]" />
+               <div class="tiny">($content[network_title])</div>
+       </td>
+</tr>
+<tr>
+       <td align="center" class="{%template,ColorSwitch%} bottom right" width="50%">
+               {--ADMIN_CONFIG_NETWORK_API_ENTER_API_PASSWORD--}:<br />
+               <input type="text" class="form_field" name="network_api_password" size="20" value="$content[network_api_password]" />
+               <div class="tiny">($content[network_title])</div>
+       </td>
+       <td align="center" class="{%template,ColorSwitch%} bottom" width="50%">
+               {--ADMIN_CONFIG_NETWORK_API_ENTER_QUERY_AMOUNT--}:<br />
+               <input type="text" class="form_field" name="network_query_amount" size="5" value="$content[network_query_amount]" />
+               <div class="tiny">($content[network_title])</div>
+       </td>
+</tr>
+<tr>
+       <td align="center" class="{%template,ColorSwitch%} bottom" colspan="2">
+               {--ADMIN_CONFIG_NETWORK_API_SELECT_API_ACTIVE--}:<br />
+               <select class="form_field" name="network_api_active" size="1">
+                       {%pipe,generateNetworkApiActiveOptions=$content[network_api_active]%}
+               </select>
+       </td>
+</tr>
+<tr>
+       <td class="table_footer" colspan="2" align="center">
+               <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
+               <input type="submit" class="form_submit" name="ok" value="{--ADMIN_CONFIG_NETWORK_API_SAVE_BUTTON--}" />
+       </td>
+</tr>
+</table>
+</form>
+</div>
+
+<div class="notice">
+       {--ADMIN_CONFIG_NETWORK_API_NOTE--}
+</div>