X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-network.php;h=515a053c2517563a9ed390ddf634382d2c71b706;hb=55dd61bf035773f00ba0f7f3b56a5299b2ac9693;hp=b2827e423a4b3711516a30cafcf07890b16aa8e0;hpb=f526ea94e69f05ee0e2c90b93539124be9525327;p=mailer.git diff --git a/inc/extensions/ext-network.php b/inc/extensions/ext-network.php index b2827e423a..515a053c25 100644 --- a/inc/extensions/ext-network.php +++ b/inc/extensions/ext-network.php @@ -14,8 +14,6 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * @TODO AbisZED: Which charset? * * @TODO Ad-Magnet: Layer(klick?). Layerviews.Skybannerklick/-view, * @@ -26,7 +24,7 @@ * @TODO AllAds4You: Traffic from abroad, High-Forced banner * * @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, really UTF-8 * + * @TODO Fusion-Ads: Has click/banner URL in API response * * @TODO GolloX: Which charset? * * @TODO paid4ad: Which URLs for click and banner? * * @TODO VIPads: HTML text is send encoded with BASE64 * @@ -216,58 +214,58 @@ PRIMARY KEY (`network_reload_id`) ) TYPE={?_TABLE_TYPE?} COMMENT='Reload locks'"); // Insert API response array translations, these will be used for calling the right filter function - addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_id`, `network_translation_name`) VALUES -(1, 'id'), -(2, 'name'), -(3, 'alternate_text'), -(4, 'reload'), -(5, 'remain'), -(6, 'reward'), -(7, 'banner_id'), -(8, 'size'), -(9, 'text'), -(10, 'minimum_stay'), -(11, 'textlink_id'), -(12, 'surfbar_id'), -(13, 'mail_id'), -(14, 'layer_id'), -(15, 'popup_id'), -(16, 'popdown_id'), -(17, 'lead_id'), -(18, 'sale_id'), -(19, 'banner_url1'), -(20, 'banner_url2'), -(21, 'banner_url3'), -(22, 'textlink1'), -(23, 'textlink2'), -(24, 'textlink3'), -(25, 'description'), -(26, 'traffic_id'), -(27, 'country_code'), -(28, 'banner_url4'), -(29, 'banner_url5'), -(30, 'banner_url6'), -(31, 'banner_url7'), -(32, 'banner_url8'), -(33, 'banner_url9'), -(34, 'banner_url10'), -(35, 'textlink4'), -(36, 'textlink5'), -(37, 'subject'), -(38, 'click_url'), -(39, 'media_url')"); + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_translations` (`network_translation_name`) VALUES +('id'), +('name'), +('alternate_text'), +('reload'), +('remain'), +('reward'), +('banner_id'), +('size'), +('text'), +('minimum_stay'), +('textlink_id'), +('surfbar_id'), +('mail_id'), +('layer_id'), +('popup_id'), +('popdown_id'), +('lead_id'), +('sale_id'), +('banner_url1'), +('banner_url2'), +('banner_url3'), +('textlink1'), +('textlink2'), +('textlink3'), +('description'), +('traffic_id'), +('country_code'), +('banner_url4'), +('banner_url5'), +('banner_url6'), +('banner_url7'), +('banner_url8'), +('banner_url9'), +('banner_url10'), +('textlink4'), +('textlink5'), +('subject'), +('click_url'), +('media_url')"); // Insert error code types - addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_error_types` (`network_code_id`, `network_code`) VALUES -(1, 'AFF_ID_PASS_WRONG'), -(2, 'SITE_ID_NOT_ASSIGNED'), -(3, 'SITE_ID_LOCKED'), -(4, 'INTERFACE_DATA_ERROR'), -(5, 'REQUESTS_DEPLETED'), -(6, 'NO_CAMPAIGNS_FOUND'), -(7, 'NO_CAMPAIGNS_FOUND_INTERFACE'), -(8, 'SITE_ID_NOT_ALLOWED_TYPE'), -(9, 'REQUEST_PARAMETER_INCOMPLETE')"); + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_error_types` (`network_code`) VALUES +('AFF_ID_PASS_WRONG'), +('SITE_ID_NOT_ASSIGNED'), +('SITE_ID_LOCKED'), +('INTERFACE_DATA_ERROR'), +('REQUESTS_DEPLETED'), +('NO_CAMPAIGNS_FOUND'), +('NO_CAMPAIGNS_FOUND_INTERFACE'), +('SITE_ID_NOT_ALLOWED_TYPE'), +('REQUEST_PARAMETER_INCOMPLETE')"); // Sponsor networks addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_data` (`network_short_name`, `network_title`, `network_reflink`, `network_data_seperator`, `network_row_seperator`, `network_request_type`, `network_charset`) VALUES @@ -283,7 +281,7 @@ PRIMARY KEY (`network_reload_id`) ('allads4you', 'AllAds4You', 'http://www.allads4you.de?ref=1146', '|', '|', 'GET', 'ISO-8859-1'), ('alster', 'Alster-Marketing', 'http://www.alstermarketing.de?ref=1851', '|', '|', 'GET', 'ISO-8859-16'), ('bonus', 'BonusSponsor', 'http://www.bonussponsor.de?ref=1286', '|', '|', 'GET', 'WINDOWS-1252'), -('fusion', 'Fusion-Ads', 'http://www.fusion-ads.de/?ref=84', '|', '|', 'GET', 'UTF-8'), +('fusion', 'Fusion-Ads', 'http://www.fusion-ads.de/?ref=84', '|', '|', 'GET', 'ISO-8859-1'), ('gigapromo', 'GigaPromo', 'http://www.gigapromo.de/index.php?ref=953', '|', '|', 'GET', 'WINDOWS-1252'), ('hpsonsor', 'HPSponsor', 'http://hpsponsor.at?ref=29', '|', '|', 'GET', 'WINDOWS-1252'), ('make-euros', 'Make-Euros.de', 'http://www.make-euros.de?ref=1184', '|', '|', 'GET', 'ISO-8859-1'), @@ -299,7 +297,8 @@ PRIMARY KEY (`network_reload_id`) ('doubleads', 'doubleads.de', 'http://www.doubleads.de?ref=1063', '|', '|', 'GET', 'ISO-8859-1'), ('vipads', 'VIPads.de', 'http://vipads.de/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1'), ('homeads', 'homeADS', 'http://www.homeads.de/?ref=1540', '|', '|', 'GET', 'WINDOWS-1252'), -('fucoexsponsor', 'FuCoExSponsor.net', 'http://fucoexsponsor.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1')"); +('fucoexsponsor', 'FuCoExSponsor.net', 'http://fucoexsponsor.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1'), +('adconvention', 'AdConvention', 'http://www.adconvention.de?ref=233', '|', '|', 'GET', 'WINDOWS-1252')"); // 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 @@ -340,6 +339,19 @@ PRIMARY KEY (`network_reload_id`) (13, 4, 'forcedbanner', 'http://www.adcocktail.com/sc/kas/kas_fk.php', 'http://fk.adcocktail.com/fk_k.php?uid=%UID%&wid=%CID%&wsid=%SID%', 'http://fk.adcocktail.com/fk_v.php?uid=%UID%&wid=%CID%&wsid=%SID%'), (12, 4, 'textmail', 'http://www.adcocktail.com/sc/kas/kas_pm.php', 'http://pm.adcocktail.com/pm.php?uid=%UID%&wid=%CID%&wsid=%SID%', NULL)"); + // Network type handlers - AdConvention + 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 +(295, 30, 'banner_click', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/klickbanner.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.adconvention.de/codes/viewbanner.php?id=%UID%&bid=%CID%&aid=%SID%'), +(294, 30, 'banner_view', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/bannerklick.php?id=%UID%&bid=%CID%&aid=%CID%', 'http://www.adconvention.de/codes/bannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(297, 30, 'button_view', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/buttonklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.adconvention.de/codes/buttonview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(292, 30, 'forcedbanner', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/forcedbannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.adconvention.de/codes/forcedbannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(293, 30, 'forcedtextlink', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/forcedtextlinkklick.php?id=%UID%&bid=%CID%&aid=%SI%', NULL), +(300, 30, 'popup', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), +(296, 30, 'skybanner_view', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/skybannerklick.php?id=%UID%&bid=%CID%&aid=%SID%', 'http://www.adconvention.de/codes/skybannerview.php?id=%UID%&bid=%CID%&aid=%SID%'), +(298, 30, 'textlink_view', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/textlinkview.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), +(301, 30, 'textmail', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%', NULL), +(299, 30, 'traffic', 'http://www.adconvention.de/interface/', 'http://www.adconvention.de/codes/traffic.php?id=%UID%&bid=%CID%&aid=%SID%', NULL)"); + // Network type handlers - AdPaid 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 (177, 5, 'banner', 'http://www.adpaid.de/interface/out_banner.php', 'http://www.adpaid.de/bannerklf.php?id=%CID%', 'http://www.adpaid.de/banner.php?id=%CID%'), @@ -487,6 +499,9 @@ PRIMARY KEY (`network_reload_id`) (289, 29, 'traffic', 'http://fucoexsponsor.net/int/get.php', 'http://fucoexsponsor.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%', NULL)"); // Network type handlers - Fusion-Ads + 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 +(290, 13, 'forcedbanner', 'http://www.fusion-ads.de/data/get.php', 'http://www.fusion-ads.de/data/werbung.php?uid=%UID%&kid=%CID%&sid=%SID%&art=32&step=1', 'http://www.fusion-ads.de/data/werbung.php?uid=%UID%&kid=%CID%&sid=%SID%&art=32'), +(291, 13, 'textmail', 'http://www.fusion-ads.de/data/get.php', 'ttp://www.fusion-ads.de/data/werbung.php?uid=%UID%&kid=%CID%&sid=%SID%&art=33', NULL)"); // Network type handlers - GigaPromo 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 @@ -869,6 +884,79 @@ PRIMARY KEY (`network_reload_id`) // Request parameters per type handler - AdCocktail + // Request parameters per type handler - AdConvention + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES +(30, 292, 'extra', 'typ', 'forcedbanner'), +(30, 292, 'id', 'id', NULL), +(30, 292, 'minimum_stay', 'ma', NULL), +(30, 292, 'password', 'pw', NULL), +(30, 292, 'reload', 'reload', NULL), +(30, 292, 'remain', 'uebrig', NULL), +(30, 292, 'reward', 'verguetung', NULL), +(30, 293, 'extra', 'typ', 'forcedtextlink'), +(30, 293, 'id', 'id', NULL), +(30, 293, 'minimum_stay', 'ma', NULL), +(30, 293, 'password', 'pw', NULL), +(30, 293, 'reload', 'reload', NULL), +(30, 293, 'remain', 'uebrig', NULL), +(30, 293, 'reward', 'verguetung', NULL), +(30, 294, 'extra', 'typ', 'bannerview'), +(30, 294, 'id', 'id', NULL), +(30, 294, 'minimum_stay', 'ma', NULL), +(30, 294, 'password', 'pw', NULL), +(30, 294, 'reload', 'reload', NULL), +(30, 294, 'remain', 'uebrig', NULL), +(30, 294, 'reward', 'verguetung', NULL), +(30, 295, 'extra', 'typ', 'bannerklick'), +(30, 295, 'id', 'id', NULL), +(30, 295, 'minimum_stay', 'ma', NULL), +(30, 295, 'password', 'pw', NULL), +(30, 295, 'reload', 'reload', NULL), +(30, 295, 'remain', 'uebrig', NULL), +(30, 295, 'reward', 'verguetung', NULL), +(30, 296, 'extra', 'typ', 'skybannerview'), +(30, 296, 'id', 'id', NULL), +(30, 296, 'minimum_stay', 'ma', NULL), +(30, 296, 'password', 'pw', NULL), +(30, 296, 'reload', 'reload', NULL), +(30, 296, 'remain', 'uebrig', NULL), +(30, 296, 'reward', 'verguetung', NULL), +(30, 297, 'extra', 'typ', 'buttonview'), +(30, 297, 'id', 'id', NULL), +(30, 297, 'minimum_stay', 'ma', NULL), +(30, 297, 'password', 'pw', NULL), +(30, 297, 'reload', 'reload', NULL), +(30, 297, 'remain', 'uebrig', NULL), +(30, 297, 'reward', 'verguetung', NULL), +(30, 298, 'extra', 'typ', 'textview'), +(30, 298, 'id', 'id', NULL), +(30, 298, 'minimum_stay', 'ma', NULL), +(30, 298, 'password', 'pw', NULL), +(30, 298, 'reload', 'reload', NULL), +(30, 298, 'remain', 'uebrig', NULL), +(30, 298, 'reward', 'verguetung', NULL), +(30, 299, 'extra', 'typ', 'traffic'), +(30, 299, 'id', 'id', NULL), +(30, 299, 'minimum_stay', 'ma', NULL), +(30, 299, 'password', 'pw', NULL), +(30, 299, 'reload', 'reload', NULL), +(30, 299, 'remain', 'uebrig', NULL), +(30, 299, 'reward', 'verguetung', NULL), +(30, 300, 'extra', 'typ', 'popup'), +(30, 300, 'id', 'id', NULL), +(30, 300, 'minimum_stay', 'ma', NULL), +(30, 300, 'password', 'pw', NULL), +(30, 300, 'reload', 'reload', NULL), +(30, 300, 'remain', 'uebrig', NULL), +(30, 300, 'reward', 'verguetung', NULL), +(30, 301, 'extra', 'typ', 'paidmail'), +(30, 301, 'id', 'id', NULL), +(30, 301, 'minimum_stay', 'ma', NULL), +(30, 301, 'password', 'pw', NULL), +(30, 301, 'reload', 'reload', NULL), +(30, 301, 'remain', 'uebrig', NULL), +(30, 301, 'reward', 'verguetung', NULL)"); + // Request parameters per type handler - AdPaid addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES (5, 177, 'id', 'id', NULL), @@ -1701,6 +1789,21 @@ PRIMARY KEY (`network_reload_id`) (29, 289, 'sid', 'sid', NULL)"); // Request parameters per type handler - Fusion-Ads + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES +(13, 290, 'extra', 'art', 'Forcedbanner'), +(13, 290, 'id', 'uid', NULL), +(13, 290, 'password', 'pw', NULL), +(13, 290, 'reload', 'reload', NULL), +(13, 290, 'remain', 'offen', NULL), +(13, 290, 'reward', 'verguetung', NULL), +(13, 290, 'sid', 'sid', NULL), +(13, 291, 'extra', 'art', 'Paidmail'), +(13, 291, 'id', 'uid', NULL), +(13, 291, 'password', 'pw', NULL), +(13, 291, 'reload', 'reload', NULL), +(13, 291, 'remain', 'offen', NULL), +(13, 291, 'reward', 'verguetung', NULL), +(13, 291, 'sid', 'sid', NULL)"); // Request parameters per type handler - GigapPromo addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES @@ -2923,6 +3026,65 @@ PRIMARY KEY (`network_reload_id`) // API array elements - ADCocktail + // API array elements - AdConvention + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES +(30, 292, 1, 1), +(30, 292, 2, 2), +(30, 292, 4, 3), +(30, 292, 5, 4), +(30, 292, 6, 5), +(30, 292, 10, 6), +(30, 293, 1, 1), +(30, 293, 2, 2), +(30, 293, 4, 3), +(30, 293, 5, 4), +(30, 293, 6, 5), +(30, 293, 10, 6), +(30, 294, 1, 1), +(30, 294, 2, 2), +(30, 294, 4, 3), +(30, 294, 5, 4), +(30, 294, 6, 5), +(30, 295, 1, 1), +(30, 295, 2, 2), +(30, 295, 4, 3), +(30, 295, 5, 4), +(30, 295, 6, 5), +(30, 296, 1, 1), +(30, 296, 2, 2), +(30, 296, 4, 3), +(30, 296, 5, 4), +(30, 296, 6, 5), +(30, 297, 1, 1), +(30, 297, 2, 2), +(30, 297, 4, 3), +(30, 297, 5, 4), +(30, 297, 6, 5), +(30, 298, 1, 1), +(30, 298, 2, 2), +(30, 298, 4, 3), +(30, 298, 5, 4), +(30, 298, 6, 5), +(30, 299, 1, 1), +(30, 299, 2, 2), +(30, 299, 4, 3), +(30, 299, 5, 4), +(30, 299, 6, 5), +(30, 299, 10, 6), +(30, 300, 1, 1), +(30, 300, 2, 2), +(30, 300, 4, 3), +(30, 300, 5, 4), +(30, 300, 6, 5), +(30, 300, 10, 6), +(30, 301, 1, 1), +(30, 301, 2, 2), +(30, 301, 4, 3), +(30, 301, 5, 4), +(30, 301, 6, 5), +(30, 301, 10, 6), +(30, 301, 9, 7)"); + // API array elements - AdPaid addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES (5, 177, 7, 1), @@ -3669,6 +3831,23 @@ PRIMARY KEY (`network_reload_id`) (29, 289, 10, 6)"); // API array elements - Fusion-Ads + addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES +(13, 290, 1, 1), +(13, 290, 2, 2), +(13, 290, 6, 3), +(13, 290, 4, 4), +(13, 290, 5, 5), +(13, 290, 39, 6), +(13, 290, 38, 7), +(13, 290, 10, 8), +(13, 291, 1, 1), +(13, 291, 2, 2), +(13, 291, 6, 3), +(13, 291, 4, 4), +(13, 291, 5, 5), +(13, 291, 38, 6), +(13, 291, 9, 7), +(13, 291, 10, 8)"); // API array elements - GigaPromo addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_api_translation` (`network_id`, `network_type_id`, `network_api_index`, `sort`) VALUES