From def2acbe1be252d9b210388c209607021f5880c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 10 Aug 2011 03:12:55 +0000 Subject: [PATCH] Fixes for ext-network, 'Ad-Hit.de' added --- inc/extensions/ext-network.php | 230 ++++++++++++++++++++++++++++----- inc/libs/network_functions.php | 12 +- 2 files changed, 209 insertions(+), 33 deletions(-) diff --git a/inc/extensions/ext-network.php b/inc/extensions/ext-network.php index a2cdddfefe..1543bdbe3e 100644 --- a/inc/extensions/ext-network.php +++ b/inc/extensions/ext-network.php @@ -286,7 +286,7 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", ('bonus', 'BonusSponsor', 'http://www.bonussponsor.de?ref=1286', '|', '|', 'GET', 'WINDOWS-1252','N'), ('fusion', 'Fusion-Ads', 'http://www.fusion-ads.de/?ref=84', '|', '|', 'GET', 'ISO-8859-1','N'), ('gigapromo', 'GigaPromo', 'http://www.gigapromo.de/index.php?ref=953', '|', '|', 'GET', 'WINDOWS-1252','N'), -('hpsonsor', 'HPSponsor', 'http://hpsponsor.at?ref=29', '|', '|', 'GET', 'WINDOWS-1252','N'), +('hpsponsor', 'HPSponsor', 'http://hpsponsor.at?ref=29', '|', '|', 'GET', 'WINDOWS-1252','N'), ('make-euros', 'Make-Euros.de', 'http://www.make-euros.de?ref=1184', '|', '|', 'GET', 'ISO-8859-1','N'), ('megad', 'Mega-Ad', 'http://www.mega-ad.de/?ref=303', '|', '|', 'GET', 'WINDOWS-1252','N'), ('power-promo', 'Power-Promo', 'http://www.power-promo.de?ref=1231', '|', '|', 'GET', 'WINDOWS-1252','N'), @@ -301,7 +301,8 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", ('vipads', 'VIPads.de', 'http://vipads.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1','N'), ('homeads', 'homeADS', 'http://www.homeads.de/?ref=1540', '|', '|', 'GET', 'WINDOWS-1252','N'), ('fucoexsponsor', 'FuCoExSponsor.net', 'http://fucoexsponsor.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1','N'), -('adconvention', 'AdConvention', 'http://www.adconvention.de?ref=233', '|', '|', 'GET', 'WINDOWS-1252','N')"); +('adconvention', 'AdConvention', 'http://www.adconvention.de?ref=233', '|', '|', 'GET', 'WINDOWS-1252','N'), +('ad-hit', 'Ad-Hit.de', 'http://www.ad-hit.de?ref=41', '|', '|', 'GET', 'WINDOWS-1252', 'N'"); // Network type handlers - A3H addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES @@ -335,6 +336,19 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", (200, 2, 'lead', 'http://www.abiszed-netz.de/interface/out_lead.php', 'http://www.abiszed-netz.de/lead.php?id=%CID%', NULL), (201, 2, 'sale', 'http://www.abiszed-netz.de/interface/out_sale.php', 'http://www.abiszed-netz.de/sale.php?id=%CID%', NULL)"); + // Network type handlers - Ad-Hit.de + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES +(302, 31, 'forcedbanner', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.ad-hit.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(303, 31, 'forcedtextlink', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(304, 31, 'banner_view', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ad-hit.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(305, 31, 'banner_click', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.ad-hit.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'), +(306, 31, 'skybanner_view', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.ad-hit.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(307, 31, 'button_view', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.ad-hit.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(308, 31, 'textlink_view', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(309, 31, 'traffic', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(310, 31, 'popup', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(311, 31, 'textmail', 'http://www.ad-hit.de/interface/api_2.php', 'http://www.ad-hit.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL)"); + // Network type handlers - Ad-Magnet // Network type handlers - AdCocktail @@ -377,16 +391,16 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", // Network type handlers - Ads4Webbis addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES -(20, 7, 'banner_click', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.ads4webbis.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'), +(20, 7, 'banner_click', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.ads4webbis.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'), (19, 7, 'banner_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads4webbis.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(22, 7, 'button_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.ads4webbis.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(17, 7, 'forcedbanner', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.ads4webbis.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(18, 7, 'forcedtextlink', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL), -(24, 7, 'popup', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL), -(21, 7, 'skybanner_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.ads4webbis.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(23, 7, 'textlink_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL), -(25, 7, 'textmail', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL), -(120, 7, 'traffic', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL)"); +(22, 7, 'button_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.ads4webbis.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(17, 7, 'forcedbanner', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.ads4webbis.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(18, 7, 'forcedtextlink', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(24, 7, 'popup', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(21, 7, 'skybanner_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.ads4webbis.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(23, 7, 'textlink_view', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(25, 7, 'textmail', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(120, 7, 'traffic', 'http://www.ads4webbis.de/interface/api_2.php', 'http://www.ads4webbis.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL)"); // Network type handlers - Ads4World addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES @@ -405,16 +419,16 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", // Network type handlers - AllAds4You addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES -(167, 10, 'forcedbanner', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(168, 10, 'forcedtextlink', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), -(169, 10, 'banner_view', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(170, 10, 'banner_click', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'), -(171, 10, 'skybanner_view', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(172, 10, 'button_view', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(173, 10, 'textlink_view', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), -(174, 10, 'traffic', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), -(175, 10, 'popup', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), -(176, 10, 'textmail', 'http://www.allads4you.de/interface/', 'http://www.allads4you.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)"); +(167, 10, 'forcedbanner', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(168, 10, 'forcedtextlink', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), +(169, 10, 'banner_view', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(170, 10, 'banner_click', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'), +(171, 10, 'skybanner_view', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(172, 10, 'button_view', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.allads4you.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(173, 10, 'textlink_view', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), +(174, 10, 'traffic', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), +(175, 10, 'popup', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), +(176, 10, 'textmail', 'http://www.allads4you.de/interface/get_v3.php', 'http://www.allads4you.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)"); // Network type handlers - Alster-Marketing addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES @@ -610,16 +624,16 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", // Network type handlers - SeCash addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES -(93, 19, 'forcedbanner', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.secash.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(94, 19, 'forcedtextlink', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL), +(93, 19, 'forcedbanner', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.secash.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(94, 19, 'forcedtextlink', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), (95, 19, 'banner_view', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.secash.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(96, 19, 'banner_click', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.secash.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'), -(97, 19, 'skybanner_view', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.secash.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(98, 19, 'button_view', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', 'http://www.secash.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'), -(99, 19, 'textlink_view', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL), -(100, 19, 'popup', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL), -(101, 19, 'textmail', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL), -(124, 19, 'traffic', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%tid%', NULL)"); +(96, 19, 'banner_click', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.secash.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'), +(97, 19, 'skybanner_view', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.secash.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(98, 19, 'button_view', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.secash.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(99, 19, 'textlink_view', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(100, 19, 'popup', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(101, 19, 'textmail', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL), +(124, 19, 'traffic', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL)"); // Network type handlers - Swizerland addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`,`network_id`,`network_type_handle`,`network_type_api_url`,`network_type_click_url`,`network_type_banner_url`) VALUES @@ -883,6 +897,79 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", (2, 201, 'reward', 'verguetung', NULL), (2, 201, 'sid', 'sid', NULL)"); + // Request parameters per type handler - Ad-Hit + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`,`network_type_id`,`request_param_key`,`request_param_value`,`request_param_default`) VALUES +(31, 302, 'extra', 'typ', 'forcedbanner'), +(31, 302, 'id', 'id', NULL), +(31, 302, 'password', 'pw', NULL), +(31, 302, 'remain', 'uebrig', NULL), +(31, 302, 'reload', 'reload', NULL), +(31, 302, 'reward', 'verguetung', NULL), +(31, 302, 'sid', 'siteid', NULL), +(31, 303, 'extra', 'typ', 'forcedtextlink'), +(31, 303, 'id', 'id', NULL), +(31, 303, 'password', 'pw', NULL), +(31, 303, 'remain', 'uebrig', NULL), +(31, 303, 'reload', 'reload', NULL), +(31, 303, 'reward', 'verguetung', NULL), +(31, 303, 'sid', 'siteid', NULL), +(31, 304, 'extra', 'typ', 'bannerview'), +(31, 304, 'id', 'id', NULL), +(31, 304, 'password', 'pw', NULL), +(31, 304, 'remain', 'uebrig', NULL), +(31, 304, 'reload', 'reload', NULL), +(31, 304, 'reward', 'verguetung', NULL), +(31, 304, 'sid', 'siteid', NULL), +(31, 305, 'extra', 'typ', 'bannerklick'), +(31, 305, 'id', 'id', NULL), +(31, 305, 'password', 'pw', NULL), +(31, 305, 'remain', 'uebrig', NULL), +(31, 305, 'reload', 'reload', NULL), +(31, 305, 'reward', 'verguetung', NULL), +(31, 305, 'sid', 'siteid', NULL), +(31, 306, 'extra', 'typ', 'skybannerview'), +(31, 306, 'id', 'id', NULL), +(31, 306, 'password', 'pw', NULL), +(31, 306, 'remain', 'uebrig', NULL), +(31, 306, 'reload', 'reload', NULL), +(31, 306, 'reward', 'verguetung', NULL), +(31, 306, 'sid', 'siteid', NULL), +(31, 307, 'extra', 'typ', 'buttonview'), +(31, 307, 'id', 'id', NULL), +(31, 307, 'password', 'pw', NULL), +(31, 307, 'remain', 'uebrig', NULL), +(31, 307, 'reload', 'reload', NULL), +(31, 307, 'reward', 'verguetung', NULL), +(31, 307, 'sid', 'siteid', NULL), +(31, 308, 'extra', 'typ', 'textview'), +(31, 308, 'id', 'id', NULL), +(31, 308, 'password', 'pw', NULL), +(31, 308, 'remain', 'uebrig', NULL), +(31, 308, 'reload', 'reload', NULL), +(31, 308, 'reward', 'verguetung', NULL), +(31, 308, 'sid', 'siteid', NULL), +(31, 309, 'extra', 'typ', 'traffic'), +(31, 309, 'id', 'id', NULL), +(31, 309, 'password', 'pw', NULL), +(31, 309, 'remain', 'uebrig', NULL), +(31, 309, 'reload', 'reload', NULL), +(31, 309, 'reward', 'verguetung', NULL), +(31, 309, 'sid', 'siteid', NULL), +(31, 310, 'extra', 'typ', 'popup'), +(31, 310, 'id', 'id', NULL), +(31, 310, 'password', 'pw', NULL), +(31, 310, 'remain', 'uebrig', NULL), +(31, 310, 'reload', 'reload', NULL), +(31, 310, 'reward', 'verguetung', NULL), +(31, 310, 'sid', 'siteid', NULL), +(31, 311, 'extra', 'typ', 'paidmail'), +(31, 311, 'id', 'id', NULL), +(31, 311, 'password', 'pw', NULL), +(31, 311, 'remain', 'uebrig', NULL), +(31, 311, 'reload', 'reload', NULL), +(31, 311, 'reward', 'verguetung', NULL), +(31, 311, 'sid', 'siteid', NULL)"); + // Request parameters per type handler - Ad-Magnet // Request parameters per type handler - AdCocktail @@ -3025,6 +3112,89 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", (2, 201, 9, 9), (2, 201, 25, 10)"); + // API array elements - Ad-Hit.de + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`,`network_type_id`,`network_api_index`,`sort`) VALUES +(31, 302, 1, 1), +(31, 302, 2, 2), +(31, 302, 4, 3), +(31, 302, 5, 4), +(31, 302, 6, 5), +(31, 302, 10, 6), +(31, 302, 9, 7), +(31, 302, 40, 8), +(31, 303, 1, 1), +(31, 303, 2, 2), +(31, 303, 4, 3), +(31, 303, 5, 4), +(31, 303, 6, 5), +(31, 303, 10, 6), +(31, 303, 9, 7), +(31, 303, 40, 8), +(31, 304, 1, 1), +(31, 304, 2, 2), +(31, 304, 4, 3), +(31, 304, 5, 4), +(31, 304, 6, 5), +(31, 304, 10, 6), +(31, 304, 9, 7), +(31, 304, 40, 8), +(31, 305, 1, 1), +(31, 305, 2, 2), +(31, 305, 4, 3), +(31, 305, 5, 4), +(31, 305, 6, 5), +(31, 305, 10, 6), +(31, 305, 9, 7), +(31, 305, 40, 8), +(31, 306, 1, 1), +(31, 306, 2, 2), +(31, 306, 4, 3), +(31, 306, 5, 4), +(31, 306, 6, 5), +(31, 306, 10, 6), +(31, 306, 9, 7), +(31, 306, 40, 8), +(31, 307, 1, 1), +(31, 307, 2, 2), +(31, 307, 4, 3), +(31, 307, 5, 4), +(31, 307, 6, 5), +(31, 307, 10, 6), +(31, 307, 9, 7), +(31, 307, 40, 8), +(31, 308, 1, 1), +(31, 308, 2, 2), +(31, 308, 4, 3), +(31, 308, 5, 4), +(31, 308, 6, 5), +(31, 308, 10, 6), +(31, 308, 9, 7), +(31, 308, 40, 8), +(31, 309, 1, 1), +(31, 309, 2, 2), +(31, 309, 4, 3), +(31, 309, 5, 4), +(31, 309, 6, 5), +(31, 309, 10, 6), +(31, 309, 9, 7), +(31, 309, 40, 8), +(31, 310, 1, 1), +(31, 310, 2, 2), +(31, 310, 4, 3), +(31, 310, 5, 4), +(31, 310, 6, 5), +(31, 310, 10, 6), +(31, 310, 9, 7), +(31, 310, 40, 8), +(31, 311, 1, 1), +(31, 311, 2, 2), +(31, 311, 4, 3), +(31, 311, 5, 4), +(31, 311, 6, 5), +(31, 311, 10, 6), +(31, 311, 9, 7), +(31, 311, 40, 8)"); + // API array elements - AD-Magnet // API array elements - ADCocktail diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index fd2bba1a2c..af85b18a74 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -948,7 +948,9 @@ function doAdminNetworkProcessChangeNetwork () { // Transfer whole array, except 'sel' foreach (postRequestArray() as $key => $entry) { // Skip 'sel' and submit button - if (in_array($key, array('sel', 'change'))) continue; + if (in_array($key, array('sel', 'do_edit'))) { + continue; + } // END - if // Do we have this enty? if (!isset($entry[$id])) { @@ -1062,7 +1064,9 @@ function doAdminNetworkProcessChangeNetworkType () { // Transfer whole array, except 'sel' foreach (postRequestArray() as $key => $entry) { // Skip 'sel' and submit button - if (in_array($key, array('sel', 'change'))) continue; + if (in_array($key, array('sel', 'do_edit'))) { + continue; + } // END - if // Do we have this enty? if (!isset($entry[$id])) { @@ -1113,7 +1117,9 @@ function doAdminNetworkProcessChangeNetworkParam () { // Transfer whole array, except 'sel' foreach (postRequestArray() as $key => $entry) { // Skip 'sel' and submit button - if (in_array($key, array('sel', 'change'))) continue; + if (in_array($key, array('sel', 'do_edit'))) { + continue; + } // END - if // Do we have this enty? if (!isset($entry[$id])) { -- 2.39.5