From 22ed4cd313c0f05d6578662b0e4ef191312f0aed Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 14 Jan 2013 23:02:13 +0000 Subject: [PATCH] Added network 'Earn4Webbis' --- inc/extensions/network/mode-setup.php | 253 +++++++++++++++++++++++++- inc/libs/network_functions.php | 3 +- inc/libs/newsletter_functions.php | 21 +-- 3 files changed, 264 insertions(+), 13 deletions(-) diff --git a/inc/extensions/network/mode-setup.php b/inc/extensions/network/mode-setup.php index 964093a425..c95ba4f8dc 100644 --- a/inc/extensions/network/mode-setup.php +++ b/inc/extensions/network/mode-setup.php @@ -25,6 +25,7 @@ * @TODO Affiliblatt: Layer requires script in head * * @TODO Affiliblatt: Textlinks, popup, popunder, HTML mail, lead * * @TODO AllAds4You: Traffic from abroad, High-Forced banner * + * @TODO Earn4Webbis: HighForced banner, page peel, mini layer * * @TODO FuCoExSponsor: Textlink-View is JavaScript! * * @TODO Fusion-Ads: Has click/banner URL in API response * * @TODO GeldSponsor.de Requires ID card copy/business reg. * @@ -371,7 +372,8 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_data` (`network_short_na ('paid_city', 'Paid-City', 'http://www.paid-city.de/?ref=2587', '|', '|', 'GET', 'WINDOWS-1252', 'N', 100, 'Y'), ('paid4ad', 'Paid4Ad', 'http://www.paid4ad.de/index.php?seite=anmeldung&ref=ShipSimu', '|', '|', 'GET', 'ISO-8859-1', 'N', 150, 'Y'), ('ads4angel', 'Ads4Angel', 'http://ads4angel.de/?ref=200', '|', '|', 'GET', 'ISO-8859-1', 'N', 100, 'Y'), -('werbeflut_net', 'Werbeflut.net', 'http://www.werbeflut.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'Y')"); +('werbeflut_net', 'Werbeflut.net', 'http://www.werbeflut.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'Y'), +('earn4webbis', 'Earn4Webbis', 'http://www.earn4webbis.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 500, '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 @@ -867,6 +869,26 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id (516, 26, 'forced_half_banner', 'http://www.doubleads.de/interface/out_fbanner.php', 'http://www.doubleads.de/bannerklf.php?id=%CID%', 'http://www.doubleads.de/banner.php?id=%CID%', 'h', 'NONE'), (517, 26, 'forced_skyscraper', 'http://www.doubleads.de/interface/out_fbanner.php', 'http://www.doubleads.de/bannerklf.php?id=%CID%', 'http://www.doubleads.de/banner.php?id=%CID%', 'h', 'NONE')"); +// Network type handlers - Earn4Webbis +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 +(747, 62, 'banner_click', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(748, 62, 'banner_view', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(749, 62, 'button_click', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(750, 62, 'button_view', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(751, 62, 'forced_banner', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(752, 62, 'forced_textlink', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', NULL, 'h','NONE'), +(753, 62, 'htmlmail', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', NULL, 'h','BASE64'), +(754, 62, 'layer', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/sc_layer.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', NULL, 'h','NONE'), +(755, 62, 'textmail', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', NULL, 'h','NONE'), +(756, 62, 'popup', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/sc_popup.php?uid=%UID%&bid=%BID%&sid=%SID%', NULL, 'h','NONE'), +(757, 62, 'skyscraper_click', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(758, 62, 'skyscraper_view', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(759, 62, 'surfbar_click', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(760, 62, 'surfbar_view', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', 'http://www.earn4webbis.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%', 'h','NONE'), +(761, 62, 'textlink_click', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', NULL, 'h','NONE'), +(762, 62, 'textlink_view', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/sc_textview.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', NULL, 'h','NONE'), +(763, 62, 'traffic', 'http://www.earn4webbis.net/int/get.php', 'http://www.earn4webbis.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&v1=%V1%&v2=%V2%', NULL, 'h','NONE')"); + // 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, 'forced_banner', '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%&vc=%VPC%', 'http://www.eu-ads.de/codes/forced_bannerview.php?id=%UID%&bid=%CID%&aid=%SID%', 'h', 'NONE'), @@ -4038,6 +4060,134 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`networ (26, 517, 'site_id', 'sid', NULL), (26, 517, 'size', 'size', '120x600')"); +// Request parameters per type handler - Earn4Webbis +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 +(62, 747, 'extra', 'art', 'bannerklick'), +(62, 747, 'affiliate_id', 'uid', NULL), +(62, 747, 'password', 'pw', NULL), +(62, 747, 'site_id', 'sid', NULL), +(62, 747, 'reward', 'verguetung', NULL), +(62, 747, 'reload', 'reload', NULL), +(62, 747, 'remain_clicks', 'uebrig', NULL), +(62, 748, 'extra', 'art', 'bannerview'), +(62, 748, 'affiliate_id', 'uid', NULL), +(62, 748, 'password', 'pw', NULL), +(62, 748, 'site_id', 'sid', NULL), +(62, 748, 'reward', 'verguetung', NULL), +(62, 748, 'reload', 'reload', NULL), +(62, 748, 'remain_clicks', 'uebrig', NULL), +(62, 749, 'extra', 'art', 'buttonklick'), +(62, 749, 'affiliate_id', 'uid', NULL), +(62, 749, 'password', 'pw', NULL), +(62, 749, 'site_id', 'sid', NULL), +(62, 749, 'reward', 'verguetung', NULL), +(62, 749, 'reload', 'reload', NULL), +(62, 749, 'remain_clicks', 'uebrig', NULL), +(62, 750, 'extra', 'art', 'buttonview'), +(62, 750, 'affiliate_id', 'uid', NULL), +(62, 750, 'password', 'pw', NULL), +(62, 750, 'site_id', 'sid', NULL), +(62, 750, 'reward', 'verguetung', NULL), +(62, 750, 'reload', 'reload', NULL), +(62, 750, 'remain_clicks', 'uebrig', NULL), +(62, 751, 'extra', 'art', 'forcedbanner'), +(62, 751, 'affiliate_id', 'uid', NULL), +(62, 751, 'password', 'pw', NULL), +(62, 751, 'site_id', 'sid', NULL), +(62, 751, 'reward', 'verguetung', NULL), +(62, 751, 'reload', 'reload', NULL), +(62, 751, 'remain_clicks', 'uebrig', NULL), +(62, 751, 'minimum_stay', 'ma', NULL), +(62, 752, 'extra', 'art', 'forcedtextlink'), +(62, 752, 'affiliate_id', 'uid', NULL), +(62, 752, 'password', 'pw', NULL), +(62, 752, 'site_id', 'sid', NULL), +(62, 752, 'reward', 'verguetung', NULL), +(62, 752, 'reload', 'reload', NULL), +(62, 752, 'remain_clicks', 'uebrig', NULL), +(62, 752, 'minimum_stay', 'ma', NULL), +(62, 753, 'extra', 'art', 'htmlmail'), +(62, 753, 'affiliate_id', 'uid', NULL), +(62, 753, 'password', 'pw', NULL), +(62, 753, 'site_id', 'sid', NULL), +(62, 753, 'reward', 'verguetung', NULL), +(62, 753, 'reload', 'reload', NULL), +(62, 753, 'remain_clicks', 'uebrig', NULL), +(62, 753, 'minimum_stay', 'ma', NULL), +(62, 754, 'extra', 'art', 'bannerview'), +(62, 754, 'affiliate_id', 'uid', NULL), +(62, 754, 'password', 'pw', NULL), +(62, 754, 'site_id', 'sid', NULL), +(62, 754, 'reward', 'verguetung', NULL), +(62, 754, 'reload', 'reload', NULL), +(62, 754, 'remain_clicks', 'uebrig', NULL), +(62, 755, 'extra', 'art', 'paidmail'), +(62, 755, 'affiliate_id', 'uid', NULL), +(62, 755, 'password', 'pw', NULL), +(62, 755, 'site_id', 'sid', NULL), +(62, 755, 'reward', 'verguetung', NULL), +(62, 755, 'reload', 'reload', NULL), +(62, 755, 'remain_clicks', 'uebrig', NULL), +(62, 755, 'minimum_stay', 'ma', NULL), +(62, 756, 'extra', 'art', 'popup'), +(62, 756, 'affiliate_id', 'uid', NULL), +(62, 756, 'password', 'pw', NULL), +(62, 756, 'site_id', 'sid', NULL), +(62, 756, 'reward', 'verguetung', NULL), +(62, 756, 'reload', 'reload', NULL), +(62, 756, 'remain_clicks', 'uebrig', NULL), +(62, 756, 'minimum_stay', 'ma', NULL), +(62, 757, 'extra', 'art', 'skybannerklick'), +(62, 757, 'affiliate_id', 'uid', NULL), +(62, 757, 'password', 'pw', NULL), +(62, 757, 'site_id', 'sid', NULL), +(62, 757, 'reward', 'verguetung', NULL), +(62, 757, 'reload', 'reload', NULL), +(62, 757, 'remain_clicks', 'uebrig', NULL), +(62, 758, 'extra', 'art', 'skybannerview'), +(62, 758, 'affiliate_id', 'uid', NULL), +(62, 758, 'password', 'pw', NULL), +(62, 758, 'site_id', 'sid', NULL), +(62, 758, 'reward', 'verguetung', NULL), +(62, 758, 'reload', 'reload', NULL), +(62, 758, 'remain_clicks', 'uebrig', NULL), +(62, 759, 'extra', 'art', 'surfbarklick'), +(62, 759, 'affiliate_id', 'uid', NULL), +(62, 759, 'password', 'pw', NULL), +(62, 759, 'site_id', 'sid', NULL), +(62, 759, 'reward', 'verguetung', NULL), +(62, 759, 'reload', 'reload', NULL), +(62, 759, 'remain_clicks', 'uebrig', NULL), +(62, 760, 'extra', 'art', 'surfbarview'), +(62, 760, 'affiliate_id', 'uid', NULL), +(62, 760, 'password', 'pw', NULL), +(62, 760, 'site_id', 'sid', NULL), +(62, 760, 'reward', 'verguetung', NULL), +(62, 760, 'reload', 'reload', NULL), +(62, 760, 'remain_clicks', 'uebrig', NULL), +(62, 761, 'extra', 'art', 'textlinkklick'), +(62, 761, 'affiliate_id', 'uid', NULL), +(62, 761, 'password', 'pw', NULL), +(62, 761, 'site_id', 'sid', NULL), +(62, 761, 'reward', 'verguetung', NULL), +(62, 761, 'reload', 'reload', NULL), +(62, 761, 'remain_clicks', 'uebrig', NULL), +(62, 762, 'extra', 'art', 'textlinkview'), +(62, 762, 'affiliate_id', 'uid', NULL), +(62, 762, 'password', 'pw', NULL), +(62, 762, 'site_id', 'sid', NULL), +(62, 762, 'reward', 'verguetung', NULL), +(62, 762, 'reload', 'reload', NULL), +(62, 762, 'remain_clicks', 'uebrig', NULL), +(62, 763, 'extra', 'art', 'traffic'), +(62, 763, 'affiliate_id', 'uid', NULL), +(62, 763, 'password', 'pw', NULL), +(62, 763, 'site_id', 'sid', NULL), +(62, 763, 'reward', 'verguetung', NULL), +(62, 763, 'reload', 'reload', NULL), +(62, 763, 'remain_clicks', 'uebrig', NULL), +(62, 763, 'minimum_stay', 'ma', 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'), @@ -8968,6 +9118,107 @@ addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`net (26, 246, 9, 9), (26, 246, 25, 10)"); +// API array elements - Earn4Webbis +addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES +(62, 747, 7, 1), +(62, 747, 2, 2), +(62, 747, 5, 3), +(62, 747, 4, 4), +(62, 747, 6, 5), +(62, 748, 7, 1), +(62, 748, 2, 2), +(62, 748, 5, 3), +(62, 748, 4, 4), +(62, 748, 6, 5), +(62, 749, 7, 1), +(62, 749, 2, 2), +(62, 749, 5, 3), +(62, 749, 4, 4), +(62, 749, 6, 5), +(62, 750, 7, 1), +(62, 750, 2, 2), +(62, 750, 5, 3), +(62, 750, 4, 4), +(62, 750, 6, 5), +(62, 751, 7, 1), +(62, 751, 2, 2), +(62, 751, 5, 3), +(62, 751, 4, 4), +(62, 751, 6, 5), +(62, 751, 10, 6), +(62, 752, 1, 1), +(62, 752, 2, 2), +(62, 752, 5, 3), +(62, 752, 4, 4), +(62, 752, 6, 5), +(62, 752, 10, 6), +(62, 752, 9, 7), +(62, 753, 1, 1), +(62, 753, 2, 2), +(62, 753, 5, 3), +(62, 753, 4, 4), +(62, 753, 6, 5), +(62, 753, 10, 6), +(62, 753, 38, 7), +(62, 753, 9, 8), +(62, 754, 7, 1), +(62, 754, 2, 2), +(62, 754, 5, 3), +(62, 754, 4, 4), +(62, 754, 6, 5), +(62, 755, 1, 1), +(62, 755, 2, 2), +(62, 755, 5, 3), +(62, 755, 4, 4), +(62, 755, 6, 5), +(62, 755, 10, 6), +(62, 755, 38, 7), +(62, 755, 9, 8), +(62, 756, 7, 1), +(62, 756, 2, 2), +(62, 756, 5, 3), +(62, 756, 4, 4), +(62, 756, 6, 5), +(62, 756, 10, 6), +(62, 757, 7, 1), +(62, 757, 2, 2), +(62, 757, 5, 3), +(62, 757, 4, 4), +(62, 757, 6, 5), +(62, 758, 7, 1), +(62, 758, 2, 2), +(62, 758, 5, 3), +(62, 758, 4, 4), +(62, 758, 6, 5), +(62, 759, 7, 1), +(62, 759, 2, 2), +(62, 759, 5, 3), +(62, 759, 4, 4), +(62, 759, 6, 5), +(62, 760, 7, 1), +(62, 760, 2, 2), +(62, 760, 5, 3), +(62, 760, 4, 4), +(62, 760, 6, 5), +(62, 761, 1, 1), +(62, 761, 2, 2), +(62, 761, 5, 3), +(62, 761, 4, 4), +(62, 761, 6, 5), +(62, 761, 9, 6), +(62, 762, 1, 1), +(62, 762, 2, 2), +(62, 762, 5, 3), +(62, 762, 4, 4), +(62, 762, 6, 5), +(62, 762, 9, 6), +(62, 763, 7, 1), +(62, 763, 2, 2), +(62, 763, 5, 3), +(62, 763, 4, 4), +(62, 763, 6, 5), +(62, 763, 10, 6)"); + // API array elements - FuCoExSponsor.net addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES (29, 273, 7, 1), diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index a5cec2ca00..54db0a1d26 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -677,7 +677,8 @@ ORDER BY if (((($includeConfigured === FALSE) && (isNetworkApiConfigured($row['network_id']))) || (($includeUnconfigured === FALSE) && (!isNetworkApiConfigured($row['network_id'])))) && ($separated === FALSE)) { // Skip this entry continue; - } elseif ((!empty($addSql)) && ( + // @TODO Unfinished: } elseif ((!empty($addSql)) && ( + } // END - if // Add entry $rows[$row['network_id']] = $row; diff --git a/inc/libs/newsletter_functions.php b/inc/libs/newsletter_functions.php index 525cb28540..c2610c7cbd 100644 --- a/inc/libs/newsletter_functions.php +++ b/inc/libs/newsletter_functions.php @@ -38,7 +38,7 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // function insertNewsletterUrls ($text) { @@ -78,11 +78,10 @@ function insertNewsletterUrls ($text) { $idx = $pos - 1; while ($idx > 0) { $check = substr($test2, $idx, 1); - if (!in_array($check, $GLOBALS['valid_email_chars'])) - { + if (!in_array($check, $GLOBALS['valid_email_chars'])) { // Char found so we end here break; - } + } // END - if $idx--; } @@ -90,7 +89,7 @@ function insertNewsletterUrls ($text) { // Starting mark is found $check2 = substr($test, 0, ($idx + 1)); $test = substr($test, ($idx + 1)); - } + } // END - if // And now go forward... $idx = 0; @@ -99,28 +98,28 @@ function insertNewsletterUrls ($text) { if ((!in_array($check, $GLOBALS['valid_email_chars'])) && ($check != '@')) { // Char found so end here again break; - } + } // END - if $idx++; - } + } // END - while if ($idx > 0) { // Maybe this is the email address? $check = substr($test, 0, $idx); - } + } // END - if // Now replace the email against anchor with mailto and pray... array_push($PARTS, $check2 . $check); // Remove email from testing string (see above why...) $test = substr($test, strlen($check)); - } + } // END - while // Now put all parts together $text = ''; array_push($PARTS, $test); foreach ($PARTS as $part) { $text .= $part; - } + } // END - foreach // Pre-ompile possible own HTML tags out... return preCompileCode($text); @@ -148,5 +147,5 @@ function sendNewsletter ($to, $subject, $message, $mode) { } } -// +// [EOF] ?> -- 2.39.5