]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-network.php
Code style changed, ext-user continued:
[mailer.git] / inc / extensions / ext-network.php
index 5fd7e8167132c479a71b5fde76df82ec631baf24..1056cb5859b80b580208eb26e720678b1315f403 100644 (file)
@@ -26,6 +26,7 @@
  * @TODO Admono.de: highforcedbanner, traffic from abroad               *
  * @TODO Affiliblatt: All except banner, do they really have UTF-8?     *
  * @TODO AllAds4You: Traffic from abroad, High-Forced banner            *
+ * @TODO eu-ADS/WeltPromotion: Text for banner/buttons?                 *
  * @TODO FuCoExSponsor: No High-Forced banner, HTML is BASE64 encoded   *
  * @TODO FuCoExSponsor: Textlink-View is JavaScript!                    *
  * @TODO Fusion-Ads: Has click/banner URL in API response               *
@@ -75,7 +76,7 @@ setThisExtensionVersion('0.0.0');
 setExtensionVersionHistory(array('0.0.0'));
 
 // This extension is in development (non-productive)
-enableExtensionProductive(false);
+enableExtensionProductive(FALSE);
 
 switch (getExtensionMode()) {
        case 'register': // Do stuff when installation is running
@@ -310,13 +311,13 @@ UNIQUE INDEX `provider_type` (`network_id`, `network_type_id`)",
 ('adcocktail', 'ADCocktail', 'http://www.adcocktail.com/?rid=2596', '|', '|', 'GET', 'WINDOWS-1252', 'N', 500, 'Y'),
 ('adpaid', 'AdPaid', 'http://www.adpaid.de?ref=1464', '|', '|', 'GET', 'ISO-8859-1', 'N', 0, 'N'),
 ('ads4', 'Ads4.de', 'http://www.ads4.de/?werber=Quix0r', '|', '|', 'GET', 'WINDOWS-1252', 'N', 96, 'Y'),
-('ads4webbis', 'Ads4Webbis', 'http://www.ads4webbis.de?ref=835', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'),
+('ads4webbis', 'Ads4Webbis', 'http://www.ads4webbis.de?ref=835', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'N'),
 ('ads4world', 'Ads4World', 'http://www.ads4world.de?ref=252', '|', '|', 'GET', 'WINDOWS-1252', 'N', 0, 'N'),
 ('affiliblatt', 'Affiliblatt', 'http://www.affiliblatt.de/?sid=MTAzNQ==&site=home', '|', '|', 'GET', 'UTF-8', 'N', 0, 'Y'),
 ('allads4you', 'AllAds4You', 'http://www.allads4you.de?ref=1146', '|', '|', 'GET', 'ISO-8859-1', 'N', 150, 'Y'),
-('alstermarketing', 'Alster-Marketing', 'http://www.alstermarketing.de?ref=1851', '|', '|', 'GET', 'ISO-8859-16', 'N', 350, 'Y'),
+('alstermarketing', 'Alster-Marketing', 'http://www.alstermarketing.de?ref=1851', '|', '|', 'GET', 'ISO-8859-16', 'N', 350, 'N'),
 ('bonus', 'BonusSponsor', 'http://www.bonussponsor.de?ref=1286', '|', '|', 'GET', 'WINDOWS-1252', 'N', 150, 'Y'),
-('fusion', 'Fusion-Ads', 'http://www.fusion-ads.de/?ref=84', '|', '|', 'GET', 'ISO-8859-1', 'N', 150, 'Y'),
+('fusion', 'Fusion-Ads', 'http://www.fusion-ads.de/?ref=84', '|', '|', 'GET', 'ISO-8859-1', 'N', 150, 'N'),
 ('gigapromo', 'GigaPromo', 'http://www.gigapromo.de/index.php?ref=953', '|', '|', 'GET', 'WINDOWS-1252', 'N', 100, 'Y'),
 ('hpsponsor', 'HPSponsor', 'http://hpsponsor.at?ref=29', '|', '|', 'GET', 'WINDOWS-1252', 'N', 100, 'Y'),
 ('make-euros', 'Make-Euros.de', 'http://www.make-euros.de?ref=1184', '|', '|', 'GET', 'ISO-8859-1', 'Y', 150, 'N'),
@@ -328,11 +329,11 @@ UNIQUE INDEX `provider_type` (`network_id`, `network_type_id`)",
 ('werbepartnercc', 'DerWerbepartner.cc', 'http://www.werbepartner.cc/sponsor/?ref=696', '|', '|', 'GET', 'WINDOWS-1252', 'N', 100, 'Y'),
 ('yoomedia', 'Yoo!Media', 'http://www.yoomedia.de?ref=1715', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'),
 ('cityads', 'City-Ads', 'http://www.city-ads.de?ref=221', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'),
-('goldsponsor', 'Gold-Sponsor', 'http://www.gold-sponsor.de?ref=42', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'),
+('goldsponsor', 'Gold-Sponsor', 'http://www.gold-sponsor.de?ref=42', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'N'),
 ('doubleads', 'doubleads.de', 'http://www.doubleads.de?ref=1063', '|', '|', 'GET', 'ISO-8859-1','Y', 150, 'Y'),
 ('vipads', 'VIPads.de', 'http://vipads.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 100, 'Y'),
 ('homeads', 'homeADS', 'http://www.homeads.de/?ref=1540', '|', '|', 'GET', 'WINDOWS-1252', 'N', 0, 'N'),
-('fucoexsponsor', 'FuCoExSponsor.net', 'http://fucoexsponsor.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 100, 'Y'),
+('fucoexsponsor', 'FuCoExSponsor.net', 'http://fucoexsponsor.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 100, 'N'),
 ('adconvention', 'AdConvention', 'http://www.adconvention.de?ref=233', '|', '|', 'GET', 'WINDOWS-1252', 'N', 300, 'Y'),
 ('ad-hit', 'Ad-Hit.de', 'http://www.ad-hit.de?ref=41', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'),
 ('adcity', 'AdCity.eu', 'http://www.adcity.eu?ref=38', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'),
@@ -344,7 +345,8 @@ UNIQUE INDEX `provider_type` (`network_id`, `network_type_id`)",
 ('adprovi', 'Adprovi.de', 'http://www.adprovi.de?ref=439', '|', '|', 'GET', 'ISO-8859-1', 'N', 200, 'Y'),
 ('ads2earn', 'Ads2Earn', 'http://www.ads2earn.de?ref=1294', '|', '|', 'GET', 'ISO-8859-1', 'N', 150, 'Y'),
 ('ads2webbi', 'Ads2Webbi', 'http://www.ads2webbi.de?ref=79', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'),
-('superpromo24', 'SuperPromo24', 'http://www.superpromo24.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'Y')");
+('superpromo24', 'SuperPromo24', 'http://www.superpromo24.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'Y'),
+('euads', 'eu-ADS.de', 'http://www.eu-ads.de?ref=411', '|', '|', 'GET', 'ISO-8859-1', 'N', 200, '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`) VALUES
@@ -668,6 +670,19 @@ UNIQUE INDEX `provider_type` (`network_id`, `network_type_id`)",
 (245, 26, 'lead', 'http://www.doubleads.de/interface/out_lead.php', 'http://www.doubleads.de/lead.php?id=%CID%', NULL, 'h'),
 (246, 26, 'sale', 'http://www.doubleads.de/interface/out_sale.php', 'http://www.doubleads.de/sale.php?id=%CID%', NULL, 'h')");
 
+               // Network type handlers - eu-ADS.de
+               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
+(431, 42, 'forcedbanner', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.eu-ads.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%','h','NONE'),
+(432, 42, 'forcedtextlink', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL,'h','NONE'),
+(433, 42, 'banner_view', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.eu-ads.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%','h','NONE'),
+(434, 42, 'banner_click', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.eu-ads.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%','h','NONE'),
+(435, 42, 'skybanner_view', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.eu-ads.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%','h','NONE'),
+(436, 42, 'button_view', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', 'http://www.eu-ads.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%','h','NONE'),
+(437, 42, 'textlink_view', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL,'h','NONE'),
+(438, 42, 'traffic', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL,'h','NONE'),
+(439, 42, 'popup', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL,'h','NONE'),
+(440, 42, 'textmail', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%', NULL,'h','NONE')");
+
                // Network type handlers - FuCoExSponsor.net
                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`) VALUES
 (273, 29, 'banner_click', 'http://fucoexsponsor.net/int/get.php', 'http://fucoexsponsor.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&subid=%TID%', 'http://fucoexsponsor.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%&subid=%TID%', 'h'),
@@ -2727,6 +2742,79 @@ UNIQUE INDEX `provider_type` (`network_id`, `network_type_id`)",
 (26, 246, 'reward', 'verguetung', NULL),
 (26, 246, 'sid', 'sid', NULL)");
 
+               // Request parameters per type handler - eu-ADS.de
+               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
+(42, 431, 'extra', 'typ', 'forcedbanner'),
+(42, 431, 'affiliate_id', 'id', NULL),
+(42, 431, 'password', 'pw', NULL),
+(42, 431, 'sid', 'siteid', NULL),
+(42, 431, 'remain', 'uebrig', NULL),
+(42, 431, 'reload', 'reload', NULL),
+(42, 431, 'reward', 'verguetung', NULL),
+(42, 432, 'extra', 'typ', 'forcedtextlink'),
+(42, 432, 'affiliate_id', 'id', NULL),
+(42, 432, 'password', 'pw', NULL),
+(42, 432, 'sid', 'siteid', NULL),
+(42, 432, 'remain', 'uebrig', NULL),
+(42, 432, 'reload', 'reload', NULL),
+(42, 432, 'reward', 'verguetung', NULL),
+(42, 433, 'extra', 'typ', 'bannerview'),
+(42, 433, 'affiliate_id', 'id', NULL),
+(42, 433, 'password', 'pw', NULL),
+(42, 433, 'sid', 'siteid', NULL),
+(42, 433, 'remain', 'uebrig', NULL),
+(42, 433, 'reload', 'reload', NULL),
+(42, 433, 'reward', 'verguetung', NULL),
+(42, 434, 'extra', 'typ', 'bannerklick'),
+(42, 434, 'affiliate_id', 'id', NULL),
+(42, 434, 'password', 'pw', NULL),
+(42, 434, 'sid', 'siteid', NULL),
+(42, 434, 'remain', 'uebrig', NULL),
+(42, 434, 'reload', 'reload', NULL),
+(42, 434, 'reward', 'verguetung', NULL),
+(42, 435, 'extra', 'typ', 'skybannerview'),
+(42, 435, 'affiliate_id', 'id', NULL),
+(42, 435, 'password', 'pw', NULL),
+(42, 435, 'sid', 'siteid', NULL),
+(42, 435, 'remain', 'uebrig', NULL),
+(42, 435, 'reload', 'reload', NULL),
+(42, 435, 'reward', 'verguetung', NULL),
+(42, 436, 'extra', 'typ', 'buttonview'),
+(42, 436, 'affiliate_id', 'id', NULL),
+(42, 436, 'password', 'pw', NULL),
+(42, 436, 'sid', 'siteid', NULL),
+(42, 436, 'remain', 'uebrig', NULL),
+(42, 436, 'reload', 'reload', NULL),
+(42, 436, 'reward', 'verguetung', NULL),
+(42, 437, 'extra', 'typ', 'textview'),
+(42, 437, 'affiliate_id', 'id', NULL),
+(42, 437, 'password', 'pw', NULL),
+(42, 437, 'sid', 'siteid', NULL),
+(42, 437, 'remain', 'uebrig', NULL),
+(42, 437, 'reload', 'reload', NULL),
+(42, 437, 'reward', 'verguetung', NULL),
+(42, 438, 'extra', 'typ', 'traffic'),
+(42, 438, 'affiliate_id', 'id', NULL),
+(42, 438, 'password', 'pw', NULL),
+(42, 438, 'sid', 'siteid', NULL),
+(42, 438, 'remain', 'uebrig', NULL),
+(42, 438, 'reload', 'reload', NULL),
+(42, 438, 'reward', 'verguetung', NULL),
+(42, 439, 'extra', 'typ', 'popup'),
+(42, 439, 'affiliate_id', 'id', NULL),
+(42, 439, 'password', 'pw', NULL),
+(42, 439, 'sid', 'siteid', NULL),
+(42, 439, 'remain', 'uebrig', NULL),
+(42, 439, 'reload', 'reload', NULL),
+(42, 439, 'reward', 'verguetung', NULL),
+(42, 440, 'extra', 'typ', 'paidmail'),
+(42, 440, 'affiliate_id', 'id', NULL),
+(42, 440, 'password', 'pw', NULL),
+(42, 440, 'sid', 'siteid', NULL),
+(42, 440, 'remain', 'uebrig', NULL),
+(42, 440, 'reload', 'reload', NULL),
+(42, 440, 'reward', 'verguetung', NULL)");
+
                // Request parameters per type handler - FuCoExSponsor.net
                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
 (29, 273, 'extra', 'art', 'bannerklick'),
@@ -4729,7 +4817,88 @@ UNIQUE INDEX `provider_type` (`network_id`, `network_type_id`)",
 (35, 356, 6, 5),
 (35, 356, 10, 6)");
 
-               // API array elements - Adminlose.de
+               // API array elements - eu-ADS.de
+               addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES
+(42, 431, 1, 1),
+(42, 431, 2, 2),
+(42, 431, 4, 3),
+(42, 431, 5, 4),
+(42, 431, 6, 5),
+(42, 431, 10, 6),
+(42, 431, 9, 7),
+(42, 431, 40, 8),
+(42, 432, 1, 1),
+(42, 432, 2, 2),
+(42, 432, 4, 3),
+(42, 432, 5, 4),
+(42, 432, 6, 5),
+(42, 432, 10, 6),
+(42, 432, 9, 7),
+(42, 432, 40, 8),
+(42, 433, 1, 1),
+(42, 433, 2, 2),
+(42, 433, 4, 3),
+(42, 433, 5, 4),
+(42, 433, 6, 5),
+(42, 433, 10, 6),
+(42, 433, 9, 7),
+(42, 433, 40, 8),
+(42, 434, 1, 1),
+(42, 434, 2, 2),
+(42, 434, 4, 3),
+(42, 434, 5, 4),
+(42, 434, 6, 5),
+(42, 434, 10, 6),
+(42, 434, 9, 7),
+(42, 434, 40, 8),
+(42, 435, 1, 1),
+(42, 435, 2, 2),
+(42, 435, 4, 3),
+(42, 435, 5, 4),
+(42, 435, 6, 5),
+(42, 435, 10, 6),
+(42, 435, 9, 7),
+(42, 435, 40, 8),
+(42, 436, 1, 1),
+(42, 436, 2, 2),
+(42, 436, 4, 3),
+(42, 436, 5, 4),
+(42, 436, 6, 5),
+(42, 436, 10, 6),
+(42, 436, 9, 7),
+(42, 436, 40, 8),
+(42, 437, 1, 1),
+(42, 437, 2, 2),
+(42, 437, 4, 3),
+(42, 437, 5, 4),
+(42, 437, 6, 5),
+(42, 437, 10, 6),
+(42, 437, 9, 7),
+(42, 437, 40, 8),
+(42, 438, 1, 1),
+(42, 438, 2, 2),
+(42, 438, 4, 3),
+(42, 438, 5, 4),
+(42, 438, 6, 5),
+(42, 438, 10, 6),
+(42, 438, 9, 7),
+(42, 438, 40, 8),
+(42, 439, 1, 1),
+(42, 439, 2, 2),
+(42, 439, 4, 3),
+(42, 439, 5, 4),
+(42, 439, 6, 5),
+(42, 439, 10, 6),
+(42, 439, 9, 7),
+(42, 439, 40, 8),
+(42, 440, 1, 1),
+(42, 440, 2, 2),
+(42, 440, 4, 3),
+(42, 440, 5, 4),
+(42, 440, 6, 5),
+(42, 440, 10, 6),
+(42, 440, 9, 7),
+(42, 440, 40, 8)");
 
                // Vcheck request parameters - AdConvention
                addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_vcheck_params` (`network_id`, `network_vcheck_param_key`, `network_vcheck_param_value`, `network_vcheck_param_default`) VALUES