./inc/libs/mailid_functions.php:123: // @TODO Rewrite these blocks to filter
./inc/libs/mailid_functions.php:47: // @TODO Rewrite this to a dynamic include or so
./inc/libs/mailid_functions.php:93: // @TODO Rewrite this to a filter
-./inc/libs/network_functions.php:1186: // @TODO Implement this function, don't forget to set HTTP status back to '200 OK' if everything went fine
-./inc/libs/network_functions.php:1192: // @TODO Implement this function, don't forget to set HTTP status back to '200 OK' if everything went fine
+./inc/libs/network_functions.php:1110: // @TODO Implement this function, don't forget to set HTTP status back to '200 OK' if everything went fine
+./inc/libs/network_functions.php:1116: // @TODO Implement this function, don't forget to set HTTP status back to '200 OK' if everything went fine
./inc/libs/order_functions.php:46: // @TODO Move this array into a filter
./inc/libs/rallye_functions.php:771:// @TODO This function does not load min_users, min_prices, please encapsulate loading rallye data with e.g. getRallyeDataFromId()
./inc/libs/rallye_functions.php:838: $EXPIRE = 3; // @TODO The hard-coded value...
./inc/modules/admin/what-config_rallye_prices.php:2:// @DEPRECATED
./inc/modules/admin/what-config_reg.php:2:// @DEPRECATED
./inc/modules/admin/what-del_task.php:2:// @DEPRECATED
+./inc/modules/admin/what-list_network_vcheck_params.php:2:// @DEPRECATED
./inc/modules/admin/what-list_newsletter.php:2:// @DEPRECATED
./inc/modules/admin/what-list_norefs.php:2:// @DEPRECATED
./inc/modules/admin/what-newsletter.php:2:// @DEPRECATED
./inc/stats_bonus.php:2:// @DEPRECATED
./inc/template.php:2:// @DEPRECATED
./mailid_top.php:2:// @DEPRECATED
+./templates/de/html/admin/admin_add_network_vcheck_param.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_add_reflevel.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_add_reflvl.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_add_shop_cat.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_config_transfer_pro.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_edit_reflevel_row.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_edit_reflevel.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_export_network_vcheck_params.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_extensions_installed.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_extensions_list.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_extensions_search.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_forum_edit_del.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_forum_edit_forum.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_holiday_task.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_list_network_vcheck_params_row.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_list_network_vcheck_params.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_list_reflevel_row.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_list_reflevel.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_list_unconfirmed_header.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_mods_header_stats.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_mods_list_row.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_mods_list.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/admin/admin_network_vcheck_param_added.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_new_ext.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_newsletter_tsk.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/admin/admin_online_footer.tpl:1:<!-- @DEPRECATED //-->
'ADMIN_NETWORK_REQUEST_PARAMETER_NOT_ADDED' => "Der Abfrageparameter <span class=\"data\">%s</span> wurde nicht hinzugefügt.",
'ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_CHANGED' => "Es wurden keine Änderungen an den Abfrageparametern ausgeführt.",
'ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_REMOVED' => "Es wurden keine Abfrageparameter gelöscht.",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_404' => "Es wurden keine VCheck-Abfrageparameter für das Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_ALREADY_ADDED' => "Ein VCheck-Abfrageparameter <span class=\"data\">%s</span> existiert bereits.",
'ADMIN_NETWORK_ARRAY_TRANSLATION_404' => "Es wurden keine Übersetzungen zum Antwort-Array zum Werbenetzwerk <span class=\"data\">%s</span> gefunden.",
'ADMIN_NETWORK_ARRAY_TRANSLATION_NOT_ADDED' => "Die Array-Element-Übersetzung <span class=\"data\">%s</span> wurde nicht hinzugefügt.",
'ADMIN_NETWORK_ARRAY_TRANSLATION_ALREADY_ADDED' => "Eine Array-Element-Übersetzung <span class=\"data\">%s</span> existiert bereits.",
'ADMIN_LIST_NETWORK_REQUEST_PARAMETER_TITLE' => "Abfrageparameter auflisten und verwalten",
'ADMIN_EDIT_NETWORK_REQUEST_PARAMETER_TITLE' => "Abfrageparameter editieren",
'ADMIN_DELETE_NETWORK_REQUEST_PARAMETER_TITLE' => "Abfrageparameter löschen",
- 'ADMIN_LIST_NETWORK_VCHECK_PARAMETER_TITLE' => "VCheck-Abfrageparameter auflisten und verwalten",
'ADMIN_ADD_NETWORK_ARRAY_TRANSLATION_TITLE' => "Werbenetzwerk verwalten - Neue Array-Element-Übersetzung hinzufügen",
'ADMIN_LIST_NETWORK_ARRAY_TRANSLATION_TITLE' => "Array-Element-Übersetzungen auflisten und verwalten",
'ADMIN_EDIT_NETWORK_ARRAY_TRANSLATION_TITLE' => "Array-Element-Übersetzungen editeren",
'ADMIN_SHOW_CONFIG_NETWORK_HANDLER_TYPE_TITLE' => "Eingerichteter Werbeart-Handler - <span class=\"data\">{%%pipe,translateNetworkTypeHandler=%s%%}</span>",
'ADMIN_CONFIG_NETWORK_HANDLER_TYPES_TITLE' => "Werbeart-Handler einrichten",
'ADMIN_EDIT_CONFIG_NETWORK_HANDLER_TYPE_TITLE' => "Werbeart-Handler ändern - <span class=\"data\">{%%pipe,translateNetworkTypeHandler=%s%%}</span>",
- 'ADMIN_ADD_NETWORK_VCHECK_PARAMETER_TITLE' => "Werbenetzwerk verwalten - Neuen VCheck-Parameter hinzufügen",
// - Link titles
'ADMIN_NETWORK_API_CONFIG_LINK_TITLE' => "Weiter zur API-Konfiguration",
'ADMIN_NETWORK_TYPE_HANDLER_CONFIG_LINK_TITLE' => "Weiter zur Werbart-Handler-Konfiguration",
'ADMIN_ADD_CONFIG_NETWORK_HANDLER_TYPE_FORM_SUBMIT' => "Werbeart-Handlerdaten hinzufügen",
'ADMIN_EDIT_CONFIG_NETWORK_HANDLER_TYPE_SUBMIT' => "Konfiguration für {%%pipe,translateNetworkTypeHandler=%s%%} ändern",
'ADMIN_EDIT_CONFIG_NETWORK_HANDLER_TYPE_FORM_SUBMIT' => "Werbeart-Handler ändern",
- 'ADMIN_ADD_NETWORK_VCHECK_PARAMETER_SUBMIT' => "VCheck-Parameter hinzufügen",
// - Success titles
'ADMIN_NETWORK_ADDED_TITLE' => "Allgemeine Werbenetzwerkdaten hinzugefügt",
'ADMIN_NETWORK_TYPE_HANDLER_ADDED_TITLE' => "Werbeart-Handler hinzugefügt",
'ADMIN_NETWORK_REQUEST_PARAM_ADDED_TITLE' => "Abfrageparameter hinzugefügt",
- 'ADMIN_NETWORK_VCHECK_PARAM_ADDED_TITLE' => "VCheck-Abfrageparameter hinzugefügt",
'ADMIN_NETWORK_ARRAY_TRANSLATION_ADDED_TITLE' => "Array-Element-Übersetzung hinzugefügt",
// - Success nots
'ADMIN_NETWORK_UPDATED' => "Es wurden <span class=\"data\">%s</span> Einträge in den allgemeinen Daten aktualisiert.",
'ADMIN_LIST_NETWORK_TYPE_HANDLER_NOTICE' => "<strong>Hinweise:</strong> Seien Sie mit dem Löschen und Editieren von Werbeart-Handlern sehr vorsichtig. Sie sollten hierzu Rücksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten. Dokumentation zu den Platzhaltern (%FOO%, %BAR% usw.) finden Sie in der Dokumentation <strong>DOCs/de/network/README.txt</strong>.",
'ADMIN_ADD_NETWORK_REQUEST_PARAMETER_NOTICE' => "<strong>Hinweise:</strong> Fügen Sie hier weitere Abfrageparameter dem ausgwä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.",
'ADMIN_LIST_NETWORK_REQUEST_PARAMETER_NOTICE' => "<strong>Hinweise:</strong> Seien Sie mit dem Löschen und Editieren von Abfrageparameter sehr vorsichtig. Sie sollten hierzu Rücksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten. Dokumentation zu den Abfragenamen (%FOO%, %BAR% usw.) finden Sie in der Dokumentation <strong>DOCs/de/network/README.txt</strong>.",
- 'ADMIN_LIST_NETWORK_VCHECK_PARAMETER_NOTICE' => "<strong>Hinweise:</strong> Seien Sie mit dem Löschen und Editieren von VCheck-Abfrageparameter sehr vorsichtig. Sie sollten hierzu Rücksprache <a href=\"http://forum.mxchange.org/forum-43.html\" target=\"_blank\" title=\"Direktlink zum Forum\">im Forum</a> halten.",
'ADMIN_ADD_NETWORK_ARRAY_TRANSLATION_NOTICE' => "<strong>Hinweise:</strong> Fügen Sie hier weitere Array-Element-Übersetzungen zu dem ausgewählten Netzwerk und Werbeart-Handler ein.",
'ADMIN_LIST_NETWORK_ARRAY_TRANSLATION_NOTICE' => "<strong>Hinweise:</strong> Seien Sie mit dem Editieren bzw. Löschen von Array-Elementen sehr vorsichtig, die API-Abfrage köntte unerwartete Ergebnisse bzw. Fehler zurückliefern.",
'ADMIN_NETWORK_REQUIRE_ID_CARD_NOTICE' => "<strong>Hinweise:</strong> Unter <strong>{--ADMIN_NETWORK_REQUIRE_ID_CARD--}</strong> ist das durch den Webnetzwerkbetreiber Verlangen einer Kopie des Personalausweises bzw. Gewerbescheins zu verstehen. Mehr dazu erfahen Sie <a href=\"http://forum.mxchange.org/topic-499.html\" rel=\"external\" target=\"_blank\">im Forum</a>.",
'ADMIN_CONFIG_NETWORK_HANDLER_TYPES_NOTICE' => "<strong>Hinweise:</strong> Für jede Werbeart sind unterschiedliche Reloadsperren, Mindestauffenthalte und mehr einstellbar. Damit ist es möglich, dass Sie z.B. für Forced-Banner eine kürzere/längere Reloadsperre eingeben können als für Paidmails.",
'ADMIN_ADD_CONFIG_NETWORK_HANDLER_TYPE_FORM_NOTICE' => "<strong>Hinweise:</strong>Bitte beachten Sie, dass Sie nicht für jedes Werbenetzwerk jede Einstellung etwas einstellen müssen. Dies hängt vom jeweiligen Werbenetzwerk ab. Bitte beachten Sie auch, dass es sich beim Feld <strong>{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_ALLOW_EROTIC--}</strong> um ein frei eingebares Feld handelt. Den genauen Wert entnehmen Sie bitte derzeit aus Ihrem Affiliate-Bereich, da dieser nicht bei allen Werbenetzwerken einheitlich ist. Sollte das Werbenetzwerk Ihnen einen Wert nicht angeben, so lassen Sie das entsprechende Feld einfach leer. Stellen Sie unter <strong>{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MAX_RELOAD_TIME_UNMASKED--}</strong> nur Werte ein, die auch vom Werbenetzwerk unterstützt werden. Die meisten werden zwar Stunden anbieten, es sollen aber auch Werbenetzwerke mit anderen Reloadsperreinheiten als Stunden unsterstützt werden. Später bei der API-Abfrage wird der eingestellte Wert auf die angezeigte Zeiteinheit umgerechnet und gekürzt. Die Einstellung <strong>{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_MEDIA_SIZE--}</strong> muss nur für Surfbar-Handler gestetzt werden, da dieser nicht zwischen den einzelnen Formatgrößen weiter unterscheidet.",
'ADMIN_EDIT_CONFIG_NETWORK_HANDLER_TYPE_FORM_NOTICE' => "<strong>Hinweise:</strong> {--ADMIN_ADD_CONFIG_NETWORK_HANDLER_TYPE_FORM_NOTICE--}",
- 'ADMIN_ADD_NETWORK_VCHECK_PARAMETER_NOTICE' => "<strong>Hinweise:</strong> Fügen Sie hier weitere VCheck-Abfrageparameter dem ausgewählten Werbenetzwerk hinzu, falls dieses den Vergütungscheck unterstützt, anderfalls fügen Sie einfach keine VCheck-Parameter hinzu.",
// - Other messages
'ADMIN_NETWORK_REQUEST_PARAMETER_LIST_LIMITED_TO_TYPE' => "Es werden nur die Abfrageparameter des ausgewählten Werbeart-Handlers angezeigt.",
'ADMIN_LIST_NETWORK_ARRAY_TRANSLATION_LIMITED_TO_TYPE' => "Es werden nur die Array-Element-Übersetzungen des ausgewählten Werbeart-Handlers angezeigt.",
'ADMIN_NETWORK_REQUEST_PARAMETER_EROTIC' => "Erotik erlaubt",
'ADMIN_NETWORK_REQUEST_PARAMETER_EXTRA' => "Extra-Parameter",
'ADMIN_NETWORK_REQUEST_PARAMETER_COUNTRY' => "Ländercode",
- // - Vcheck request parameter
- 'ADMIN_NETWORK_VCHECK_PARAMETER_KEY' => "Abfragename:",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_VALUE' => "Abfrageparameter:",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_DEFAULT' => "Ausgangswert:",
- // - Vcheck request parameter keys
- 'ADMIN_NETWORK_VCHECK_PARAMETER_NETWORK_KEY' => "Zugangsschlüssel",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_PAYMENT' => "Vergütung (Wert)",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_REMOTE_ADDRESS' => "IP-Nummer",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_CAMPAIGN_ID' => "Kampagnen-Id",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_TYPE' => "Werbeart",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_NETWORK_NAME' => "Name d. Werbenetzwerks",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_EXTRA_VALUE1' => "Zusatzparameter 1",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_EXTRA_VALUE2' => "Zusatzparameter 2",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_EXTRA_VALUE3' => "Zusatzparameter 3",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_EXTRA_VALUE4' => "Zusatzparameter 4",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_SITE_ID' => "Seiten-Id",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_STATUS' => "Status der Vergütung",
- 'ADMIN_NETWORK_VCHECK_PARAMETER_REASON' => "Grund des Fehlers",
// - API array index translation
'ADMIN_NETWORK_ARRAY_TRANSLATION_INDEX' => "Array-Index:",
'ADMIN_SELECT_NETWORK_ARRAY_INDEX_TRANSLATION' => "Index-Übersetzung auswählen:",
'ADMIN_EXPORT_NETWORK_HANDLER_TYPES_TITLE' => "Tabellenexport - Werbeart-Handlerdaten",
'ADMIN_EXPORT_NETWORK_REQUEST_PARAMS_LINK' => "Abfrageparameter des aktuell angezeigten Werbenetzwerkes exportieren",
'ADMIN_EXPORT_NETWORK_REQUEST_PARAMS_TITLE' => "Tabellenexport - Abfrage-Parameter",
- 'ADMIN_EXPORT_NETWORK_VCHECK_PARAMS_LINK' => "VCheck-Abfrageparameter des aktuell angezeigten Werbenetzwerkes exportieren",
- 'ADMIN_EXPORT_NETWORK_VCHECK_PARAMS_TITLE' => "Tabellenexport - VCheck-Abfrageparameter",
'ADMIN_EXPORT_NETWORK_ARRAY_TRANSLATION_LINK' => "Antwort-Array-Elemente des aktuell angezeigten Werbenetzwerkes exportieren",
'ADMIN_EXPORT_NETWORK_ARRAY_TRANSLATION_TITLE' => "Tabellenexport - Arrayfeldübersetzungen",
// Querying APIs - error message
}
// "Getter" for 'network_activated' column depending on current administrator's expert setting
-function getNetworkActivatedColumn ($whereAnd = 'WHERE', $table = '', $addSql = '') {
+function getNetworkActivatedColumn ($whereAnd = 'WHERE', $table = '') {
// Is there cache?
if (!isset($GLOBALS[__FUNCTION__][$whereAnd][$table])) {
// Default is exclude deactivated networks
- $GLOBALS[__FUNCTION__][$whereAnd][$table] = ' ' . $whereAnd . ' ' . $table . "`network_active`='Y'" . $addSql;
+ $GLOBALS[__FUNCTION__][$whereAnd][$table] = ' ' . $whereAnd . ' ' . $table . "`network_active`='Y'";
// Is the export setting on and debug mode enabled?
if ((isAdminsExpertSettingEnabled()) && (isDebugModeEnabled())) {
// Checks whether the given network type is already used (valid)
function isNetworkTypeHandleValid ($type, $networkId) {
- // Query for it
- $result = SQL_QUERY_ESC("SELECT `network_type_id` FROM `{?_MYSQL_PREFIX?}_network_types` WHERE `network_id`=%s AND `network_type_handler`='%s' LIMIT 1",
- array(
- $networkId,
- $type
- ), __FUNCTION__, __LINE__);
-
- // Does it exist?
- $isValid = (SQL_NUMROWS($result) == 1);
-
- // Free result
- SQL_FREERESULT($result);
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__][$networkId][$type])) {
+ // Does it exist?
+ $GLOBALS[__FUNCTION__][$networkId][$type] = (countSumTotalData(bigintval($networkid), 'network_types', 'network_type_id', 'network_id', TRUE, sprintf(" AND `network_type_handler`='%s'", SQL_ESCAPE($type))) == 1);
+ } // END - if
// Return result
- return $isValid;
+ return $GLOBALS[__FUNCTION__][$networkId][$type];
}
// Checks whether the given network request parameter is already used (valid)
-function isNetworkRequestElementValid ($key, $type, $networkId) {
- // Query for it
- $result = SQL_QUERY_ESC("SELECT `network_request_param_id` FROM `{?_MYSQL_PREFIX?}_network_request_params` WHERE `network_id`=%s AND `network_type_id`=%s AND `network_request_param_key`='%s' LIMIT 1",
- array(
- $networkId,
- $type,
- $key
- ), __FUNCTION__, __LINE__);
-
- // Does it exist?
- $isValid = (SQL_NUMROWS($result) == 1);
-
- // Free result
- SQL_FREERESULT($result);
-
- // Return result
- return $isValid;
-}
-
-// Checks whether the given vcheck request parameter is already used (valid)
-function isNetworkVcheckElementValid ($key, $networkId) {
- // Query for it
- $result = SQL_QUERY_ESC("SELECT `network_vcheck_param_id` FROM `{?_MYSQL_PREFIX?}_network_vcheck_params` WHERE `network_id`=%s AND `network_vcheck_param_key`='%s' LIMIT 1",
- array(
- $networkId,
- $key
- ), __FUNCTION__, __LINE__);
-
- // Does it exist?
- $isValid = (SQL_NUMROWS($result) == 1);
-
- // Free result
- SQL_FREERESULT($result);
+function isNetworkRequestElementValid ($key, $networkTypeId, $networkId) {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key])) {
+ // Does it exist?
+ $GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key] = (countSumTotalData(bigintval($networkId), 'network_request_params', 'network_id', 'network_request_param_id', 'network_id', TRUE, sprintf(" AND `network_type_id`=%s AND `network_request_param_key`='%s'", bigintval($networkTypeId), SQL_ESCAPE($key))) == 1);
+ } // END - if
// Return result
- return $isValid;
+ return $GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key];
}
// Checks whether the given network API array translation
-function isNetworkArrayTranslationValid ($key, $type, $networkId) {
- // Query for it
- $result = SQL_QUERY_ESC("SELECT `network_array_id` FROM `{?_MYSQL_PREFIX?}_network_array_translation` WHERE `network_id`=%s AND `network_type_id`=%s AND `network_array_index`='%s' LIMIT 1",
- array(
- $networkId,
- $type,
- $key
- ), __FUNCTION__, __LINE__);
-
- // Does it exist?
- $isValid = (SQL_NUMROWS($result) == 1);
-
- // Free result
- SQL_FREERESULT($result);
+function isNetworkArrayTranslationValid ($key, $networkTypeId, $networkId) {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key])) {
+ // Does it exist?
+ $GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key] = (countSumTotalData(bigintval($networkId), 'network_array_translation', 'network_array_id', 'network_id', TRUE, sprintf(" AND `network_type_id`=%s AND `network_array_index`='%s'", bigintval($networkTypeId), SQL_ESCAPE($key))) == 1);
+ } // END - if
// Return result
- return $isValid;
+ return $GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key];
}
// "Getter" for a network's data by provided id number
`network_active`
FROM
`{?_MYSQL_PREFIX?}_network_data`
-' . getNetworkActivatedColumn('WHERE', '', $addSql) . '
+' . getNetworkActivatedColumn('WHERE') . '
ORDER BY
`network_short_name` ASC', __FUNCTION__, __LINE__);
if (((($includeConfigured === FALSE) && (isNetworkApiConfigured($row['network_id']))) || (($includeUnconfigured === FALSE) && (!isNetworkApiConfigured($row['network_id'])))) && ($separated === FALSE)) {
// Skip this entry
continue;
- } // END - if
+ } elseif ((!empty($addSql)) && (
// Add entry
$rows[$row['network_id']] = $row;
return $GLOBALS[__FUNCTION__];
}
-// Generates an options list for vcheck request keys
-function generateNetworkVcheckKeyOptions () {
- // Is it cached?
- if (!isset($GLOBALS[__FUNCTION__])) {
- // Generate and cache it
- $GLOBALS[__FUNCTION__] = generateOptions(
- '/ARRAY/',
- array(
- 'network_key',
- 'site_id',
- 'payment',
- 'remote_address',
- 'campaign_id',
- 'status',
- 'reason',
- 'type',
- 'network_name',
- 'extra_value1',
- 'extra_value2',
- 'extra_value3',
- 'extra_value4',
- ),
- array(),
- '',
- '', '',
- $GLOBALS['network_vcheck_params_disabled'],
- 'translateNetworkVcheckParameterKey'
- );
- } // END - if
-
- // Return content
- return $GLOBALS[__FUNCTION__];
-}
-
// Generator (somewhat getter) for (return) array translation
function generateNetworkTranslationOptions ($default = '') {
// Is it cached?
}
// Checks if the given network is configured by looking its API configuration entry up
-function isNetworkApiConfigured ($networkId) {
+function isNetworkApiConfigured ($networkId, $addSql = '') {
// Is there cache?
if (!isset($GLOBALS[__FUNCTION__][$networkId])) {
// Check for an entry in network_api_config
return '{--' . $messageId . '--}';
}
-// Translates vheck request parameter
-function translateNetworkVcheckParameterKey ($param) {
- // Generate id
- $messageId = 'ADMIN_NETWORK_VCHECK_PARAMETER_' . strtoupper($param) . '';
-
- // Is the message id there?
- if (!isMessageIdValid($messageId)) {
- // Not valid param
- reportBug(__FUNCTION__, __LINE__, 'param=' . $param . ' is invalid.');
- } // END - if
-
- // Return message id
- return '{--' . $messageId . '--}';
-}
-
// Translate text-encoding
function translateNetworkTextEncoding ($encoding) {
// Generate id
}
}
-// Adds a vheck request parameter to given network
-function doAdminNetworkProcessAddVcheckParam () {
- // Is the request parameter already used with given network?
- if (isNetworkVcheckElementValid(postRequestElement('network_vcheck_param_key'), getRequestElement('network_id'))) {
- // Already added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_VCHECK_PARAMETER_ALREADY_ADDED=' . postRequestElement('network_vcheck_param_key') . '%}');
-
- // ... so abort here
- return FALSE;
- } // END - if
-
- // Add id
- setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
-
- // Is network_vcheck_param_default set?
- if (!isPostRequestElementSet('network_vcheck_param_default')) {
- // Remove empty value to get a NULL for an optional entry
- unsetPostRequestElement('network_vcheck_param_default');
- } // END - if
-
- // Add the whole vcheck to database
- SQL_QUERY(getInsertSqlFromArray(postRequestArray(), 'network_vcheck_params'), __FUNCTION__, __LINE__);
-
- // Output message
- if (!SQL_HASZEROAFFECTED()) {
- // Successfully added
- loadTemplate('admin_network_vcheck_param_added', FALSE, postRequestArray());
- } else {
- // Not added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_VCHECK_PARAMETER_NOT_ADDED=' . postRequestElement('network_vcheck_param_key') . '%}');
- }
-}
-
// Adds a API response array entry
function doAdminNetworkProcessAddNetworkArrayTranslation () {
// Is the request parameter already used with given network?
'list_network_types' => 'types',
// Network request parameter
'list_network_request_params' => 'request_params',
- // Vcheck request parameter
- 'list_network_vcheck_params' => 'vcheck_params',
// Network API response array index translation
'list_network_array_translation' => 'array_translation',
);
loadTemplate('admin_export_network_request_params', FALSE, $SQL);
}
-// Exports (and displays) the table 'network_vcheck_params'
-function doAdminNetworkExportVcheckParams () {
- // 'network_id' must be set
- if (!isGetRequestElementSet('network_id')) {
- // Only network vcheck parameters of one network will be exported per time
- reportBug(__FUNCTION__, __LINE__, 'network_id not provided, please fix your links.');
- } // END - if
-
- // Get all network types of given network
- $result = SQL_QUERY_ESC('SELECT
- `network_id`,
- `network_vcheck_param_key`,
- `network_vcheck_param_value`,
- `network_vcheck_param_default`
-FROM
- `{?_MYSQL_PREFIX?}_network_vcheck_params`
-WHERE
- `network_id`=%s
-ORDER BY
- `network_vcheck_param_id` ASC',
- array(
- bigintval(getRequestElement('network_id'))
- ), __FUNCTION__, __LINE__);
-
- // Start an empty SQL query
- $SQL = 'INSERT INTO `{?_MYSQL_PREFIX?}_network_vcheck_params` (`network_id`, `network_vcheck_param_key`, `network_vcheck_param_value`, `network_vcheck_param_default`) VALUES' . PHP_EOL;
-
- // Load all entries
- while ($content = SQL_FETCHARRAY($result)) {
- // Add row
- $SQL .= '(' .
- $content['network_id'] . ", '" .
- $content['network_vcheck_param_key'] . "', '" .
- $content['network_vcheck_param_value'] . "', ";
-
- // Is the column NULL?
- if (is_null($content['network_vcheck_param_default'])) {
- // Column is NULL
- $SQL .= "NULL),\n";
- } else {
- // Column is set
- $SQL .= chr(39) . $content['network_vcheck_param_default'] . "'),\n";
- }
- } // END - while
-
- // Remove last commata and close braces
- $SQL = substr($SQL, 0, -2);
-
- // Free result
- SQL_FREERESULT($result);
-
- // Output the SQL query
- loadTemplate('admin_export_network_vcheck_params', FALSE, $SQL);
-}
-
// Exports (and displays) the table 'network_array_translation'
function doAdminNetworkExportArrayTranslation () {
// 'network_id' must be set
<?php
-/************************************************************************
- * Mailer v0.2.1-FINAL Start: 11/26/2009 *
- * =================== Last change: 11/26/2009 *
- * *
- * -------------------------------------------------------------------- *
- * File : what-list_network_vcheck_params.php *
- * -------------------------------------------------------------------- *
- * Short description : List/manage network API query parameters *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung : Verwaltet API-Abfrageparameter *
- * -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 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())) {
- exit();
-} // END - if
-
-// Add description as navigation point
-addYouAreHereLink('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
-
-// Is there a network selected?
-if (isGetRequestElementSet('network_id')) {
- // Get its data for template
- $networkData = getNetworkDataById(getRequestElement('network_id'));
-
- // Init disabled list
- $GLOBALS['network_vcheck_params_disabled'] = array();
-
- // Load all advert types for given network
- $result = SQL_QUERY_ESC("SELECT
- `network_vcheck_param_id`,
- `network_vcheck_param_key`,
- `network_vcheck_param_value`,
- `network_vcheck_param_default`
-FROM
- `{?_MYSQL_PREFIX?}_network_vcheck_params`
-WHERE
- `network_id`=%s
-ORDER BY
- `network_vcheck_param_id` ASC",
- array(bigintval(getRequestElement('network_id'))), __FILE__, __LINE__);
-
- // Are there entries?
- if (!SQL_HASZERONUMS($result)) {
- // List all entries
- $OUT = '';
- while ($row = SQL_FETCHARRAY($result)) {
- // Add this entry
- $GLOBALS['network_vcheck_params_disabled'][$row['network_vcheck_param_key']] = TRUE;
-
- // Add row template and switch color
- $OUT .= loadTemplate('admin_list_network_vcheck_params_row', TRUE, $row);
- } // END - while
-
- // Prepare generic array
- $content = array(
- 'rows' => $OUT,
- 'network_id' => bigintval(getRequestElement('network_id'))
- );
-
- // Load main template
- loadTemplate('admin_list_network_vcheck_params', FALSE, $content);
- } else {
- // No entries found
- displayMessage('{%message,ADMIN_NETWORK_VCHECK_PARAMETER_404=' . $networkData['network_title'] . '%}');
- }
-
- // Free result
- SQL_FREERESULT($result);
-
- // Add form for adding new params
- loadTemplate('admin_add_network_vcheck_param', FALSE, $networkData);
-} else {
- // Generate network list for this script
- $OUT = generateAdminNetworkList();
-
- // Is it not empty?
- if (!empty($OUT)) {
- // Output it
- outputHtml($OUT);
- } // END - if
-}
-
-// [EOF]
+// @DEPRECATED
?>
Disallow: /mailid.php
Disallow: /mailid_top.php
Disallow: /network-vcheck.php
+Disallow: /network-delurl.php
Disallow: /ref.php
Disallow: /show_bonus.php
Disallow: /sponsor_confirm.php
Disallow: /mailid.php
Disallow: /mailid_top.php
Disallow: /network-vcheck.php
+Disallow: /network-delurl.php
Disallow: /ref.php
Disallow: /show_bonus.php
Disallow: /sponsor_confirm.php
-<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=list_network_vcheck_params&do=add_vcheck_param&network_id=$content[network_id]%}
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
- <tr>
- <td class="table_header bottom" colspan="2" align="center">
- <strong>{--ADMIN_ADD_NETWORK_VCHECK_PARAMETER_TITLE--}</strong>
- <div class="tiny">
- ({%network,generateMetworkReferralLinkById=%network_id%%})
- </div>
- </td>
- </tr>
- <tr>
- <td align="right" width="250">{--ADMIN_NETWORK_VCHECK_PARAMETER_KEY--}</td>
- <td>
- <select name="network_vcheck_param_key" class="form_select" size="1">
- {%pipe,generateNetworkVcheckKeyOptions%}
- </select>
- </td>
- </tr>
- <tr>
- <td align="right" width="250">{--ADMIN_NETWORK_VCHECK_PARAMETER_VALUE--}</td>
- <td>
- <input type="text" class="form_field" name="network_vcheck_param_value" size="10" maxlength="50" />
- </td>
- </tr>
- <tr>
- <td class="bottom" align="right" width="250">{--ADMIN_NETWORK_VCHECK_PARAMETER_DEFAULT--}</td>
- <td class="bottom">
- <input type="text" class="form_field" name="network_vcheck_param_default" size="10" maxlength="255" />
- </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="add" value="{--ADMIN_ADD_NETWORK_VCHECK_PARAMETER_SUBMIT--}" />
- </td>
- </tr>
-</table>
-{%form_close%}
-</div>
-
-<div class="notice">
- {--ADMIN_ADD_NETWORK_VCHECK_PARAMETER_NOTICE--}
-</div>
+<!-- @DEPRECATED //-->
-<div align="center">
-<div class="table dashed">
- <div class="table_header bottom">
- <strong>{--ADMIN_EXPORT_NETWORK_VCHECK_PARAMS_TITLE--}</strong>
- </div>
-
- <div class="bottom">
- <pre>$content</pre>
- </div>
-</div>
-</div>
-
-<div class="table_footer notice">
- {--ADMIN_EXPORT_NETWORK_NOTICE--}
-</div>
+<!-- @DEPRECATED //-->
-<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=list_network_vcheck_params&do=handle_vcheck_params&network_id=$content[network_id]%}
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
-<tr>
- <td colspan="4" align="center" class="table_header bottom">
- <div>
- <strong>{--ADMIN_LIST_NETWORK_VCHECK_PARAMETER_TITLE--}</strong>
- </div>
- <div class="tiny">
- ({%network,generateMetworkReferralLinkById=%network_id%%})
- </div>
- </td>
-</tr>
-
-<tr>
- <td align="center" class="header_column bottom right" height="25" width="30"><strong>{--ID_SELECT--}</strong></td>
- <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_VCHECK_PARAMETER_KEY--}</strong></td>
- <td align="center" class="header_column bottom right"><strong>{--ADMIN_NETWORK_VCHECK_PARAMETER_VALUE--}</strong></td>
- <td align="center" class="header_column bottom"><strong>{--ADMIN_NETWORK_VCHECK_PARAMETER_DEFAULT--}</strong></td>
-</tr>
-
-$content[rows]
-
-<tr>
- <td colspan="4" class="table_footer">
- <input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
- <input type="submit" class="form_submit" name="edit" value="{--ADMIN_ACTION_EDIT_SUBMIT--}" />
- <input type="submit" class="form_delete" name="delete" value="{--ADMIN_ACTION_DELETE_SUBMIT--}" />
- </td>
-</tr>
-</table>
-{%form_close%}
-
-<div class="para">
- <a href="{%url=modules.php?module=admin&what=list_network_vcheck_params&do=export&network_id=$content[network_id]%}">{--ADMIN_EXPORT_NETWORK_VCHECK_PARAMS_LINK--}</a>
-</div>
-</div>
-
-<div class="notice">
- {--ADMIN_LIST_NETWORK_VCHECK_PARAMETER_NOTICE--}
-</div>
+<!-- @DEPRECATED //-->
-<tr>
- <td class="{%template,ColorSwitch%} bottom right" align="center">
- <input type="checkbox" title="{--ID_SELECT--} $content[network_vcheck_param_id]" class="form_field" name="sel[$content[network_vcheck_param_id]]" value="1" />
- </td>
- <td class="{%template,ColorSwitch%} bottom right" align="center">
- {%pipe,translateNetworkVcheckParameterKey=$content[network_vcheck_param_key]%}
- </td>
- <td class="{%template,ColorSwitch%} bottom right" align="center">
- $content[network_vcheck_param_value]
- </td>
- <td class="{%template,ColorSwitch%} bottom" align="center">
- {%pipe,fixEmptyContentToDashes=$content[network_vcheck_param_default]%}
- </td>
-</tr>
+<!-- @DEPRECATED //-->
-<div align="center" style="margin-top:10px;margin-bottom:10px">
-
-<div style="width:550px" class="table dashed">
- <div class="table_header bottom">
- {--ADMIN_NETWORK_VCHECK_PARAM_ADDED_TITLE--}
- </div>
- <div class="message">
- Der VCheck-Abfrageparameter $content[network_vcheck_param_key]/$content[network_vcheck_param_value]
- wurde soeben hinzugefügt. Sie sollten nun als nächstes die
- <a href="{%url=modules.php?module=admin&what=list_network_array_translation&network_id=$content[network_id]%}">API-Arrayelemente hinzufügen</a>.
- </div>
-</div>
-
-</div>
+<!-- @DEPRECATED //-->