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
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
./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 //-->
'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 '',
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');
// Admin menu entries
addAdminMenuSql('network',NULL,'Werbenetzwerke','Verwalten Sie hier Werbenetzwerke (API-Anbindung), versenden Sie deren Mails, oder übernehmen Sie deren Textlinks und vieles mehr. <strong>VORSICHT:</strong> Das Einrichten von weiteren Werbenetzwerken ist nicht leicht, dafü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ür einen einstellbaren Zeitraum gecacht und nicht erneut angefordert.',3);
addAdminMenuSql('network','config_network','Einstellungen','Stellen Sie generelle Einstellungen ein, die fü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);
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');
'ADMIN_NETWORK_API_INDEX_TRANSLATION' => "Index-Ü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ä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ä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 Änderungen).",
// Error codes
// 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
// 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 (
--- /dev/null
+<?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]
+?>
<?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
?>
-<div align="center">
-<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&what=config_networks&do=config_network&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 //-->
--- /dev/null
+<div align="center">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&what=config_networks&do=config_network_api&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>