./inc/autopurge/purge-tsks.php:2:// @DEPRECATED
./inc/autopurge/purge-unconfirmed.php:2:// @DEPRECATED
./inc/daily/daily_engine.php:2:// @DEPRECATED
+./inc/extensions/ext-iso3166.php:2:// @DEPRECATED
./inc/gen_refback.php:2:// @DEPRECATED
./inc/loader/load_cache-admin.php:2:// @DEPRECATED
./inc/loader/load_cache-config.php:2:// @DEPRECATED
./templates/de/html/admin/admin_reset_pass_done.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_send_reset_link.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/beg/beg_banner.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/ext/ext_iso3166.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/guest/guest_active_row.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/guest/guest_active_table.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/guest/guest_no_rallyes.tpl:1:<!-- @DEPRECATED //-->
<?php
-/************************************************************************
- * Mailer v0.2.1-FINAL Start: 12/08/2008 *
- * =================== Last change: 12/08/2008 *
- * *
- * -------------------------------------------------------------------- *
- * File : ext-iso3166.php *
- * -------------------------------------------------------------------- *
- * Short description : Country code list ISO3166 *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung : Laendercode-Liste ISO3166 *
- * -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2008 by Wolfgang Stelzhammer *
- * 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')) {
- die();
-} // END - if
-
-// Version number
-setThisExtensionVersion('0.0.1');
-
-// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1'));
-
-// This extension is deprecated!
-setExtensionDeprecated('Y');
-
-switch (getExtensionMode()) {
- case 'register': // Do stuff when installation is running
- break;
-
- case 'remove': // Do stuff when removing extension
- // SQL commands to run
- addExtensionSql("DELETE FROM `{?_MYSQL_PREFIX?}_countries` WHERE provider = 'ext-iso3166';");
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_countries` DROP `provider`;");
- break;
-
- case 'activate': // Do stuff when admin activates this extension
- // SQL commands to run
- break;
-
- case 'deactivate': // Do stuff when admin deactivates this extension
- // SQL commands to run
- break;
-
- case 'update': // Update an extension
- switch (getCurrentExtensionVersion()) {
- case '0.0.1': // SQL queries for v0.0.1
- // Update notes (these will be set as task text!)
- setExtensionUpdateNotes("Nicht mehr benötigtes Update.");
- break;
- } // END - switch
- break;
-
- case 'modify': // When the extension got modified
- break;
-
- case 'test': // For testing purposes
- break;
-
- case 'init': // Do stuff when extension is initialized
- break;
-
- default: // Unknown extension mode
- logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
- break;
-} // END - switch
-
-// [EOF]
+// @DEPRECATED
?>
`network_api_password` VARCHAR(255) NOT NULL DEFAULT '',
`network_site_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`network_query_amount` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
-`network_active` ENUM('Y','N') NOT NULL DEFAULT 'Y',
+`network_api_active` ENUM('Y','N') NOT NULL DEFAULT 'Y',
PRIMARY KEY (`network_id`),
UNIQUE INDEX `network_affiliate` (`network_id`,`network_affiliate_id`),
UNIQUE INDEX `affiliate_site` (`network_affiliate_id`,`network_site_id`)",
// 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-Daten','Stellen Sie Ihre Affiliate- Webseiten-Id und API-Passwort ein. Diese erhalten Sie zu über 99% aus dem jeweiligen Zugangsbereich des Anbieters. Sollten Sie bei einem Netzwerk noch nicht angemeldet sein, verwenden Sie bitte meinen Referal-Link.',1);
+ 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_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);
'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_ENTER_NETWORK_ACTIVE' => "Soll dieses Interface abgefragt werden?",
+ '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.",
return $GLOBALS[__FUNCTION__][$default];
}
-// Generates an option list of network_active
-function generateNetworkActiveOptions ($default = '') {
+// Generates an option list of network_api_active
+function generateNetworkApiActiveOptions ($default = '') {
// Do we have cache?
if (!isset($GLOBALS[__FUNCTION__][$default])) {
// Generate the list
// Do we have a network selected?
if (isGetRequestElementSet('network')) {
// Check all networks that doesn't have a configuration entry
- $result = SQL_QUERY_ESC("SELECT
- d.`network_id`, d.`network_short_name`, d.`network_title`, d.`network_reflink`,
- c.`network_affiliate_id`, c.`network_api_password`, c.`network_site_id`, c.`network_query_amount`, c.`network_active`
+ $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` AS `d`
-LEFT JOIN
- `{?_MYSQL_PREFIX?}_network_config` AS `c`
-ON
- d.`network_id`=c.`network_id`
+ `{?_MYSQL_PREFIX?}_network_data`
WHERE
- d.`network_id`=%s
-ORDER BY
- d.`network_short_name` ASC",
+ `network_id`=%s
+LIMIT 1',
array(
bigintval(getRequestElement('network'))
), __FILE__, __LINE__);
- // Do we have entries?
- if (!SQL_HASZERONUMS($result)) {
+ // Do we have an entry?
+ if (SQL_NUMROWS($result) == 1) {
// Load data
$content = SQL_FETCHARRAY($result);
- // Fix empty 'active' to 'yes'
- if (is_null($content['network_active'])) {
- // Fix it for our API function
- $content['network_active'] = 'Y';
+ // 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 {
<div align="center">
-<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&what=config_networks&do=config_networks%}" method="post">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&what=config_networks&do=config_network%}" method="post">
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td class="table_header bottom" colspan="2" align="center">
<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[$content[network_id]" size="5" value="$content[network_affiliate_id]" />
+ <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[$content[network_id]" size="5" value="$content[network_site_id]" />
+ <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[$content[network_id]" size="20" value="$content[network_api_password]" />
+ <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[$content[network_id]" size="5" value="$content[network_query_amount]" />
+ <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_ENTER_NETWORK_ACTIVE--}:<br />
- <select class="form_field" name="network_active[$content[network_id]" size="1">
- {%pipe,generateNetworkActiveOptions=$content[network_active]%}
+ {--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>
-<div class="para">
- Diese Erweiterung wird nicht mehr weiter gepflegt. Bitte verwenden Sie
- <strong>ext-country</strong> für Ländercodes.
-</div>
+<!-- @DEPRECATED //-->