From 88baf1e93c2245ce391024c7dcc16fc39dd09e95 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 12 Jan 2013 11:12:10 +0000 Subject: [PATCH] Extension ext-network continued: - Added optional 'VisualPayCheck' parameter for API configuration - Added network 'ProAdverty' - TODOs.txt updated --- DOCS/TODOs.txt | 27 +-- inc/extensions/ext-network.php | 187 +++++++++++++++++- inc/language/network_de.php | 3 +- inc/libs/network_functions.php | 14 +- inc/modules/admin/what-config_network_api.php | 6 +- .../html/admin/admin_config_network_api.tpl | 3 +- 6 files changed, 211 insertions(+), 29 deletions(-) diff --git a/DOCS/TODOs.txt b/DOCS/TODOs.txt index 8c176c4912..61d9e23aee 100644 --- a/DOCS/TODOs.txt +++ b/DOCS/TODOs.txt @@ -28,18 +28,19 @@ ./inc/extensions/ext-network.php:27: * @TODO Fusion-Ads: Has click/banner URL in API response * ./inc/extensions/ext-network.php:28: * @TODO GeldSponsor.de Requires ID card copy/business reg. * ./inc/extensions/ext-network.php:29: * @TODO GolloX: Please add full support * -./inc/extensions/ext-network.php:30: * @TODO paid4ad: Which URLs for click and banner? * -./inc/extensions/ext-network.php:31: * @TODO SuperPromo24: HighForced banner, leader board, mini/page layer * -./inc/extensions/ext-network.php:32: * @TODO SuperPromo24: Textlink view is a JavaScript * -./inc/extensions/ext-network.php:33: * @TODO Der Werbepartner.cc: Banner click/view is JavaScript! * -./inc/extensions/ext-network.php:34: * @TODO Der Werbepartner.cc: Forced textlink not correct * -./inc/extensions/ext-network.php:35: * @TODO Der Werbepartner.cc: Layer not correct * -./inc/extensions/ext-network.php:36: * @TODO Der Werbepartner.cc: Sky banner is JavaScript! * -./inc/extensions/ext-network.php:37: * @TODO Der Werbepartner.cc: Surfbar click not correct * -./inc/extensions/ext-network.php:38: * @TODO Der Werbepartner.cc: Textlink not correct * -./inc/extensions/ext-network.php:39: * @TODO Xijide: Lead/Sale (together) unsupported (no target URL) * -./inc/extensions/ext-network.php:40: * @TODO Yoo!Media: What is LayerAd compared to Layer click? * -./inc/extensions/ext-network.php:97: // @TODO network_type_handler is an internal name and needs documentation +./inc/extensions/ext-network.php:30: * @TODO MasterAd: Please add full support * +./inc/extensions/ext-network.php:31: * @TODO paid4ad: Which URLs for click and banner? * +./inc/extensions/ext-network.php:32: * @TODO SuperPromo24: HighForced banner, leader board, mini/page layer * +./inc/extensions/ext-network.php:33: * @TODO SuperPromo24: Textlink view is a JavaScript * +./inc/extensions/ext-network.php:34: * @TODO Der Werbepartner.cc: Banner click/view is JavaScript! * +./inc/extensions/ext-network.php:35: * @TODO Der Werbepartner.cc: Forced textlink not correct * +./inc/extensions/ext-network.php:36: * @TODO Der Werbepartner.cc: Layer not correct * +./inc/extensions/ext-network.php:37: * @TODO Der Werbepartner.cc: Sky banner is JavaScript! * +./inc/extensions/ext-network.php:38: * @TODO Der Werbepartner.cc: Surfbar click not correct * +./inc/extensions/ext-network.php:39: * @TODO Der Werbepartner.cc: Textlink not correct * +./inc/extensions/ext-network.php:40: * @TODO Xijide: Lead/Sale (together) unsupported (no target URL) * +./inc/extensions/ext-network.php:41: * @TODO Yoo!Media: What is LayerAd compared to Layer click? * +./inc/extensions/ext-network.php:98: // @TODO network_type_handler is an internal name and needs documentation ./inc/extensions/ext-newsletter.php:218: // @TODO Move these into configuration ./inc/extensions/ext-nickname.php:52: // @TODO NOT NULL DEFAULT '' is bad practice, use NULL ./inc/extensions/ext-yoomedia.php:120: // @TODO Can this be moved into a database table? @@ -85,7 +86,7 @@ ./inc/libs/mailid_functions.php:123: // @TODO Rewrite these blocks to filter ./inc/libs/mailid_functions.php:47: // @TODO Rewrite this to a dynamic include or so ./inc/libs/mailid_functions.php:93: // @TODO Rewrite this to a filter -./inc/libs/network_functions.php:1182: // @TODO Implement this function, don't forget to set HTTP status back to '200 OK' if everything went fine +./inc/libs/network_functions.php:1183: // @TODO Implement this function, don't forget to set HTTP status back to '200 OK' if everything went fine ./inc/libs/order_functions.php:46: // @TODO Move this array into a filter ./inc/libs/rallye_functions.php:771:// @TODO This function does not load min_users, min_prices, please encapsulate loading rallye data with e.g. getRallyeDataFromId() ./inc/libs/rallye_functions.php:838: $EXPIRE = 3; // @TODO The hard-coded value... diff --git a/inc/extensions/ext-network.php b/inc/extensions/ext-network.php index 53ccee2a87..6770ed7f16 100644 --- a/inc/extensions/ext-network.php +++ b/inc/extensions/ext-network.php @@ -27,6 +27,7 @@ * @TODO Fusion-Ads: Has click/banner URL in API response * * @TODO GeldSponsor.de Requires ID card copy/business reg. * * @TODO GolloX: Please add full support * + * @TODO MasterAd: Please add full support * * @TODO paid4ad: Which URLs for click and banner? * * @TODO SuperPromo24: HighForced banner, leader board, mini/page layer * * @TODO SuperPromo24: Textlink view is a JavaScript * @@ -200,6 +201,7 @@ INDEX (`network_type_id`)", `network_api_referral_link` VARCHAR(255) NULL DEFAULT NULL, `network_api_referral_button` VARCHAR(255) NULL DEFAULT NULL, `network_api_remaining_requests` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, +`network_api_visual_pay_check` VARCHAR(255) NULL DEFAULT NULL, PRIMARY KEY (`network_api_id`), UNIQUE INDEX (`network_id`), UNIQUE INDEX `network_affiliate` (`network_id`, `network_api_affiliate_id`), @@ -367,7 +369,7 @@ INDEX `provider_type` (`network_id`, `network_type_id`)", ('admin_lose', 'Adminlose.de', 'http://www.adminlose.de/index.php?ref=2148', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'), ('ad_mono', 'Admono.de', 'http://www.admono.de/?ref=92', '|', '|', 'GET', 'ISO-8859-1', 'N', 150, 'Y'), ('ad-promotion-net', 'Ad-Promotion.net', 'http://ad-promotion.net?ref=10194', '|', '|', 'GET', 'WINDOWS-1252', 'N', 150, 'Y'), -('ad_provi', 'Adprovi.de', 'http://www.adprovi.de?ref=439', '|', '|', 'GET', 'ISO-8859-1', 'N', 200, 'Y'), +('ad_provi', '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'), ('super_promo24', 'SuperPromo24', 'http://www.superpromo24.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'Y'), @@ -375,7 +377,9 @@ INDEX `provider_type` (`network_id`, `network_type_id`)", ('xiji', 'Xiji.de', 'http://www.xiji.de/index.php?ref=7715', '|', '|', 'GET', 'ISO-8859-1', 'N', 100, 'Y'), ('crystall', 'Crystall Werbenetzwerk', 'http://www.crystall.de?ref=1575', '|', '|', 'GET', 'ISO-8859-1', 'N', 200, 'Y'), ('gollox', 'GolloX', 'http://www.gollox.de/?id=720', '|', '|', 'GET', 'ISO-8859-1', 'N', 0, 'Y'), -('giga_ad', 'Giga-Ad', 'http://giga-ad.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'Y', 250, 'Y')"); +('giga_ad', 'Giga-Ad', 'http://giga-ad.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'Y', 250, 'Y'), +('master_ad', 'MasterAd', 'http://www.masterad.de/?ref=1661&refsubid=script', '|', '|', 'GET', 'ISO-8859-1', 'N', 300, 'Y'), +('pro_advert', 'ProAdvert', 'http://www.pro-advert.de?ref=450', '|', '|', 'GET', 'ISO-8859-16', 'N', 250, '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 @@ -887,13 +891,13 @@ INDEX `provider_type` (`network_id`, `network_type_id`)", // Network type handlers - Make-Euros 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 -(63, 16, 'banner_click', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%', 'h', 'NONE'), -(64, 16, 'banner_view', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%', 'h', 'NONE'), +(63, 16, 'banner_click', 'http://www.make-euros.de/interface/output.php', NULL, NULL, 'h', 'NONE'), +(64, 16, 'banner_view', 'http://www.make-euros.de/interface/output.php', NULL, NULL, 'h', 'NONE'), (65, 16, 'textlink_click', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/textlinkklick.php?id=%CID%', NULL, 'h', 'NONE'), (66, 16, 'textlink_view', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/textlinkklick.php?id=%CID%', NULL, 'h', 'NONE'), -(67, 16, 'surfbar_click', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%', 'h', 'NONE'), -(68, 16, 'forced_banner', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%', 'h', 'NONE'), -(69, 16, 'surfbar_view', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%', 'h', 'NONE'), +(67, 16, 'surfbar_click', 'http://www.make-euros.de/interface/output.php', NULL, NULL, 'h', 'NONE'), +(68, 16, 'forced_banner', 'http://www.make-euros.de/interface/output.php', NULL, NULL, 'h', 'NONE'), +(69, 16, 'surfbar_view', 'http://www.make-euros.de/interface/output.php', NULL, NULL, 'h', 'NONE'), (70, 16, 'textmail', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/emailf.php?id=%CID%', NULL, 'h', 'NONE'), (71, 16, 'htmlmail', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/emailf.php?id=%CID%', NULL, 'h', 'NONE'), (72, 16, 'layer_click', 'http://www.make-euros.de/interface/output.php', 'http://www.make-euros.de/layer.php?id=%CID%', NULL, 'h', 'NONE'), @@ -934,6 +938,19 @@ INDEX `provider_type` (`network_id`, `network_type_id`)", (81, 18, 'textlink_view', 'http://www.power-promo.de/interface/out_textlink.php', 'http://www.power-promo.de/textlinkklick.php?id=%CID%', NULL, 'h', 'NONE'), (85, 18, 'textmail', 'http://www.power-promo.de/interface/out_paidmail.php', 'http://www.power-promo.de/emailf.php?id=%CID%', NULL, 'h', 'NONE')"); + // Network type handlers - ProAdvert + 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 +(565, 48, 'forced_banner', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', 'http://www.pro-advert.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%', 'h','NONE'), +(566, 48, 'forced_textlink', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', NULL, 'h','NONE'), +(567, 48, 'banner_view', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', 'http://www.pro-advert.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%', 'h','NONE'), +(569, 48, 'banner_click', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', 'http://www.pro-advert.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'h','NONE'), +(570, 48, 'skyscraper_view', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', 'http://www.pro-advert.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%', 'h','NONE'), +(571, 48, 'button_view', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', 'http://www.pro-advert.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%', 'h','NONE'), +(572, 48, 'textlink_view', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', NULL, 'h','NONE'), +(573, 48, 'traffic', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', NULL, 'h','NONE'), +(574, 48, 'popup', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', NULL, 'h','NONE'), +(575, 48, 'textmail', 'http://www.pro-advert.de/interface/api_2.php', 'http://www.pro-advert.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', NULL, 'h','NONE')"); + // Network type handlers - SeCash 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 (93, 19, 'forced_banner', 'http://www.secash.de/interface/api_2.php', 'http://www.secash.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', 'http://www.secash.de/codes/forced_bannerview.php?id=%UID%&bid=%CID%&aid=%SID%', 'h', 'NONE'), @@ -4347,6 +4364,79 @@ INDEX `provider_type` (`network_id`, `network_type_id`)", (18, 92, 'reward', 'verguetung', NULL), (18, 92, 'site_id', 'sid', NULL)"); + // Request parameters per type handler - ProAdvert + 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 +(48, 565, 'extra', 'typ', 'forcedbanner'), +(48, 565, 'affiliate_id', 'id', NULL), +(48, 565, 'password', 'pw', NULL), +(48, 565, 'remain_clicks', 'uebrig', NULL), +(48, 565, 'reload', 'reload', NULL), +(48, 565, 'reward', 'verguetung', NULL), +(48, 565, 'site_id', 'siteid', NULL), +(48, 566, 'extra', 'typ', 'forcedtextlink'), +(48, 566, 'affiliate_id', 'id', NULL), +(48, 566, 'password', 'pw', NULL), +(48, 566, 'remain_clicks', 'uebrig', NULL), +(48, 566, 'reload', 'reload', NULL), +(48, 566, 'reward', 'verguetung', NULL), +(48, 566, 'site_id', 'siteid', NULL), +(48, 567, 'extra', 'typ', 'bannerview'), +(48, 567, 'affiliate_id', 'id', NULL), +(48, 567, 'password', 'pw', NULL), +(48, 567, 'remain_clicks', 'uebrig', NULL), +(48, 567, 'reload', 'reload', NULL), +(48, 567, 'reward', 'verguetung', NULL), +(48, 567, 'site_id', 'siteid', NULL), +(48, 569, 'extra', 'typ', 'skybannerview'), +(48, 569, 'affiliate_id', 'id', NULL), +(48, 569, 'password', 'pw', NULL), +(48, 569, 'remain_clicks', 'uebrig', NULL), +(48, 569, 'reload', 'reload', NULL), +(48, 569, 'reward', 'verguetung', NULL), +(48, 569, 'site_id', 'siteid', NULL), +(48, 570, 'extra', 'typ', 'buttonview'), +(48, 570, 'affiliate_id', 'id', NULL), +(48, 570, 'password', 'pw', NULL), +(48, 570, 'remain_clicks', 'uebrig', NULL), +(48, 570, 'reload', 'reload', NULL), +(48, 570, 'reward', 'verguetung', NULL), +(48, 570, 'site_id', 'siteid', NULL), +(48, 571, 'extra', 'typ', 'bannerklick'), +(48, 571, 'affiliate_id', 'id', NULL), +(48, 571, 'password', 'pw', NULL), +(48, 571, 'remain_clicks', 'uebrig', NULL), +(48, 571, 'reload', 'reload', NULL), +(48, 571, 'reward', 'verguetung', NULL), +(48, 571, 'site_id', 'siteid', NULL), +(48, 572, 'extra', 'typ', 'textview'), +(48, 572, 'affiliate_id', 'id', NULL), +(48, 572, 'password', 'pw', NULL), +(48, 572, 'remain_clicks', 'uebrig', NULL), +(48, 572, 'reload', 'reload', NULL), +(48, 572, 'reward', 'verguetung', NULL), +(48, 572, 'site_id', 'siteid', NULL), +(48, 573, 'extra', 'typ', 'popup'), +(48, 573, 'affiliate_id', 'id', NULL), +(48, 573, 'password', 'pw', NULL), +(48, 573, 'remain_clicks', 'uebrig', NULL), +(48, 573, 'reload', 'reload', NULL), +(48, 573, 'reward', 'verguetung', NULL), +(48, 573, 'site_id', 'siteid', NULL), +(48, 574, 'extra', 'typ', 'traffic'), +(48, 574, 'affiliate_id', 'id', NULL), +(48, 574, 'password', 'pw', NULL), +(48, 574, 'remain_clicks', 'uebrig', NULL), +(48, 574, 'reload', 'reload', NULL), +(48, 574, 'reward', 'verguetung', NULL), +(48, 574, 'site_id', 'siteid', NULL), +(48, 575, 'extra', 'typ', 'paidmail'), +(48, 575, 'affiliate_id', 'id', NULL), +(48, 575, 'password', 'pw', NULL), +(48, 575, 'remain_clicks', 'uebrig', NULL), +(48, 575, 'reload', 'reload', NULL), +(48, 575, 'reward', 'verguetung', NULL), +(48, 575, 'site_id', 'siteid', NULL)"); + // Request parameters per type handler - SeCash 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 (19, 93, 'extra', 'typ', 'forced_banner'), @@ -7861,6 +7951,89 @@ INDEX `provider_type` (`network_id`, `network_type_id`)", (18, 92, 9, 9), (18, 92, 25, 10)"); + // API array elements - ProAdvert + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES +(48, 565, 1, 1), +(48, 565, 2, 2), +(48, 565, 4, 3), +(48, 565, 5, 4), +(48, 565, 6, 5), +(48, 565, 10, 6), +(48, 565, 9, 7), +(48, 565, 41, 8), +(48, 566, 1, 1), +(48, 566, 2, 2), +(48, 566, 4, 3), +(48, 566, 5, 4), +(48, 566, 6, 5), +(48, 566, 10, 6), +(48, 566, 9, 7), +(48, 566, 41, 8), +(48, 567, 1, 1), +(48, 567, 2, 2), +(48, 567, 4, 3), +(48, 567, 5, 4), +(48, 567, 6, 5), +(48, 567, 10, 6), +(48, 567, 9, 7), +(48, 567, 41, 8), +(48, 569, 1, 1), +(48, 569, 2, 2), +(48, 569, 4, 3), +(48, 569, 5, 4), +(48, 569, 6, 5), +(48, 569, 10, 6), +(48, 569, 9, 7), +(48, 569, 41, 8), +(48, 570, 1, 1), +(48, 570, 2, 2), +(48, 570, 4, 3), +(48, 570, 5, 4), +(48, 570, 6, 5), +(48, 570, 10, 6), +(48, 570, 9, 7), +(48, 570, 41, 8), +(48, 571, 1, 1), +(48, 571, 2, 2), +(48, 571, 4, 3), +(48, 571, 5, 4), +(48, 571, 6, 5), +(48, 571, 10, 6), +(48, 571, 9, 7), +(48, 571, 41, 8), +(48, 572, 1, 1), +(48, 572, 2, 2), +(48, 572, 4, 3), +(48, 572, 5, 4), +(48, 572, 6, 5), +(48, 572, 10, 6), +(48, 572, 9, 7), +(48, 572, 41, 8), +(48, 573, 1, 1), +(48, 573, 2, 2), +(48, 573, 4, 3), +(48, 573, 5, 4), +(48, 573, 6, 5), +(48, 573, 10, 6), +(48, 573, 9, 7), +(48, 573, 41, 8), +(48, 574, 1, 1), +(48, 574, 2, 2), +(48, 574, 4, 3), +(48, 574, 5, 4), +(48, 574, 6, 5), +(48, 574, 10, 6), +(48, 574, 9, 7), +(48, 574, 41, 8), +(48, 575, 1, 1), +(48, 575, 2, 2), +(48, 575, 4, 3), +(48, 575, 5, 4), +(48, 575, 6, 5), +(48, 575, 10, 6), +(48, 575, 9, 7), +(48, 575, 41, 8)"); + // API array elements - SeCash addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES (19, 93, 1, 1), diff --git a/inc/language/network_de.php b/inc/language/network_de.php index 04cca0012f..0a453f002a 100644 --- a/inc/language/network_de.php +++ b/inc/language/network_de.php @@ -104,7 +104,7 @@ addMessages(array( 'ADMIN_NETWORK_TYPE_HANDLER_CONFIG_LINK_TITLE' => "Weiter zur Werbart-Handler-Konfiguration", 'ADMIN_LIST_NETWORK_HANDLER_TYPES_LINK_TITLE' => "Weiter zu den Werbearten", 'ADMIN_LIST_NETWORK_REQUEST_PARAMS_LINK_TITLE' => "Weiter zu den Abfrageparametern", - 'ADMIN_LIST_NETWORK_ARRAY_TRANSLATION_LINK_TITLE' => "Weiter zu den Übersetzungen zum Antwort-Arrayn", + 'ADMIN_LIST_NETWORK_ARRAY_TRANSLATION_LINK_TITLE' => "Weiter zu den Übersetzungen im Antwort-Array", 'ADMIN_LIST_NETWORK_ERROR_CODES_LINK_TITLE' => "Weiter zu den Fehlercodes", // - Buttons 'ADMIN_ADD_NETWORK_SUBMIT' => "Allgemeine Daten anlegen", @@ -303,6 +303,7 @@ addMessages(array( 'ADMIN_CONFIG_NETWORK_API_ENTER_REFERRAL_LINK' => "Ihr Referral-Link:", 'ADMIN_CONFIG_NETWORK_API_ENTER_REFERRAL_BUTTON' => "Optionaler 88x31 Werbebutton:", 'ADMIN_CONFIG_NETWORK_API_REMAINING_REQUESTS' => "Noch verbleibene API-Abfragen:", + 'ADMIN_CONFIG_NETWORK_API_VISUAL_PAY_CHECK' => "Wert für Visual-Pay-Check (&vc=x):", 'ADMIN_CONFIG_NETWORK_API_TITLE' => "API-Zugangsdaten zum Werbenetzwerk {%%network,generateMetworkReferralLinkById=%s%%}:", 'ADMIN_CONFIG_NETWORK_API_SAVE_BUTTON' => "API-Konfiguration speichern", 'ADMIN_CONFIG_NETWORK_API_SAVED' => "API-Konfiguration gespeichert.", diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index cd737b14be..669e94d4f0 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -627,6 +627,7 @@ function getFullNetworkConfigurationByTypeId ($networkTypeId) { `nac`.`network_api_referral_link`, `nac`.`network_api_referral_button`, `nac`.`network_api_remaining_requests`, + `nac`.`network_api_visual_pay_check`, `nts`.`network_type_reload_time_unit`, `ntc`.`network_max_reload_time`, `ntc`.`network_min_waiting_time`, @@ -2605,11 +2606,14 @@ function doAdminNetworkProcessNetworkApiConfig () { // Add id setPostRequestElement('network_id', bigintval(getRequestElement('network_id'))); - // Is network_api_referral_button set? - if (!isPostRequestElementSet('network_api_referral_button')) { - // Remove empty value to get a NULL for an optional entry - unsetPostRequestElement('network_api_referral_button'); - } // END - if + // NULL empty values + foreach (array('network_api_referral_button', 'network_api_visual_pay_check') as $key) { + // Is it set? + if (!isPostRequestElementSet($key)) { + // Remove empty value to get a NULL for an optional entry + unsetPostRequestElement($key); + } // END - if + } // END - foreach // Is there already an entry? if (isNetworkApiConfigured(getRequestElement('network_id'))) { diff --git a/inc/modules/admin/what-config_network_api.php b/inc/modules/admin/what-config_network_api.php index 2d057d6361..564cb9942c 100644 --- a/inc/modules/admin/what-config_network_api.php +++ b/inc/modules/admin/what-config_network_api.php @@ -71,7 +71,8 @@ if (isGetRequestElementSet('network_id')) { NULL AS `network_api_active`, NULL AS `network_api_referral_link`, NULL AS `network_api_referral_button`, - NULL AS `network_api_remaining_requests` + NULL AS `network_api_remaining_requests`, + NULL AS `network_api_visual_pay_check` FROM `{?_MYSQL_PREFIX?}_network_data` WHERE @@ -101,7 +102,8 @@ LIMIT 1', `network_api_active`, `network_api_referral_link`, `network_api_referral_button`, - `network_api_remaining_requests` + `network_api_remaining_requests`, + `network_api_visual_pay_check` FROM `{?_MYSQL_PREFIX?}_network_api_config` WHERE diff --git a/templates/de/html/admin/admin_config_network_api.tpl b/templates/de/html/admin/admin_config_network_api.tpl index aba3386db1..184989efe6 100644 --- a/templates/de/html/admin/admin_config_network_api.tpl +++ b/templates/de/html/admin/admin_config_network_api.tpl @@ -49,7 +49,8 @@ - --- + + -- 2.39.5