From: Roland Häder Date: Thu, 17 Jan 2013 03:21:09 +0000 (+0000) Subject: Partly added network 'Ads4Clicks' as some APIs return JavaScript code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1bacd30abeb24cbdff3f2f220c047444cf034f7c;p=mailer.git Partly added network 'Ads4Clicks' as some APIs return JavaScript code --- diff --git a/inc/extensions/network/mode-setup.php b/inc/extensions/network/mode-setup.php index aff820c908..3698a9d819 100644 --- a/inc/extensions/network/mode-setup.php +++ b/inc/extensions/network/mode-setup.php @@ -22,6 +22,7 @@ * @TODO Admono.de: highforcedbanner, traffic from abroad * * @TODO Ads-AbisZ: HighForced banner, mini layer * * @TODO Ads-Im-Netz: All APIs provide URLs/JavaScripts * + * @TODO Ads4Clicks: Some has JavaScript as output code, high forced * * @TODO Affiliblatt: Layer requires script in head * * @TODO Affiliblatt: Textlinks, popup, popunder, HTML mail, lead * * @TODO AllAds4You: Traffic from abroad, High-Forced banner * @@ -378,7 +379,8 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_data` (`network_short_na ('erotic_promotion', 'Erotic-Promotion', 'http://erotic-promotion.eu?ref=167', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'), ('lose_ads', 'LoseAds', 'http://www.loseads.eu/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 100, 'Y'), ('kueko_net', 'Kueko-Net', 'http://www.kueko-net.de/?seite=content/anmeldung&ref=589', '|', '|', 'GET', 'WINDOWS-1252', 'N', 150, 'Y'), -('forced_lose', 'Forced-Lose', 'http://www.forced-lose.de/?rid=3155', '|', '|', 'GET', 'UTF-8', 'N', 1000, 'Y')"); +('forced_lose', 'Forced-Lose', 'http://www.forced-lose.de/?rid=3155', '|', '|', 'GET', 'UTF-8', 'N', 1000, 'Y'), +('ads4clicks', 'Ads4Clicks', 'http://www.ads4clicks.de/?ref=215', '|', '|', 'GET', 'ISO-8859-1', 'N', 100, 'Y')"); // Network type handlers - A3H addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handler`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`, `network_type_reload_time_unit`, `network_text_encoding`) VALUES @@ -694,6 +696,14 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id (728, 60, 'textmail', 'http://ads4angel.de/interface.php', NULL, NULL, 'h','NONE'), (729, 60, 'textlink_click', 'http://ads4angel.de/interface.php', NULL, NULL, 'h','NONE')"); +// Network type handlers - Ads4Clicks +addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handler`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`, `network_type_reload_time_unit`, `network_text_encoding`) VALUES +(809, 67, 'textmail', 'http://www.ads4clicks.de/interface.php', NULL, NULL, 'h','NONE'), +(810, 67, 'traffic', 'http://www.ads4clicks.de/interface.php', NULL, NULL, 'h','NONE'), +(811, 67, 'forced_banner', 'http://www.ads4clicks.de/interface.php', NULL, NULL, 'h','NONE'), +(812, 67, 'forced_textlink', 'http://www.ads4clicks.de/interface.php', NULL, NULL, 'h','NONE'), +(813, 67, 'htmlmail', 'http://www.ads4clicks.de/interface.php', NULL, NULL, 'h','NONE')"); + // Network type handlers - Ads4Paid4 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handler`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`, `network_type_reload_time_unit`, `network_text_encoding`) VALUES (694, 57, 'banner_click', 'http://www.ads4paid4.de/int/get.php', 'http://www.ads4paid4.de/kamp/ziel.php?uid=%UID%&bid=%CID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.ads4paid4.de/kamp/b_view.php?uid=%UID%&bid=%CID%&sid=%SID%', 'h', 'NONE'), @@ -3258,6 +3268,49 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`networ (55, 693, 'remain_clicks', 'uebrig', NULL), (55, 693, 'minimum_stay', 'ma', NULL)"); +// Request parameters per type handler - Ads4Clicks +addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `network_request_param_key`, `network_request_param_value`, `network_request_param_default`) VALUES +(67, 809, 'extra', 'kamp', 'paidmail'), +(67, 809, 'affiliate_id', 'uid', NULL), +(67, 809, 'password', 'pw', NULL), +(67, 809, 'site_id', 'sid', NULL), +(67, 809, 'reload', 'reload', NULL), +(67, 809, 'minimum_stay', 'mi', NULL), +(67, 809, 'reward', 'verg', NULL), +(67, 809, 'remain_clicks', 'anzahl', NULL), +(67, 810, 'extra', 'kamp', 'traffic'), +(67, 810, 'affiliate_id', 'uid', NULL), +(67, 810, 'password', 'pw', NULL), +(67, 810, 'site_id', 'sid', NULL), +(67, 810, 'reload', 'reload', NULL), +(67, 810, 'minimum_stay', 'ma', NULL), +(67, 810, 'reward', 'verg', NULL), +(67, 810, 'remain_clicks', 'anzahl', NULL), +(67, 811, 'extra', 'kamp', 'forcedbanner'), +(67, 811, 'affiliate_id', 'uid', NULL), +(67, 811, 'password', 'pw', NULL), +(67, 811, 'site_id', 'sid', NULL), +(67, 811, 'reload', 'reload', NULL), +(67, 811, 'minimum_stay', 'ma', NULL), +(67, 811, 'reward', 'verg', NULL), +(67, 811, 'remain_clicks', 'anzahl', NULL), +(67, 812, 'extra', 'kamp', 'forcedtextlink'), +(67, 812, 'affiliate_id', 'uid', NULL), +(67, 812, 'password', 'pw', NULL), +(67, 812, 'site_id', 'sid', NULL), +(67, 812, 'reload', 'reload', NULL), +(67, 812, 'minimum_stay', 'ma', NULL), +(67, 812, 'reward', 'verg', NULL), +(67, 812, 'remain_clicks', 'anzahl', NULL), +(67, 813, 'extra', 'kamp', 'htmlmail'), +(67, 813, 'affiliate_id', 'uid', NULL), +(67, 813, 'password', 'pw', NULL), +(67, 813, 'site_id', 'sid', NULL), +(67, 813, 'reload', 'reload', NULL), +(67, 813, 'minimum_stay', 'ma', NULL), +(67, 813, 'reward', 'verg', NULL), +(67, 813, 'remain_clicks', 'anzahl', NULL)"); + // Request parameters per type handler - Ads4Paid4 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `network_request_param_key`, `network_request_param_value`, `network_request_param_default`) VALUES (57, 694, 'extra', 'art', 'bannerklick'), @@ -8045,6 +8098,48 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`net (55, 693, 6, 5), (55, 693, 10, 6)"); +// API array elements - Ads4Clicks +addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES +(67, 809, 1, 1), +(67, 809, 6, 2), +(67, 809, 2, 3), +(67, 809, 4, 4), +(67, 809, 9, 5), +(67, 809, 39, 6), +(67, 809, 10, 7), +(67, 809, 5, 8), +(67, 810, 1, 1), +(67, 810, 6, 2), +(67, 810, 2, 3), +(67, 810, 4, 4), +(67, 810, 40, 5), +(67, 810, 39, 6), +(67, 810, 10, 7), +(67, 810, 5, 8), +(67, 811, 1, 1), +(67, 811, 6, 2), +(67, 811, 2, 3), +(67, 811, 4, 4), +(67, 811, 40, 5), +(67, 811, 39, 6), +(67, 811, 10, 7), +(67, 811, 5, 8), +(67, 812, 1, 1), +(67, 812, 6, 2), +(67, 812, 2, 3), +(67, 812, 4, 4), +(67, 812, 39, 5), +(67, 812, 10, 6), +(67, 812, 5, 7), +(67, 813, 1, 1), +(67, 813, 6, 2), +(67, 813, 2, 3), +(67, 813, 4, 4), +(67, 813, 9, 5), +(67, 813, 39, 6), +(67, 813, 10, 7), +(67, 813, 5, 8)"); + // API array elements - Ads4Paid4 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES (57, 694, 1, 1), diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index e90c66c73c..c59214f677 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -194,7 +194,7 @@ function isNetworkTypeHandleValid ($type, $networkId) { // 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); + $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 diff --git a/theme/default/css/surfbar.css b/theme/default/css/surfbar.css index 5d1f23247c..25ab730055 100644 --- a/theme/default/css/surfbar.css +++ b/theme/default/css/surfbar.css @@ -1,25 +1,19 @@ #surfbar_banner { - } #surfbar_table { - } #surfbar_td { - } #surfbar_restart { - } .surfbar_counter { - } #surfbar_counter_word { - } #surfbar_reload {