From 522104747cdf407729cdff7c51157e12607207af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 9 Sep 2011 08:37:45 +0000 Subject: [PATCH] Advertising network 'Ads2Webbi' basicly added --- inc/extensions/ext-network.php | 140 +++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) diff --git a/inc/extensions/ext-network.php b/inc/extensions/ext-network.php index a2e6f713b4..ed5f0971fa 100644 --- a/inc/extensions/ext-network.php +++ b/inc/extensions/ext-network.php @@ -497,6 +497,17 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", (405, 39, 'skybanner_view', 'http://www.ads2earn.de/interface/out_banner.php', 'http://www.ads2earn.de/bannerklf.php?id=%CID%', 'http://www.ads2earn.de/banner.php?id=%CID%','h')"); // Network type handlers - Ads2Webbi + 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`) VALUES +(406, 40, 'forcedbanner', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads2webbi.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%','h'), +(407, 40, 'forcedtextlink', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%', NULL,'h'), +(408, 40, 'banner_view', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads2webbi.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%','h'), +(409, 40, 'banner_click', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads2webbi.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%','h'), +(410, 40, 'skybanner_view', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads2webbi.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%','h'), +(411, 40, 'button_view', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.ads2webbi.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%','h'), +(412, 40, 'textlink_view', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%', NULL,'h'), +(413, 40, 'traffic', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL,'h'), +(414, 40, 'popup', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%', NULL,'h'), +(415, 40, 'textmail', 'http://www.ads2webbi.de/interface/', 'http://www.ads2webbi.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%', NULL,'h')"); // Network type handlers - Ads4 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 @@ -1949,6 +1960,79 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", (39, 405, 'size', 'size', '120x600'), (39, 405, 'minimum_stay', 'ma', NULL)"); + // Request parameters per type handler - Ads2Webbi + 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 +(40, 406, 'extra', 'typ', 'forcedbanner'), +(40, 406, 'id', 'id', NULL), +(40, 406, 'password', 'pw', NULL), +(40, 406, 'remain', 'uebrig', NULL), +(40, 406, 'reload', 'reload', NULL), +(40, 406, 'reward', 'verguetung', NULL), +(40, 406, 'minimum_stay', 'ma', NULL), +(40, 407, 'extra', 'typ', 'forcedtextlink'), +(40, 407, 'id', 'id', NULL), +(40, 407, 'password', 'pw', NULL), +(40, 407, 'remain', 'uebrig', NULL), +(40, 407, 'reload', 'reload', NULL), +(40, 407, 'reward', 'verguetung', NULL), +(40, 407, 'minimum_stay', 'ma', NULL), +(40, 408, 'extra', 'typ', 'bannerview'), +(40, 408, 'id', 'id', NULL), +(40, 408, 'password', 'pw', NULL), +(40, 408, 'remain', 'uebrig', NULL), +(40, 408, 'reload', 'reload', NULL), +(40, 408, 'reward', 'verguetung', NULL), +(40, 408, 'minimum_stay', 'ma', NULL), +(40, 409, 'extra', 'typ', 'bannerklick'), +(40, 409, 'id', 'id', NULL), +(40, 409, 'password', 'pw', NULL), +(40, 409, 'remain', 'uebrig', NULL), +(40, 409, 'reload', 'reload', NULL), +(40, 409, 'reward', 'verguetung', NULL), +(40, 409, 'minimum_stay', 'ma', NULL), +(40, 410, 'extra', 'typ', 'skybannerview'), +(40, 410, 'id', 'id', NULL), +(40, 410, 'password', 'pw', NULL), +(40, 410, 'remain', 'uebrig', NULL), +(40, 410, 'reload', 'reload', NULL), +(40, 410, 'reward', 'verguetung', NULL), +(40, 410, 'minimum_stay', 'ma', NULL), +(40, 411, 'extra', 'typ', 'buttonview'), +(40, 411, 'id', 'id', NULL), +(40, 411, 'password', 'pw', NULL), +(40, 411, 'remain', 'uebrig', NULL), +(40, 411, 'reload', 'reload', NULL), +(40, 411, 'reward', 'verguetung', NULL), +(40, 411, 'minimum_stay', 'ma', NULL), +(40, 412, 'extra', 'typ', 'textview'), +(40, 412, 'id', 'id', NULL), +(40, 412, 'password', 'pw', NULL), +(40, 412, 'remain', 'uebrig', NULL), +(40, 412, 'reload', 'reload', NULL), +(40, 412, 'reward', 'verguetung', NULL), +(40, 412, 'minimum_stay', 'ma', NULL), +(40, 413, 'extra', 'typ', 'traffic'), +(40, 413, 'id', 'id', NULL), +(40, 413, 'password', 'pw', NULL), +(40, 413, 'remain', 'uebrig', NULL), +(40, 413, 'reload', 'reload', NULL), +(40, 413, 'reward', 'verguetung', NULL), +(40, 413, 'minimum_stay', 'ma', NULL), +(40, 414, 'extra', 'typ', 'popup'), +(40, 414, 'id', 'id', NULL), +(40, 414, 'password', 'pw', NULL), +(40, 414, 'remain', 'uebrig', NULL), +(40, 414, 'reload', 'reload', NULL), +(40, 414, 'reward', 'verguetung', NULL), +(40, 414, 'minimum_stay', 'ma', NULL), +(40, 415, 'extra', 'typ', 'paidmail'), +(40, 415, 'id', 'id', NULL), +(40, 415, 'password', 'pw', NULL), +(40, 415, 'remain', 'uebrig', NULL), +(40, 415, 'reload', 'reload', NULL), +(40, 415, 'reward', 'verguetung', NULL), +(40, 415, 'minimum_stay', 'ma', NULL)"); + // Request parameters per type handler - Ads4 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 (6, 14, 'currency', 'waehrung', NULL), @@ -4750,6 +4834,62 @@ UNIQUE INDEX `provider_type` (`network_id`,`network_type_id`)", (39, 405, 8, 7), (39, 405, 10, 8)"); + // API array elements - Ads2Webbi + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`,`network_type_id`,`network_array_index`,`sort`) VALUES +(40, 406, 1, 1), +(40, 406, 2, 2), +(40, 406, 4, 3), +(40, 406, 5, 4), +(40, 406, 6, 5), +(40, 407, 1, 1), +(40, 407, 2, 2), +(40, 407, 4, 3), +(40, 407, 5, 4), +(40, 407, 6, 5), +(40, 408, 1, 1), +(40, 408, 2, 2), +(40, 408, 4, 3), +(40, 408, 5, 4), +(40, 408, 6, 5), +(40, 409, 1, 1), +(40, 409, 2, 2), +(40, 409, 4, 3), +(40, 409, 5, 4), +(40, 409, 6, 5), +(40, 410, 1, 1), +(40, 410, 2, 2), +(40, 410, 4, 3), +(40, 410, 5, 4), +(40, 410, 6, 5), +(40, 411, 1, 1), +(40, 411, 2, 2), +(40, 411, 4, 3), +(40, 411, 5, 4), +(40, 411, 6, 5), +(40, 412, 1, 1), +(40, 412, 2, 2), +(40, 412, 4, 3), +(40, 412, 5, 4), +(40, 412, 6, 5), +(40, 413, 1, 1), +(40, 413, 2, 2), +(40, 413, 4, 3), +(40, 413, 5, 4), +(40, 413, 6, 5), +(40, 414, 1, 1), +(40, 414, 2, 2), +(40, 414, 4, 3), +(40, 414, 5, 4), +(40, 414, 6, 5), +(40, 414, 10, 6), +(40, 415, 1, 1), +(40, 415, 2, 2), +(40, 415, 4, 3), +(40, 415, 5, 4), +(40, 415, 6, 5), +(40, 415, 10, 6), +(40, 415, 9, 7)"); + // API array elements - Ads4.de addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`,`network_type_id`,`network_array_index`,`sort`) VALUES (6, 14, 7, 1), -- 2.39.5