2 /************************************************************************
3 * Mailer v0.2.1-FINAL Start: 12/18/2008 *
4 * =================== Last change: 11/01/2009 *
6 * -------------------------------------------------------------------- *
7 * File : ext-network.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Generic (sponsor) network connection extension *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Allgemeine Werbenetzwerk-Erweiterung *
12 * -------------------------------------------------------------------- *
15 * $Tag:: 0.2.1-FINAL $ *
17 * Needs to be in all Files and every File needs "svn propset *
18 * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
19 * -------------------------------------------------------------------- *
20 * @TODO AbisZED: Which charset? *
21 * @TODO Ad-Magnet: Layer(klick?). Layerviews.Skybannerklick/-view, *
22 * @TODO Ad-Magnet: Banner-View, Textlink-Klick/-View. Page-Peel *
23 * @TODO ADCocktail: Traffic, BIDausKAS??? *
24 * @TODO Ads4.de: Traffic *
25 * @TODO Ads4Webbis: Traffic *
26 * @TODO Ads4World: Traffic *
27 * @TODO Affiliblatt: All except banner *
28 * @TODO doubleads: Which charset? *
29 * @TODO Fusion-Ads: Has click/banner URL in API response *
30 * @TODO GolloX: Which charset? *
31 * @TODO homeADS: Which charset? *
32 * @TODO paid4ad: Waiting for approval *
33 * @TODO secash: Traffic *
34 * @TODO ultraPROMO: Traffic *
35 * -------------------------------------------------------------------- *
36 * Copyright (c) 2003 - 2009 by Roland Haeder *
37 * For more information visit: http://www.mxchange.org *
39 * This program is free software; you can redistribute it and/or modify *
40 * it under the terms of the GNU General Public License as published by *
41 * the Free Software Foundation; either version 2 of the License, or *
42 * (at your option) any later version. *
44 * This program is distributed in the hope that it will be useful, *
45 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
46 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
47 * GNU General Public License for more details. *
49 * You should have received a copy of the GNU General Public License *
50 * along with this program; if not, write to the Free Software *
51 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
53 ************************************************************************/
55 // Some security stuff...
56 if (!defined('__SECURITY')) {
61 setThisExtensionVersion('0.0');
63 // Version history array (add more with , '0.1.0' and so on)
64 setExtensionVersionHistory(array('0.0'));
66 // This extension is in development (non-productive)
67 enableExtensionProductive(false);
69 switch (getExtensionMode()) {
70 case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
71 // Main table which hold
72 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_data`');
73 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_data` (
74 `network_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
75 `network_short_name` VARCHAR(50) NOT NULL DEFAULT '',
76 `network_title` VARCHAR(255) NOT NULL DEFAULT '',
77 `network_reflink` VARCHAR(255) NOT NULL DEFAULT '',
78 `network_data_seperator` CHAR(4) NOT NULL DEFAULT '|',
79 `network_row_seperator` CHAR(4) NOT NULL DEFAULT '|',
80 `network_request_type` ENUM('GET','POST') NOT NULL DEFAULT 'GET',
81 `network_charset` VARCHAR(20) NOT NULL DEFAULT 'UTF-8',
82 UNIQUE (`network_short_name`),
83 PRIMARY KEY (`network_id`)
84 ) TYPE={?_TABLE_TYPE?} COMMENT='Network data'");
86 // Types the network provider is supporting (e.g. Forced-Banner and so on)
87 // @TODO network_type_handle is an internal name and needs documentation
88 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types`');
89 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_types` (
90 `network_type_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
91 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
92 `network_type_handle` VARCHAR(255) NOT NULL DEFAULT '',
93 `network_type_api_url` VARCHAR(255) NOT NULL DEFAULT '',
94 `network_type_click_url` VARCHAR(255) NOT NULL DEFAULT '',
95 `network_type_banner_url` VARCHAR(255) NULL DEFAULT NULL,
96 UNIQUE `provider_type` (`network_id`,`network_type_handle`),
97 PRIMARY KEY (`network_type_id`)
98 ) TYPE={?_TABLE_TYPE?} COMMENT='Types provideable by networks'");
100 // HTTP parameters (names) for URLs
101 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_request_params`');
102 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_request_params` (
103 `network_param_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
104 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
105 `network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
106 `request_param_key` VARCHAR(10) NOT NULL DEFAULT 'invalid',
107 `request_param_value` VARCHAR(10) NOT NULL DEFAULT 'invalid',
108 `request_param_default` VARCHAR(10) NULL DEFAULT NULL,
109 UNIQUE `provider_type_key` (`network_id`,`network_type_id`,`request_param_key`),
110 UNIQUE `provider_type_value` (`network_id`,`network_type_id`,`request_param_value`),
111 PRIMARY KEY (`network_param_id`)
112 ) TYPE={?_TABLE_TYPE?} COMMENT='Request parameters for GET/POST request'");
114 // Error status codes
115 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_type_codes`');
116 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_type_codes` (
117 `network_type_code_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
118 `network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
119 `network_type_code_value` VARCHAR(50) NOT NULL DEFAULT '',
120 `network_type_code_type` VARCHAR(100) NOT NULL DEFAULT 'INVALID_TYPE',
121 UNIQUE `code_type` (`network_type_code_value`,`network_type_id`),
122 INDEX (`network_type_id`),
123 PRIMARY KEY (`network_type_code_id`)
124 ) TYPE={?_TABLE_TYPE?} COMMENT='Error codes for all types'");
126 // Code types (internal table)
127 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_codes`');
128 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_codes` (
129 `network_code_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
130 `network_code` VARCHAR(100) NOT NULL DEFAULT 'INVALID_CODE',
131 UNIQUE (`network_code`),
132 PRIMARY KEY (`network_code_id`)
133 ) TYPE={?_TABLE_TYPE?} COMMENT='Error types, generic data, DO NOT ALTER!'");
135 // Valid translation keys (we hate hard-coded arrays, you see?)
136 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_translations`');
137 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_translations` (
138 `network_translate_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
139 `network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
140 `network_translation` VARCHAR(100) NOT NULL DEFAULT '',
141 UNIQUE `type_trans` (`network_type_id`,`network_translation`),
142 PRIMARY KEY (`network_translate_id`)
143 ) TYPE={?_TABLE_TYPE?} COMMENT='Translations for array keys, generic data, DO NOT ALTER!'");
145 // Array-Element translation tables per type/provider
146 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_array_translation`');
147 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_array_translation` (
148 `network_translate_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
149 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
150 `network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
151 `network_array_key` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0,
152 `network_translation` VARCHAR(100) NOT NULL DEFAULT '',
153 UNIQUE `provider_type_key` (`network_id`,`network_type_id`,`network_array_key`),
154 UNIQUE `provider_type_trans` (`network_id`,`network_type_id`,`network_translation`),
155 PRIMARY KEY (`network_translate_id`)
156 ) TYPE={?_TABLE_TYPE?} COMMENT='Cache for all queried APIs'");
158 // Data from the webmaster (you!)
159 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_config`');
160 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_config` (
161 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
162 `network_affiliate_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
163 `network_api_password` VARCHAR(255) NOT NULL DEFAULT '',
164 `network_site_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
165 `network_query_amount` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
166 UNIQUE `network_affiliate` (`network_id`,`network_affiliate_id`),
167 UNIQUE `affiliate_site` (`network_affiliate_id`,`network_site_id`),
168 PRIMARY KEY (`network_id`)
169 ) TYPE={?_TABLE_TYPE?} COMMENT='Configuration data from the webmaster (you!)'");
171 // Configuration data for e.g. reload-time
172 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types_config`');
173 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_types_config` (
174 `network_data_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
175 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
176 `network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
177 `max_reload_time` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
178 `min_waiting_time` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
179 `min_remain_clicks` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
180 `min_payment` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000,
181 `allow_erotic` VARCHAR(10) NOT NULL DEFAULT '',
182 UNIQUE `provider_type` (`network_id`,`network_type_id`),
183 PRIMARY KEY (`network_data_id`)
184 ) TYPE={?_TABLE_TYPE?} COMMENT='Configuration data for every type (e.g. reload-time)'");
186 // Cache for queried APIs. Re-check depends on config
187 // `network_cache_refresh` in seconds or if set to zero, full day
188 // divided by query amount.
189 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_cache`');
190 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_cache` (
191 `network_cache_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
192 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
193 `network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
194 `network_cache_data` MEDIUMBLOB,
195 `network_cache_timestamp` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00',
196 UNIQUE `provider_type` (`network_id`,`network_type_id`),
197 PRIMARY KEY (`network_cache_id`)
198 ) TYPE={?_TABLE_TYPE?} COMMENT='Cache for all queried APIs'");
200 // Reload locks for several types
201 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_reloads`');
202 addExtensionSql("CREATE TABLE `{?_MYSQL_PREFIX?}_network_reloads` (
203 `network_reload_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
204 `network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
205 `network_type_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
206 `network_reload_lock` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0,
207 `network_inserted` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
208 UNIQUE `provider_type` (`network_id`,`network_type_id`),
209 PRIMARY KEY (`network_reload_id`)
210 ) TYPE={?_TABLE_TYPE?} COMMENT='Reload locks'");
212 // Insert error code types
213 // - Affiliate id or interface password wrong
214 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('AFF_ID_PASS_WRONG')");
215 // - Webmaster's site id is not assigned (invalid, different affiliate id)
216 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('SITE_ID_NOT_ASSIGNED')");
217 // - Webmaster's site id is locked
218 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('SITE_ID_LOCKED')");
219 // - General error in interface data
220 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('INTERFACE_DATA_ERROR')");
221 // - Request amount depleted
222 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('REQUESTS_DEPLETED')");
223 // - No campaigns found for given criteria (but maybe there are with more widen criteria)
224 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('NO_CAMPAIGNS_FOUND')");
225 // - No campaigns found with allowed interface output (but there are maybe non-interface campaigns)
226 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('NO_CAMPAIGNS_FOUND_INTERFACE')");
227 // - Webmaster's site id is not unlocked for choosen type
228 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('SITE_ID_NOT_ALLOWED_TYPE')");
229 // - Request parameters incomplete
230 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_codes` (`network_code`) VALUES ('REQUEST_PARAMS_INCOMPLETE')");
233 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
234 ('a3h', 'A3H', 'http://www.a3h.de?ref=1447', '|', '|', 'GET', 'WINDOWS-1252'),
235 ('abiszed','AbisZED-Netz','http://abiszed-netz.de/index.php?ref=557', '|', '|', 'GET', 'WINDOWS-1252'),
236 ('admagnet', 'AD-Magnet', 'http://www.ad-magnet.de/index.php?ref=495', '|', '|', 'GET', 'ISO-8859-1'),
237 ('adcocktail', 'ADCocktail', 'http://www.adcocktail.com/?rid=2596', '|', '|', 'GET', 'WINDOWS-1252'),
238 ('ads4', 'Ads4.de', 'http://www.ads4.de/?werber=Quix0r', '|', '|', 'GET', 'WINDOWS-1252'),
239 ('ads4webbis', 'Ads4Webbis', 'http://www.ads4webbis.de?ref=835', '|', '|', 'GET', 'UTF-8'),
240 ('ads4world', 'Ads4World', 'http://www.ads4world.de?ref=252', '|', '|', 'GET', 'UTF-8'),
241 ('affiliblatt', 'Affiliblatt', 'http://www.Affiliblatt.de/?sid=MTAzNQ==&site=home', '|', '|', 'GET', 'UTF-8'),
242 ('alster', 'Alster-Marketing', 'http://www.alstermarketing.de?ref=1851', '|', '|', 'GET', 'ISO-8859-16'),
243 ('bonus', 'BonusSponsor', 'http://www.bonussponsor.de?ref=1286', '|', '|', 'GET', 'WINDOWS-1252'),
244 ('fusion', 'Fusion-Ads', 'http://www.fusion-ads.de/?ref=84', '|', '|', 'GET', 'UTF-8'),
245 ('make-euros', 'Make-Euros.de', 'http://www.make-euros.de?ref=1184', '|', '|', 'GET', 'ISO-8859-1'),
246 ('power-promo', 'Power-Promo', 'http://www.power-promo.de?ref=1231', '|', '|', 'GET', 'WINDOWS-1252'),
247 ('secash', 'SeCash', 'http://www.secash.de?ref=758', '|', '|', 'GET', 'UTF-8'),
248 ('yoomedia', 'Yoo!Media Solutions', 'http://www.yoomedia.de?ref=1715', '|', '|', 'GET', 'WINDOWS-1252')");
250 // Network type handlers - A3H
251 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
252 (1, 1, 'banner', 'http://www.a3h.de/interface/out_banner.php', 'http://www.a3h.de/bannerklf.php?id=%CID%', 'http://www.a3h.de/banner.php?id=%CID%'),
253 (2, 1, 'textlink', 'http://www.a3h.de/interface/out_textlink.php', 'http://www.a3h.de/textlinkklick.php?id=%CID%', NULL),
254 (3, 1, 'surfbar', 'http://www.a3h.de/interface/out_sbanner.php', 'http://www.a3h.de/bannerklf.php?id=%CID%', 'http://www.a3h.de/banner.php?id=%CID%'),
255 (4, 1, 'focredbanner', 'http://www.a3h.de/interface/out_fbanner.php', 'http://www.a3h.de/bannerklf.php?id=%CID%', 'http://www.a3h.de/banner.php?id=%CID%'),
256 (5, 1, 'textmail', 'http://www.a3h.de/interface/out_paidmail.php', 'http://www.a3h.de/emailf.php?id=%CID%', NULL),
257 (6, 1, 'layer', 'http://www.a3h.de/interface/out_layer.php', 'http://www.a3h.de/layer.php?id=%CID%', NULL),
258 (7, 1, 'popup', 'http://www.a3h.de/interface/out_popup.php', 'http://www.a3h.de/popup.php?id=%CID%', NULL),
259 (8, 1, 'popdown', 'http://www.a3h.de/interface/out_popdown.php', 'http://www.a3h.de/popdown.php?id=%CID%', NULL),
260 (9, 1, 'lead', 'http://www.a3h.de/interface/out_lead.php', 'http://www.a3h.de/lead.php?id=%CID%', NULL),
261 (10, 1, 'sale', 'http://www.a3h.de/interface/out_sale.php', 'http://www.a3h.de/sale.php?id=%CID%', NULL),
262 (11, 1, 'htmlmail', 'http://www.a3h.de/interface/out_paidmail.php', 'http://www.a3h.de/emailf.php?id=%CID%', NULL)");
264 // Network type handlers - AbisZED-Netz
266 // Network type handlers - Ad-Magnet
268 // Network type handlers - AdCocktail
269 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
270 (13, 4, 'focredbanner', 'http://www.adcocktail.com/sc/kas/kas_fk.php', 'http://fk.adcocktail.com/fk_k.php?uid=%ID%&wid=%CID%&wsid=%SID%', 'http://fk.adcocktail.com/fk_v.php?uid=%ID%&wid=%CID%&wsid=%SID%'),
271 (12, 4, 'textmail', 'http://www.adcocktail.com/sc/kas/kas_pm.php', 'http://pm.adcocktail.com/pm.php?uid=%ID%&wid=%CID%&wsid=%SID%', NULL)");
273 // Network type handlers - Ads4
274 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
275 (14, 5, 'focredbanner', 'http://www.ads4.de/interface/interface.php', 'http://www.ads4.de/forced_click.php?fb_id=%CID%&sid=%SID%', 'http://www.ads4.de/forced_view.php?fb_id=%CID%&sid=%SID%'),
276 (16, 5, 'htmlmail', 'http://www.ads4.de/interface/interface.php', 'http://www.ads4.de/paidmail_click.php?pm=%CID%&%sid=%SID%', NULL),
277 (15, 5, 'textmail', 'http://www.ads4.de/interface/interface.php', 'http://www.ads4.de/paidmail_click.php?pm=%CID%&%sid=%SID%', NULL)");
279 // Network type handlers - Ads4Webbis
280 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
281 (20, 6, 'banner_click', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/klickbanner.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4webbis.de/codes/viewbanner.php?id=%ID%&bid=%CID%&aid=%SID%'),
282 (19, 6, 'banner_view', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/bannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4webbis.de/codes/bannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
283 (22, 6, 'button_view', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/buttonklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4webbis.de/codes/buttonview.php?id=%ID%&bid=%CID%&aid=%SID%'),
284 (17, 6, 'focredbanner', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/forcedbannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4webbis.de/codes/forcedbannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
285 (18, 6, 'forcedtextlink', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/forcedtextlinkklick.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
286 (24, 6, 'popup', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/popup.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
287 (21, 6, 'skybanner_view', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/skybannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4webbis.de/codes/skybannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
288 (23, 6, 'textlink_view', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/textlinkview.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
289 (25, 6, 'textmail', 'http://www.ads4webbis.de/interface/', 'http://www.ads4webbis.de/codes/paidmail.php?id=%ID%&bid=%CID%&aid=%SID%', NULL)");
291 // Network type handlers - Ads4World
292 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
293 (29, 7, 'banner_click', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/klickbanner.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4world.de/codes/viewbanner.php?id=%ID%&bid=%CID%&aid=%SID%'),
294 (28, 7, 'banner_view', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/bannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4world.de/codes/bannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
295 (31, 7, 'button_view', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/buttonklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4world.de/codes/buttonview.php?id=%ID%&bid=%CID%&aid=%SID%'),
296 (26, 7, 'focredbanner', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/forcedbannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4world.de/codes/forcedbannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
297 (27, 7, 'forcedtextlink', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/forcedtextlinkklick.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
298 (33, 7, 'popup', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/popup.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
299 (30, 7, 'skybanner_view', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/skybannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.ads4world.de/codes/skybannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
300 (32, 7, 'textlink_view', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/textlinkview.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
301 (34, 7, 'textmail', 'http://www.ads4world.de/interface/', 'http://www.ads4world.de/codes/paidmail.php?id=%ID%&bid=%CID%&aid=%SID%', NULL)");
303 // Network type handlers - Affiliblatt
305 // Network type handlers - Alster-Marketing
306 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
307 (35, 9, 'banner_click', 'http://if.alstermarketing.de/interface/out_banner.php', 'http://www.alstermarketing.de/bannerklf.php?id=%CID%', 'http://www.alstermarketing.de/banner.php?id=%CID%'),
308 (45, 9, 'banner_view', 'http://if.alstermarketing.de/interface/out_banner.php', 'http://www.alstermarketing.de/bannerklf.php?id=%CID%', 'http://www.alstermarketing.de/banner.php?id=%CID%'),
309 (38, 9, 'focredbanner', 'http://if.alstermarketing.de/interface/out_fbanner.php', 'http://www.alstermarketing.de/bannerklf.php?id=%CID%', 'http://www.alstermarketing.de/banner.php?id=%CID%'),
310 (48, 9, 'htmlmail', 'http://if.alstermarketing.de/interface/out_paidmail.php', 'http://www.alstermarketing.de/emailf.php?id=%CID%', NULL),
311 (40, 9, 'layer_click', 'http://if.alstermarketing.de/interface/out_layer.php', 'http://www.alstermarketing.de/layer.php?id=%CID%', NULL),
312 (49, 9, 'layer_view', 'http://if.alstermarketing.de/interface/out_layer.php', 'http://www.alstermarketing.de/layer.php?id=%CID%', NULL),
313 (43, 9, 'lead', 'http://if.alstermarketing.de/interface/out_lead.php', 'http://www.alstermarketing.de/lead.php?id=%CID%', NULL),
314 (42, 9, 'popdown', 'http://if.alstermarketing.de/interface/out_popdown.php', 'http://www.alstermarketing.de/popdown.php?id=%CID%', NULL),
315 (41, 9, 'popup', 'http://if.alstermarketing.de/interface/out_popup.php', 'http://www.alstermarketing.de/popup.php?id=%CID%', NULL),
316 (44, 9, 'sale', 'http://if.alstermarketing.de/interface/out_sale.php', 'http://www.alstermarketing.de/sale.php?id=%CID%', NULL),
317 (37, 9, 'surfbar_click', 'http://if.alstermarketing.de/interface/out_sbanner.php', 'http://www.alstermarketing.de/bannerklf.php?id=%CID%', 'http://www.alstermarketing.de/banner.php?id=%CID%'),
318 (47, 9, 'surfbar_view', 'http://if.alstermarketing.de/interface/out_sbanner.php', 'http://www.alstermarketing.de/bannerklf.php?id=%CID%', 'http://www.alstermarketing.de/banner.php?id=%CID%'),
319 (36, 9, 'textlink_click', 'http://if.alstermarketing.de/interface/out_textlink.php', 'http://www.alstermarketing.de/textlinkklick.php?id=%CID%', NULL),
320 (46, 9, 'textlink_view', 'http://if.alstermarketing.de/interface/out_textlink.php', 'http://www.alstermarketing.de/textlinkklick.php?id=%CID%', NULL),
321 (39, 9, 'textmail', 'http://if.alstermarketing.de/interface/out_paidmail.php', 'http://www.alstermarketing.de/emailf.php?id=%CID%', NULL)");
323 // Network type handlers - BonusSponsor
324 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
325 (50, 10, 'banner_click', 'http://www.bonussponsor.de/interface/out_banner.php', 'http://www.bonussponsor.de/bannerklf.php?id=%CID%', 'http://www.bonussponsor.de/banner.php?id=%CID%'),
326 (51, 10, 'banner_view', 'http://www.bonussponsor.de/interface/out_banner.php', 'http://www.bonussponsor.de/bannerklf.php?id=%CID%', 'http://www.bonussponsor.de/banner.php?id=%CID%'),
327 (54, 10, 'focredbanner', 'http://www.bonussponsor.de/interface/out_fbanner.php', 'http://www.bonussponsor.de/bannerklf.php?id=%CID%', 'http://www.bonussponsor.de/banner.php?id=%CID%'),
328 (56, 10, 'htmlmail', 'http://www.bonussponsor.de/interface/out_paidmail.php', 'http://www.bonussponsor.de/emailf.php?id=%CID%', NULL),
329 (57, 10, 'layer_click', 'http://www.bonussponsor.de/interface/out_layer.php', 'http://www.bonussponsor.de/layer.php?id=%CID%', NULL),
330 (58, 10, 'layer_view', 'http://www.bonussponsor.de/interface/out_layer.php', 'http://www.bonussponsor.de/layer.php?id=%CID%', NULL),
331 (61, 10, 'lead', 'http://www.bonussponsor.de/interface/out_lead.php', 'http://www.bonussponsor.de/lead.php?id=%CID%', NULL),
332 (60, 10, 'popdown', 'http://www.bonussponsor.de/interface/out_popdown.php', 'http://www.bonussponsor.de/popdown.php?id=%CID%', NULL),
333 (59, 10, 'popup', 'http://www.bonussponsor.de/interface/out_popup.php', 'http://www.bonussponsor.de/popup.php?id=%CID%', NULL),
334 (62, 10, 'sale', 'http://www.bonussponsor.de/interface/out_sale.php', 'http://www.bonussponsor.de/sale.php?id=%CID%', NULL),
335 (52, 10, 'textlink_click', 'http://www.bonussponsor.de/interface/out_textlink.php', 'http://www.bonussponsor.de/textlinkklick.php?id=%CID%', NULL),
336 (53, 10, 'textlink_view', 'http://www.bonussponsor.de/interface/out_textlink.php', 'http://www.bonussponsor.de/textlinkklick.php?id=%CID%', NULL),
337 (55, 10, 'textmail', 'http://www.bonussponsor.de/interface/out_paidmail.php', 'http://www.bonussponsor.de/emailf.php?id=%CID%', NULL)");
339 // Network type handlers - Fusion-Ads
341 // Network type handlers - Make-Euros
342 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
343 (63, 12, 'banner_click', 'http://www.make-euros.de/interface/out_banner.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%'),
344 (64, 12, 'banner_view', 'http://www.make-euros.de/interface/out_banner.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%'),
345 (68, 12, 'focredbanner', 'http://www.make-euros.de/interface/out_fbanner.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%'),
346 (71, 12, 'htmlmail', 'http://www.make-euros.de/interface/out_paidmail.php', 'http://www.make-euros.de/emailf.php?id=%CID%', NULL),
347 (72, 12, 'layer_click', 'http://www.make-euros.de/interface/out_layer.php', 'http://www.make-euros.de/layer.php?id=%CID%', NULL),
348 (73, 12, 'layer_view', 'http://www.make-euros.de/interface/out_layer.php', 'http://www.make-euros.de/layer.php?id=%CID%', NULL),
349 (76, 12, 'lead', 'http://www.make-euros.de/interface/out_lead.php', 'http://www.make-euros.de /lead.php?id=%CID%', NULL),
350 (75, 12, 'popdown', 'http://www.make-euros.de/interface/out_popdown.php', 'http://www.make-euros.de/popdown.php?id=%CID%', NULL),
351 (74, 12, 'popup', 'http://www.make-euros.de/interface/out_popup.php', 'http://www.make-euros.de/popup.php?id=%CID%', NULL),
352 (77, 12, 'sale', 'http://www.make-euros.de/interface/out_sale.php', 'http://www.make-euros.de /sale.php?id=%CID%', NULL),
353 (67, 12, 'surfbar_click', 'http://www.make-euros.de/interface/out_sbanner.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%'),
354 (69, 12, 'surfbar_view', 'http://www.make-euros.de/interface/out_sbanner.php', 'http://www.make-euros.de/bannerklf.php?id=%CID%', 'http://www.make-euros.de/banner.php?id=%CID%'),
355 (65, 12, 'textlink_click', 'http://www.make-euros.de/interface/out_textlink.php', 'http://www.make-euros.de/textlinkklick.php?id=%CID%', NULL),
356 (66, 12, 'textlink_view', 'http://www.make-euros.de/interface/out_textlink.php', 'http://www.make-euros.de/textlinkklick.php?id=%CID%', NULL),
357 (70, 12, 'textmail', 'http://www.make-euros.de/interface/out_paidmail.php', 'http://www.make-euros.de/emailf.php?id=%CID%', NULL)");
359 // Network type handlers - Power-Promo
360 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
361 (78, 13, 'banner_click', 'http://www.power-promo.de/interface/out_banner.php', 'http://www.power-promo.de/bannerklf.php?id=%CID%', 'http://www.power-promo.de/banner.php?id=%CID%'),
362 (79, 13, 'banner_view', 'http://www.power-promo.de/interface/out_banner.php', 'http://www.power-promo.de/bannerklf.php?id=%CID%', 'http://www.power-promo.de/banner.php?id=%CID%'),
363 (84, 13, 'focredbanner', 'http://www.power-promo.de/interface/out_fbanner.php', 'http://www.power-promo.de/bannerklf.php?id=%CID%', 'http://www.power-promo.de/banner.php?id=%CID%'),
364 (86, 13, 'htmlmail', 'http://www.power-promo.de/interface/out_paidmail.php', 'http://www.power-promo.de/emailf.php?id=%CID%', NULL),
365 (87, 13, 'layer_click', 'http://www.power-promo.de/interface/out_layer.php', 'http://www.power-promo.de/layer.php?id=%CID%', NULL),
366 (88, 13, 'layer_view', 'http://www.power-promo.de/interface/out_layer.php', 'http://www.power-promo.de/layer.php?id=%CID%', NULL),
367 (91, 13, 'lead', 'http://www.power-promo.de/interface/out_lead.php', 'http://www.power-promo.de/lead.php?id=%CID%', NULL),
368 (90, 13, 'popdown', 'http://www.power-promo.de/interface/out_popdown.php', 'http://www.power-promo.de/popdown.php?id=%CID%', NULL),
369 (89, 13, 'popup', 'http://www.power-promo.de/interface/out_popup.php', 'http://www.power-promo.de/popup.php?id=%CID%', NULL),
370 (92, 13, 'sale', 'http://www.power-promo.de/interface/out_sale.php', 'http://www.power-promo.de/sale.php?id=%CID%', NULL),
371 (82, 13, 'surfbar_click', 'http://www.power-promo.de/interface/out_sbanner.php', 'http://www.power-promo.de/bannerklf.php?id=%CID%', 'http://www.power-promo.de/banner.php?id=%CID%'),
372 (83, 13, 'surfbar_view', 'http://www.power-promo.de/interface/out_sbanner.php', 'http://www.power-promo.de/bannerklf.php?id=%CID%', 'http://www.power-promo.de/banner.php?id=%CID%'),
373 (80, 13, 'textlink_click', 'http://www.power-promo.de/interface/out_textlink.php', 'http://www.power-promo.de/textlinkklick.php?id=%CID%', NULL),
374 (81, 13, 'textlink_view', 'http://www.power-promo.de/interface/out_textlink.php', 'http://www.power-promo.de/textlinkklick.php?id=%CID%', NULL),
375 (85, 13, 'textmail', 'http://www.power-promo.de/interface/out_paidmail.php', 'http://www.power-promo.de/emailf.php?id=%CID%', NULL)");
377 // Network type handlers - SeCash
378 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
379 (96, 14, 'banner_click', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/klickbanner.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.secash.de/codes/viewbanner.php?id=%ID%&bid=%CID%&aid=%SID%'),
380 (95, 14, 'banner_view', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/bannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.secash.de/codes/bannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
381 (98, 14, 'button_view', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/buttonklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.secash.de/codes/buttonview.php?id=%ID%&bid=%CID%&aid=%SID%'),
382 (93, 14, 'focredbanner', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/forcedbannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.secash.de/codes/forcedbannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
383 (94, 14, 'forcedtextlink', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/forcedtextlinkklick.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
384 (100, 14, 'popup', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/popup.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
385 (97, 14, 'skybanner_view', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/skybannerklick.php?id=%ID%&bid=%CID%&aid=%SID%', 'http://www.secash.de/codes/skybannerview.php?id=%ID%&bid=%CID%&aid=%SID%'),
386 (99, 14, 'textlink_view', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/textlinkview.php?id=%ID%&bid=%CID%&aid=%SID%', NULL),
387 (101, 14, 'textmail', 'http://www.secash.de/interface/', 'http://www.secash.de/codes/paidmail.php?id=%ID%&bid=%CID%&aid=%SID%', NULL)");
389 // Network type handlers - Yoo!Media
391 // Request parameters per type handler - A3H
392 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
393 (1, 1, 1, 'id', 'id', NULL),
394 (2, 1, 1, 'sid', 'sid', NULL),
395 (3, 1, 1, 'password', 'pw', NULL),
396 (4, 1, 1, 'reload', 'reload', NULL),
397 (5, 1, 1, 'reward', 'verguetung', NULL),
398 (6, 1, 1, 'min_stay', 'ma', NULL),
399 (7, 1, 1, 'type', 'typ', NULL),
400 (8, 1, 1, 'remain', 'uebrig', NULL),
401 (9, 1, 1, 'size', 'size', NULL),
402 (10, 1, 2, 'id', 'id', NULL),
403 (11, 1, 2, 'sid', 'sid', NULL),
404 (12, 1, 2, 'password', 'pw', NULL),
405 (13, 1, 2, 'reload', 'reload', NULL),
406 (14, 1, 2, 'reward', 'verguetung', NULL),
407 (15, 1, 2, 'remain', 'uebrig', NULL),
408 (16, 1, 3, 'id', 'id', NULL),
409 (17, 1, 3, 'sid', 'sid', NULL),
410 (18, 1, 3, 'password', 'pw', NULL),
411 (19, 1, 3, 'reload', 'reload', NULL),
412 (20, 1, 3, 'reward', 'verguetung', NULL),
413 (21, 1, 3, 'type', 'typ', NULL),
414 (22, 1, 3, 'remain', 'uebrig', NULL),
415 (23, 1, 3, 'size', 'size', NULL),
416 (24, 1, 4, 'id', 'id', NULL),
417 (25, 1, 4, 'sid', 'sid', NULL),
418 (26, 1, 4, 'password', 'pw', NULL),
419 (27, 1, 4, 'reload', 'reload', NULL),
420 (28, 1, 4, 'reward', 'verguetung', NULL),
421 (29, 1, 4, 'min_stay', 'ma', NULL),
422 (30, 1, 4, 'remain', 'uebrig', NULL),
423 (31, 1, 4, 'size', 'size', NULL),
424 (32, 1, 5, 'id', 'id', NULL),
425 (33, 1, 5, 'sid', 'sid', NULL),
426 (34, 1, 5, 'password', 'pw', NULL),
427 (35, 1, 5, 'reload', 'reload', NULL),
428 (36, 1, 5, 'reward', 'verguetung', NULL),
429 (37, 1, 5, 'min_stay', 'ma', NULL),
430 (38, 1, 5, 'type', 'typ', 'text'),
431 (39, 1, 5, 'remain', 'uebrig', NULL),
432 (40, 1, 11, 'id', 'id', NULL),
433 (41, 1, 11, 'sid', 'sid', NULL),
434 (42, 1, 11, 'password', 'pw', NULL),
435 (43, 1, 11, 'reload', 'reload', NULL),
436 (44, 1, 11, 'reward', 'verguetung', NULL),
437 (45, 1, 11, 'min_stay', 'ma', NULL),
438 (46, 1, 11, 'type', 'typ', 'html'),
439 (47, 1, 11, 'remain', 'uebrig', NULL),
440 (48, 1, 6, 'id', 'id', NULL),
441 (49, 1, 6, 'sid', 'sid', NULL),
442 (50, 1, 6, 'password', 'pw', NULL),
443 (51, 1, 6, 'reload', 'reload', NULL),
444 (52, 1, 6, 'reward', 'verguetung', NULL),
445 (53, 1, 6, 'type', 'typ', NULL),
446 (54, 1, 6, 'remain', 'uebrig', NULL),
447 (55, 1, 7, 'id', 'id', NULL),
448 (56, 1, 7, 'sid', 'sid', NULL),
449 (57, 1, 7, 'password', 'pw', NULL),
450 (58, 1, 7, 'reload', 'reload', NULL),
451 (59, 1, 7, 'reward', 'verguetung', NULL),
452 (60, 1, 7, 'min_stay', 'ma', NULL),
453 (61, 1, 7, 'remain', 'uebrig', NULL),
454 (62, 1, 8, 'id', 'id', NULL),
455 (63, 1, 8, 'sid', 'sid', NULL),
456 (64, 1, 8, 'password', 'pw', NULL),
457 (65, 1, 8, 'reload', 'reload', NULL),
458 (66, 1, 8, 'reward', 'verguetung', NULL),
459 (67, 1, 8, 'min_stay', 'ma', NULL),
460 (68, 1, 8, 'remain', 'uebrig', NULL),
461 (69, 1, 9, 'id', 'id', NULL),
462 (70, 1, 9, 'sid', 'sid', NULL),
463 (71, 1, 9, 'password', 'pw', NULL),
464 (72, 1, 9, 'reward', 'verguetung', NULL),
465 (73, 1, 9, 'remain', 'uebrig', NULL),
466 (74, 1, 10, 'id', 'id', NULL),
467 (75, 1, 10, 'sid', 'sid', NULL),
468 (76, 1, 10, 'password', 'pw', NULL),
469 (77, 1, 10, 'reward', 'verguetung', NULL),
470 (78, 1, 10, 'remain', 'uebrig', NULL)");
472 // Request parameters per type handler - AbisZED-Netz
474 // Request parameters per type handler - Ad-Magnet
476 // Request parameters per type handler - AdCocktail
478 // Request parameters per type handler - Ads4
479 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
480 (79, 5, 14, 'id', 'id', NULL),
481 (80, 5, 14, 'password', 'pwd', NULL),
482 (81, 5, 14, 'currency', 'waehrung', NULL),
483 (82, 5, 14, 'extra', 'mediatype', 'forced_banner'),
484 (83, 5, 14, 'reward', 'verg', NULL),
485 (84, 5, 14, 'reload', 'reload', NULL),
486 (85, 5, 14, 'remain', 'uebrig', NULL),
487 (86, 5, 14, 'min_stay', 'ma', NULL),
488 (87, 5, 15, 'id', 'id', NULL),
489 (88, 5, 15, 'password', 'pwd', NULL),
490 (89, 5, 15, 'currency', 'waehrung', NULL),
491 (90, 5, 15, 'extra', 'mediatype', 'textmails'),
492 (91, 5, 15, 'reward', 'verg', NULL),
493 (92, 5, 15, 'reload', 'reload', NULL),
494 (93, 5, 15, 'remain', 'uebrig', NULL),
495 (94, 5, 15, 'min_stay', 'ma', NULL),
496 (95, 5, 16, 'id', 'id', NULL),
497 (96, 5, 16, 'password', 'pw', NULL),
498 (97, 5, 16, 'currency', 'waehrung', NULL),
499 (98, 5, 16, 'extra', 'mediatype', 'htmlmails'),
500 (99, 5, 16, 'reward', 'verg', NULL),
501 (100, 5, 16, 'reload', 'reload', NULL),
502 (101, 5, 16, 'remain', 'uebrig', NULL),
503 (102, 5, 16, 'min_stay', 'ma', NULL)");
505 // Request parameters per type handler - Ads4Webbis
506 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
507 (109, 6, 17, 'extra', 'typ', 'forcedbanner'),
508 (110, 6, 17, 'id', 'id', NULL),
509 (111, 6, 17, 'password', 'pw', NULL),
510 (113, 6, 17, 'reload', 'reload', NULL),
511 (112, 6, 17, 'remain', 'uebrig', NULL),
512 (114, 6, 17, 'reward', 'verguetung', NULL),
513 (115, 6, 18, 'extra', 'typ', 'forcedtextlink'),
514 (116, 6, 18, 'id', 'id', NULL),
515 (117, 6, 18, 'password', 'pw', NULL),
516 (119, 6, 18, 'reload', 'reload', NULL),
517 (118, 6, 18, 'remain', 'uebrig', NULL),
518 (120, 6, 18, 'reward', 'verguetung', NULL),
519 (121, 6, 19, 'extra', 'typ', 'bannerview'),
520 (122, 6, 19, 'id', 'id', NULL),
521 (123, 6, 19, 'password', 'pw', NULL),
522 (125, 6, 19, 'reload', 'reload', NULL),
523 (124, 6, 19, 'remain', 'uebrig', NULL),
524 (126, 6, 19, 'reward', 'verguetung', NULL),
525 (103, 6, 20, 'extra', 'typ', 'bannerklick'),
526 (104, 6, 20, 'id', 'id', NULL),
527 (105, 6, 20, 'password', 'pw', NULL),
528 (107, 6, 20, 'reload', 'reload', NULL),
529 (106, 6, 20, 'remain', 'uebrig', NULL),
530 (108, 6, 20, 'reward', 'verguetung', NULL),
531 (127, 6, 21, 'extra', 'typ', 'skybannerview'),
532 (128, 6, 21, 'id', 'id', NULL),
533 (129, 6, 21, 'password', 'pw', NULL),
534 (131, 6, 21, 'reload', 'reload', NULL),
535 (130, 6, 21, 'remain', 'uebrig', NULL),
536 (132, 6, 21, 'reward', 'verguetung', NULL),
537 (133, 6, 22, 'extra', 'typ', 'buttonview'),
538 (134, 6, 22, 'id', 'id', NULL),
539 (135, 6, 22, 'password', 'pw', NULL),
540 (137, 6, 22, 'reload', 'reload', NULL),
541 (136, 6, 22, 'remain', 'uebrig', NULL),
542 (138, 6, 22, 'reward', 'verguetung', NULL),
543 (139, 6, 23, 'extra', 'typ', 'textview'),
544 (140, 6, 23, 'id', 'id', NULL),
545 (141, 6, 23, 'password', 'pw', NULL),
546 (143, 6, 23, 'reload', 'reload', NULL),
547 (142, 6, 23, 'remain', 'uebrig', NULL),
548 (144, 6, 23, 'reward', 'verguetung', NULL),
549 (145, 6, 24, 'extra', 'typ', 'popup'),
550 (146, 6, 24, 'id', 'id', NULL),
551 (151, 6, 24, 'min_stay', 'ma', NULL),
552 (147, 6, 24, 'password', 'pw', NULL),
553 (149, 6, 24, 'reload', 'reload', NULL),
554 (148, 6, 24, 'remain', 'uebrig', NULL),
555 (150, 6, 24, 'reward', 'verguetung', NULL),
556 (152, 6, 25, 'extra', 'typ', 'paidmail'),
557 (153, 6, 25, 'id', 'id', NULL),
558 (158, 6, 25, 'min_stay', 'ma', NULL),
559 (154, 6, 25, 'password', 'pw', NULL),
560 (156, 6, 25, 'reload', 'reload', NULL),
561 (155, 6, 25, 'remain', 'uebrig', NULL),
562 (157, 6, 25, 'reward', 'verguetung', NULL),
563 (158, 6, 25, 'min_stay', 'ma', NULL)");
565 // Request parameters per type handler - Ads4World
566 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
567 (159, 7, 29, 'type', 'typ', 'bannerklick'),
568 (160, 7, 29, 'id', 'id', NULL),
569 (161, 7, 29, 'password', 'pw', NULL),
570 (162, 7, 29, 'remain', 'uebrig', NULL),
571 (163, 7, 29, 'reload', 'reload', NULL),
572 (164, 7, 29, 'reward', 'verguetung', NULL),
573 (165, 7, 28, 'type', 'typ', 'bannerview'),
574 (166, 7, 28, 'id', 'id', NULL),
575 (167, 7, 28, 'password', 'pw', NULL),
576 (168, 7, 28, 'remain', 'uebrig', NULL),
577 (169, 7, 28, 'reload', 'reload', NULL),
578 (170, 7, 28, 'reward', 'verguetung', NULL),
579 (171, 7, 31, 'type', 'typ', 'buttonview'),
580 (172, 7, 31, 'id', 'id', NULL),
581 (173, 7, 31, 'password', 'pw', NULL),
582 (174, 7, 31, 'remain', 'uebrig', NULL),
583 (175, 7, 31, 'reload', 'reload', NULL),
584 (176, 7, 31, 'reward', 'verguetung', NULL),
585 (177, 7, 26, 'type', 'typ', 'forcedbanner'),
586 (178, 7, 26, 'id', 'id', NULL),
587 (179, 7, 26, 'password', 'pw', NULL),
588 (180, 7, 26, 'remain', 'uebrig', NULL),
589 (181, 7, 26, 'reload', 'reload', NULL),
590 (182, 7, 26, 'reward', 'verguetung', NULL),
591 (183, 7, 27, 'type', 'typ', 'forcedtextlink'),
592 (184, 7, 27, 'id', 'id', NULL),
593 (185, 7, 27, 'password', 'pw', NULL),
594 (186, 7, 27, 'remain', 'uebrig', NULL),
595 (187, 7, 27, 'reload', 'reload', NULL),
596 (188, 7, 27, 'reward', 'verguetung', NULL),
597 (189, 7, 33, 'type', 'typ', 'popup'),
598 (190, 7, 33, 'id', 'id', NULL),
599 (191, 7, 33, 'password', 'pw', NULL),
600 (192, 7, 33, 'remain', 'uebrig', NULL),
601 (193, 7, 33, 'reload', 'reload', NULL),
602 (194, 7, 33, 'reward', 'verguetung', NULL),
603 (195, 7, 33, 'min_stay', 'ma', NULL),
604 (196, 7, 30, 'type', 'typ', 'skybannerview'),
605 (197, 7, 30, 'id', 'id', NULL),
606 (198, 7, 30, 'password', 'pw', NULL),
607 (199, 7, 30, 'remain', 'uebrig', NULL),
608 (200, 7, 30, 'reload', 'reload', NULL),
609 (201, 7, 30, 'reward', 'verguetung', NULL),
610 (202, 7, 32, 'type', 'typ', 'textview'),
611 (203, 7, 32, 'id', 'id', NULL),
612 (204, 7, 32, 'password', 'pw', NULL),
613 (205, 7, 32, 'remain', 'uebrig', NULL),
614 (206, 7, 32, 'reload', 'reload', NULL),
615 (207, 7, 32, 'reward', 'verguetung', NULL),
616 (208, 7, 34, 'type', 'typ', 'textmails'),
617 (209, 7, 34, 'id', 'id', NULL),
618 (210, 7, 34, 'password', 'pw', NULL),
619 (211, 7, 34, 'remain', 'uebrig', NULL),
620 (212, 7, 34, 'reload', 'reload', NULL),
621 (213, 7, 34, 'reward', 'verguetung', NULL),
622 (214, 7, 34, 'min_stay', 'ma', NULL)");
624 // Request parameters per type handler - Affiliblatt
626 // Request parameters per type handler - Alster-Marketing
627 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
628 (215, 9, 35, 'id', 'id', NULL),
629 (216, 9, 35, 'sid', 'sid', NULL),
630 (217, 9, 35, 'password', 'pw', NULL),
631 (218, 9, 35, 'reward', 'verguetung', NULL),
632 (219, 9, 35, 'reload', 'reload', NULL),
633 (220, 9, 35, 'remain', 'uebrig', NULL),
634 (221, 9, 35, 'type', 'typ', 'klick'),
635 (222, 9, 35, 'size', 'size', NULL),
636 (223, 9, 45, 'id', 'id', NULL),
637 (224, 9, 45, 'sid', 'sid', NULL),
638 (225, 9, 45, 'password', 'pw', NULL),
639 (226, 9, 45, 'reward', 'verguetung', NULL),
640 (227, 9, 45, 'reload', 'reload', NULL),
641 (228, 9, 45, 'remain', 'uebrig', NULL),
642 (229, 9, 45, 'type', 'typ', 'view'),
643 (230, 9, 45, 'size', 'size', NULL),
644 (231, 9, 36, 'id', 'id', NULL),
645 (232, 9, 36, 'sid', 'sid', NULL),
646 (233, 9, 36, 'password', 'pw', NULL),
647 (234, 9, 36, 'reward', 'verguetung', NULL),
648 (235, 9, 36, 'reload', 'reload', NULL),
649 (236, 9, 36, 'remain', 'uebrig', NULL),
650 (237, 9, 36, 'type', 'typ', 'klick'),
651 (238, 9, 46, 'id', 'id', NULL),
652 (239, 9, 46, 'sid', 'sid', NULL),
653 (240, 9, 46, 'password', 'pw', NULL),
654 (241, 9, 46, 'reward', 'verguetung', NULL),
655 (242, 9, 46, 'reload', 'reload', NULL),
656 (243, 9, 46, 'remain', 'uebrig', NULL),
657 (244, 9, 46, 'type', 'typ', 'view'),
658 (245, 9, 37, 'id', 'id', NULL),
659 (246, 9, 37, 'sid', 'sid', NULL),
660 (247, 9, 37, 'password', 'pw', NULL),
661 (248, 9, 37, 'reward', 'verguetung', NULL),
662 (249, 9, 37, 'reload', 'reload', NULL),
663 (250, 9, 37, 'remain', 'uebrig', NULL),
664 (251, 9, 37, 'type', 'typ', 'klick'),
665 (252, 9, 37, 'size', 'size', NULL),
666 (253, 9, 47, 'id', 'id', NULL),
667 (254, 9, 47, 'sid', 'sid', NULL),
668 (255, 9, 47, 'password', 'pw', NULL),
669 (256, 9, 47, 'reward', 'verguetung', NULL),
670 (257, 9, 47, 'reload', 'reload', NULL),
671 (258, 9, 47, 'remain', 'uebrig', NULL),
672 (259, 9, 47, 'type', 'typ', 'view'),
673 (260, 9, 47, 'size', 'size', NULL),
674 (261, 9, 38, 'id', 'id', NULL),
675 (262, 9, 38, 'sid', 'sid', NULL),
676 (263, 9, 38, 'password', 'pw', NULL),
677 (264, 9, 38, 'reward', 'verguetung', NULL),
678 (265, 9, 38, 'reload', 'reload', NULL),
679 (266, 9, 38, 'remain', 'uebrig', NULL),
680 (267, 9, 38, 'size', 'size', NULL),
681 (268, 9, 38, 'min_stay', 'ma', NULL),
682 (269, 9, 39, 'id', 'id', NULL),
683 (270, 9, 39, 'sid', 'sid', NULL),
684 (271, 9, 39, 'password', 'pw', NULL),
685 (272, 9, 39, 'reward', 'verguetung', NULL),
686 (273, 9, 39, 'reload', 'reload', NULL),
687 (274, 9, 39, 'remain', 'uebrig', NULL),
688 (275, 9, 39, 'min_stay', 'ma', NULL),
689 (276, 9, 39, 'type', 'typ', 'text'),
690 (277, 9, 48, 'id', 'id', NULL),
691 (278, 9, 48, 'sid', 'sid', NULL),
692 (279, 9, 48, 'password', 'pw', NULL),
693 (280, 9, 48, 'reward', 'verguetung', NULL),
694 (281, 9, 48, 'reload', 'reload', NULL),
695 (282, 9, 48, 'remain', 'uebrig', NULL),
696 (283, 9, 48, 'min_stay', 'ma', NULL),
697 (284, 9, 48, 'type', 'typ', 'html'),
698 (285, 9, 40, 'id', 'id', NULL),
699 (286, 9, 40, 'sid', 'sid', NULL),
700 (287, 9, 40, 'password', 'pw', NULL),
701 (288, 9, 40, 'reward', 'verguetung', NULL),
702 (289, 9, 40, 'reload', 'reload', NULL),
703 (290, 9, 40, 'remain', 'uebrig', NULL),
704 (291, 9, 40, 'type', 'typ', 'klick'),
705 (292, 9, 49, 'id', 'id', NULL),
706 (293, 9, 49, 'sid', 'sid', NULL),
707 (294, 9, 49, 'password', 'pw', NULL),
708 (295, 9, 49, 'reward', 'verguetung', NULL),
709 (296, 9, 49, 'reload', 'reload', NULL),
710 (297, 9, 49, 'remain', 'uebrig', NULL),
711 (298, 9, 49, 'type', 'typ', 'view'),
712 (299, 9, 41, 'id', 'id', NULL),
713 (300, 9, 41, 'sid', 'sid', NULL),
714 (301, 9, 41, 'password', 'pw', NULL),
715 (302, 9, 41, 'reward', 'verguetung', NULL),
716 (303, 9, 41, 'reload', 'reload', NULL),
717 (304, 9, 41, 'remain', 'uebrig', NULL),
718 (305, 9, 41, 'min_stay', 'ma', NULL),
719 (306, 9, 42, 'id', 'id', NULL),
720 (307, 9, 42, 'sid', 'sid', NULL),
721 (308, 9, 42, 'password', 'pw', NULL),
722 (309, 9, 42, 'reward', 'verguetung', NULL),
723 (310, 9, 42, 'reload', 'reload', NULL),
724 (311, 9, 42, 'remain', 'uebrig', NULL),
725 (312, 9, 42, 'min_stay', 'ma', NULL),
726 (313, 9, 43, 'id', 'id', NULL),
727 (314, 9, 43, 'sid', 'sid', NULL),
728 (315, 9, 43, 'password', 'pw', NULL),
729 (316, 9, 43, 'reward', 'verguetung', NULL),
730 (317, 9, 43, 'remain', 'uebrig', NULL),
731 (318, 9, 44, 'id', 'id', NULL),
732 (319, 9, 44, 'sid', 'sid', NULL),
733 (320, 9, 44, 'password', 'pw', NULL),
734 (321, 9, 44, 'reward', 'verguetung', NULL),
735 (322, 9, 44, 'remain', 'uebrig', NULL)");
737 // Request parameters per type handler - BonusSponsor
738 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
739 (323, 10, 50, 'id', 'id', NULL),
740 (324, 10, 50, 'sid', 'sid', NULL),
741 (325, 10, 50, 'password', 'pw', NULL),
742 (326, 10, 50, 'reward', 'verguetung', NULL),
743 (327, 10, 50, 'reload', 'reload', NULL),
744 (328, 10, 50, 'remain', 'uebrig', NULL),
745 (329, 10, 50, 'type', 'typ', 'klick'),
746 (330, 10, 50, 'size', 'size', NULL),
747 (331, 10, 51, 'id', 'id', NULL),
748 (332, 10, 51, 'sid', 'sid', NULL),
749 (333, 10, 51, 'password', 'pw', NULL),
750 (334, 10, 51, 'reward', 'verguetung', NULL),
751 (335, 10, 51, 'reload', 'reload', NULL),
752 (336, 10, 51, 'remain', 'uebrig', NULL),
753 (337, 10, 51, 'type', 'typ', 'view'),
754 (338, 10, 51, 'size', 'size', NULL),
755 (339, 10, 52, 'id', 'id', NULL),
756 (340, 10, 52, 'sid', 'sid', NULL),
757 (341, 10, 52, 'password', 'pw', NULL),
758 (342, 10, 52, 'reward', 'verguetung', NULL),
759 (343, 10, 52, 'reload', 'reload', NULL),
760 (344, 10, 52, 'remain', 'uebrig', NULL),
761 (345, 10, 52, 'type', 'typ', 'klick'),
762 (346, 10, 53, 'id', 'id', NULL),
763 (347, 10, 53, 'sid', 'sid', NULL),
764 (348, 10, 53, 'password', 'pw', NULL),
765 (349, 10, 53, 'reward', 'verguetung', NULL),
766 (350, 10, 53, 'reload', 'reload', NULL),
767 (351, 10, 53, 'remain', 'uebrig', NULL),
768 (352, 10, 53, 'type', 'typ', 'view'),
769 (353, 10, 54, 'id', 'id', NULL),
770 (354, 10, 54, 'sid', 'sid', NULL),
771 (355, 10, 54, 'password', 'pw', NULL),
772 (356, 10, 54, 'reward', 'verguetung', NULL),
773 (357, 10, 54, 'reload', 'reload', NULL),
774 (358, 10, 54, 'remain', 'uebrig', NULL),
775 (359, 10, 54, 'size', 'size', NULL),
776 (360, 10, 54, 'min_stay', 'ma', NULL),
777 (361, 10, 55, 'id', 'id', NULL),
778 (362, 10, 55, 'sid', 'sid', NULL),
779 (363, 10, 55, 'password', 'pw', NULL),
780 (364, 10, 55, 'reward', 'verguetung', NULL),
781 (365, 10, 55, 'reload', 'reload', NULL),
782 (366, 10, 55, 'remain', 'uebrig', NULL),
783 (367, 10, 55, 'min_stay', 'ma', NULL),
784 (368, 10, 55, 'type', 'typ', 'text'),
785 (369, 10, 56, 'id', 'id', NULL),
786 (370, 10, 56, 'sid', 'sid', NULL),
787 (371, 10, 56, 'password', 'pw', NULL),
788 (372, 10, 56, 'reward', 'verguetung', NULL),
789 (373, 10, 56, 'reload', 'reload', NULL),
790 (374, 10, 56, 'remain', 'uebrig', NULL),
791 (375, 10, 56, 'min_stay', 'ma', NULL),
792 (376, 10, 56, 'type', 'typ', 'html'),
793 (377, 10, 57, 'id', 'id', NULL),
794 (378, 10, 57, 'sid', 'sid', NULL),
795 (379, 10, 57, 'password', 'pw', NULL),
796 (380, 10, 57, 'reward', 'verguetung', NULL),
797 (381, 10, 57, 'reload', 'reload', NULL),
798 (382, 10, 57, 'remain', 'uebrig', NULL),
799 (383, 10, 57, 'type', 'typ', 'klick'),
800 (384, 10, 58, 'id', 'id', NULL),
801 (385, 10, 58, 'sid', 'sid', NULL),
802 (386, 10, 58, 'password', 'pw', NULL),
803 (387, 10, 58, 'reward', 'verguetung', NULL),
804 (388, 10, 58, 'reload', 'reload', NULL),
805 (389, 10, 58, 'remain', 'uebrig', NULL),
806 (390, 10, 58, 'type', 'typ', 'view'),
807 (391, 10, 59, 'id', 'id', NULL),
808 (392, 10, 59, 'sid', 'sid', NULL),
809 (393, 10, 59, 'password', 'pw', NULL),
810 (394, 10, 59, 'reward', 'verguetung', NULL),
811 (395, 10, 59, 'reload', 'reload', NULL),
812 (396, 10, 59, 'remain', 'uebrig', NULL),
813 (397, 10, 59, 'min_stay', 'ma', NULL),
814 (398, 10, 60, 'id', 'id', NULL),
815 (399, 10, 60, 'sid', 'sid', NULL),
816 (400, 10, 60, 'password', 'pw', NULL),
817 (401, 10, 60, 'reward', 'verguetung', NULL),
818 (402, 10, 60, 'reload', 'reload', NULL),
819 (403, 10, 60, 'remain', 'uebrig', NULL),
820 (404, 10, 60, 'min_stay', 'ma', NULL),
821 (405, 10, 61, 'id', 'id', NULL),
822 (406, 10, 61, 'sid', 'sid', NULL),
823 (407, 10, 61, 'password', 'pw', NULL),
824 (408, 10, 61, 'reward', 'verguetung', NULL),
825 (409, 10, 61, 'remain', 'uebrig', NULL),
826 (410, 10, 62, 'id', 'id', NULL),
827 (411, 10, 62, 'sid', 'sid', NULL),
828 (412, 10, 62, 'password', 'pw', NULL),
829 (413, 10, 62, 'reward', 'verguetung', NULL),
830 (414, 10, 62, 'remain', 'uebrig', NULL)");
832 // Request parameters per type handler - Fusion-Ads
834 // Request parameters per type handler - Make-Euros
835 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
836 (415, 12, 63, 'id', 'id', NULL),
837 (416, 12, 63, 'sid', 'sid', NULL),
838 (417, 12, 63, 'password', 'pw', NULL),
839 (418, 12, 63, 'reward', 'verguetung', NULL),
840 (419, 12, 63, 'reload', 'reload', NULL),
841 (420, 12, 63, 'remain', 'uebrig', NULL),
842 (421, 12, 63, 'type', 'typ', 'klick'),
843 (422, 12, 63, 'size', 'size', NULL),
844 (423, 12, 64, 'id', 'id', NULL),
845 (424, 12, 64, 'sid', 'sid', NULL),
846 (425, 12, 64, 'password', 'pw', NULL),
847 (426, 12, 64, 'reward', 'verguetung', NULL),
848 (427, 12, 64, 'reload', 'reload', NULL),
849 (428, 12, 64, 'remain', 'uebrig', NULL),
850 (429, 12, 64, 'type', 'typ', 'view'),
851 (430, 12, 64, 'size', 'size', NULL),
852 (431, 12, 65, 'id', 'id', NULL),
853 (432, 12, 65, 'sid', 'sid', NULL),
854 (433, 12, 65, 'password', 'pw', NULL),
855 (434, 12, 65, 'reward', 'verguetung', NULL),
856 (435, 12, 65, 'reload', 'reload', NULL),
857 (436, 12, 65, 'remain', 'uebrig', NULL),
858 (437, 12, 65, 'type', 'typ', 'klick'),
859 (438, 12, 66, 'id', 'id', NULL),
860 (439, 12, 66, 'sid', 'sid', NULL),
861 (440, 12, 66, 'password', 'pw', NULL),
862 (441, 12, 66, 'reward', 'verguetung', NULL),
863 (442, 12, 66, 'reload', 'reload', NULL),
864 (443, 12, 66, 'remain', 'uebrig', NULL),
865 (444, 12, 66, 'type', 'typ', 'view'),
866 (445, 12, 67, 'id', 'id', NULL),
867 (446, 12, 67, 'sid', 'sid', NULL),
868 (447, 12, 67, 'password', 'pw', NULL),
869 (448, 12, 67, 'reward', 'verguetung', NULL),
870 (449, 12, 67, 'reload', 'reload', NULL),
871 (450, 12, 67, 'remain', 'uebrig', NULL),
872 (451, 12, 67, 'max_stay', 'typ', 'klick'),
873 (452, 12, 67, 'size', 'size', NULL),
874 (453, 12, 69, 'id', 'id', NULL),
875 (454, 12, 69, 'sid', 'sid', NULL),
876 (455, 12, 69, 'password', 'pw', NULL),
877 (456, 12, 69, 'reward', 'verguetung', NULL),
878 (457, 12, 69, 'reload', 'reload', NULL),
879 (458, 12, 69, 'remain', 'uebrig', NULL),
880 (459, 12, 69, 'type', 'typ', 'view'),
881 (460, 12, 69, 'size', 'size', NULL),
882 (461, 12, 68, 'id', 'id', NULL),
883 (462, 12, 68, 'sid', 'sid', NULL),
884 (463, 12, 68, 'password', 'pw', NULL),
885 (464, 12, 68, 'reward', 'verguetung', NULL),
886 (465, 12, 68, 'reload', 'reload', NULL),
887 (466, 12, 68, 'remain', 'uebrig', NULL),
888 (467, 12, 68, 'size', 'size', NULL),
889 (468, 12, 68, 'min_stay', 'ma', NULL),
890 (469, 12, 70, 'id', 'id', NULL),
891 (470, 12, 70, 'sid', 'sid', NULL),
892 (471, 12, 70, 'password', 'pw', NULL),
893 (472, 12, 70, 'reward', 'verguetung', NULL),
894 (473, 12, 70, 'reload', 'reload', NULL),
895 (474, 12, 70, 'remain', 'uebrig', NULL),
896 (475, 12, 70, 'min_stay', 'ma', NULL),
897 (476, 12, 70, 'type', 'typ', 'text'),
898 (477, 12, 71, 'id', 'id', NULL),
899 (478, 12, 71, 'sid', 'sid', NULL),
900 (479, 12, 71, 'password', 'pw', NULL),
901 (480, 12, 71, 'reward', 'verguetung', NULL),
902 (481, 12, 71, 'reload', 'reload', NULL),
903 (482, 12, 71, 'remain', 'uebrig', NULL),
904 (483, 12, 71, 'min_stay', 'ma', NULL),
905 (484, 12, 71, 'type', 'typ', 'html'),
906 (485, 12, 72, 'id', 'id', NULL),
907 (486, 12, 72, 'sid', 'sid', NULL),
908 (487, 12, 72, 'password', 'pw', NULL),
909 (488, 12, 72, 'reward', 'verguetung', NULL),
910 (489, 12, 72, 'reload', 'reload', NULL),
911 (490, 12, 72, 'remain', 'uebrig', NULL),
912 (491, 12, 72, 'type', 'typ', 'klick'),
913 (492, 12, 73, 'id', 'id', NULL),
914 (493, 12, 73, 'sid', 'sid', NULL),
915 (494, 12, 73, 'password', 'pw', NULL),
916 (495, 12, 73, 'reward', 'verguetung', NULL),
917 (496, 12, 73, 'reload', 'reload', NULL),
918 (497, 12, 73, 'remain', 'uebrig', NULL),
919 (498, 12, 73, 'type', 'typ', 'view'),
920 (499, 12, 74, 'id', 'id', NULL),
921 (500, 12, 74, 'sid', 'sid', NULL),
922 (501, 12, 74, 'password', 'pw', NULL),
923 (502, 12, 74, 'reward', 'verguetung', NULL),
924 (503, 12, 74, 'reload', 'reload', NULL),
925 (504, 12, 74, 'remain', 'uebrig', NULL),
926 (505, 12, 74, 'min_stay', 'ma', NULL),
927 (506, 12, 75, 'id', 'id', NULL),
928 (507, 12, 75, 'sid', 'sid', NULL),
929 (508, 12, 75, 'password', 'pw', NULL),
930 (509, 12, 75, 'reward', 'verguetung', NULL),
931 (510, 12, 75, 'reload', 'reload', NULL),
932 (511, 12, 75, 'remain', 'uebrig', NULL),
933 (512, 12, 75, 'min_stay', 'ma', NULL),
934 (513, 12, 76, 'id', 'id', NULL),
935 (514, 12, 76, 'sid', 'sid', NULL),
936 (515, 12, 76, 'password', 'pw', NULL),
937 (516, 12, 76, 'reward', 'verguetung', NULL),
938 (517, 12, 76, 'remain', 'uebrig', NULL),
939 (518, 12, 77, 'id', 'id', NULL),
940 (519, 12, 77, 'sid', 'sid', NULL),
941 (520, 12, 77, 'password', 'pw', NULL),
942 (521, 12, 77, 'reward', 'verguetung', NULL),
943 (522, 12, 77, 'remain', 'uebrig', NULL)");
945 // Request parameters per type handler - Power-Promo
946 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
947 (523, 13, 78, 'id', 'id', NULL),
948 (524, 13, 78, 'sid', 'sid', NULL),
949 (525, 13, 78, 'password', 'pw', NULL),
950 (526, 13, 78, 'reward', 'verguetung', NULL),
951 (527, 13, 78, 'reload', 'reload', NULL),
952 (528, 13, 78, 'remain', 'uebrig', NULL),
953 (529, 13, 78, 'type', 'typ', 'klick'),
954 (530, 13, 78, 'size', 'size', NULL),
955 (531, 13, 79, 'id', 'id', NULL),
956 (532, 13, 79, 'sid', 'sid', NULL),
957 (533, 13, 79, 'password', 'pw', NULL),
958 (534, 13, 79, 'reward', 'verguetung', NULL),
959 (535, 13, 79, 'reload', 'reload', NULL),
960 (536, 13, 79, 'remain', 'uebrig', NULL),
961 (537, 13, 79, 'type', 'typ', 'view'),
962 (538, 13, 79, 'size', 'size', NULL),
963 (539, 13, 80, 'id', 'id', NULL),
964 (540, 13, 80, 'sid', 'sid', NULL),
965 (541, 13, 80, 'password', 'pw', NULL),
966 (542, 13, 80, 'reward', 'verguetung', NULL),
967 (543, 13, 80, 'reload', 'reload', NULL),
968 (544, 13, 80, 'remain', 'uebrig', NULL),
969 (545, 13, 80, 'type', 'typ', 'klick'),
970 (546, 13, 81, 'id', 'id', NULL),
971 (547, 13, 81, 'sid', 'sid', NULL),
972 (548, 13, 81, 'password', 'pw', NULL),
973 (549, 13, 81, 'reward', 'verguetung', NULL),
974 (550, 13, 81, 'reload', 'reload', NULL),
975 (551, 13, 81, 'remain', 'uebrig', NULL),
976 (552, 13, 81, 'type', 'typ', 'view'),
977 (553, 13, 82, 'id', 'id', NULL),
978 (554, 13, 82, 'sid', 'sid', NULL),
979 (555, 13, 82, 'password', 'pw', NULL),
980 (556, 13, 82, 'reward', 'verguetung', NULL),
981 (557, 13, 82, 'reload', 'reload', NULL),
982 (558, 13, 82, 'remain', 'uebrig', NULL),
983 (559, 13, 82, 'type', 'typ', 'klick'),
984 (560, 13, 82, 'size', 'size', NULL),
985 (561, 13, 83, 'id', 'id', NULL),
986 (562, 13, 83, 'sid', 'sid', NULL),
987 (563, 13, 83, 'password', 'pw', NULL),
988 (564, 13, 83, 'reward', 'verguetung', NULL),
989 (565, 13, 83, 'reload', 'reload', NULL),
990 (566, 13, 83, 'remain', 'uebrig', NULL),
991 (567, 13, 83, 'type', 'typ', 'view'),
992 (568, 13, 83, 'size', 'size', NULL),
993 (569, 13, 84, 'id', 'id', NULL),
994 (570, 13, 84, 'sid', 'sid', NULL),
995 (571, 13, 84, 'password', 'pw', NULL),
996 (572, 13, 84, 'reward', 'verguetung', NULL),
997 (573, 13, 84, 'reload', 'reload', NULL),
998 (574, 13, 84, 'remain', 'uebrig', NULL),
999 (575, 13, 84, 'size', 'size', NULL),
1000 (576, 13, 84, 'min_stay', 'ma', NULL),
1001 (577, 13, 85, 'id', 'id', NULL),
1002 (578, 13, 85, 'sid', 'sid', NULL),
1003 (579, 13, 85, 'password', 'pw', NULL),
1004 (580, 13, 85, 'reward', 'verguetung', NULL),
1005 (581, 13, 85, 'reload', 'reload', NULL),
1006 (582, 13, 85, 'remain', 'uebrig', NULL),
1007 (583, 13, 85, 'min_stay', 'ma', NULL),
1008 (584, 13, 85, 'type', 'typ', 'text'),
1009 (585, 13, 86, 'id', 'id', NULL),
1010 (586, 13, 86, 'sid', 'sid', NULL),
1011 (587, 13, 86, 'password', 'pw', NULL),
1012 (588, 13, 86, 'reward', 'verguetung', NULL),
1013 (589, 13, 86, 'reload', 'reload', NULL),
1014 (590, 13, 86, 'remain', 'uebrig', NULL),
1015 (591, 13, 86, 'min_stay', 'ma', NULL),
1016 (592, 13, 86, 'type', 'typ', 'html'),
1017 (593, 13, 87, 'id', 'id', NULL),
1018 (594, 13, 87, 'sid', 'sid', NULL),
1019 (595, 13, 87, 'password', 'pw', NULL),
1020 (596, 13, 87, 'reward', 'verguetung', NULL),
1021 (597, 13, 87, 'reload', 'reload', NULL),
1022 (598, 13, 87, 'remain', 'uebrig', NULL),
1023 (599, 13, 87, 'type', 'typ', 'klick'),
1024 (600, 13, 88, 'id', 'id', NULL),
1025 (601, 13, 88, 'sid', 'sid', NULL),
1026 (602, 13, 88, 'password', 'pw', NULL),
1027 (603, 13, 88, 'reward', 'verguetung', NULL),
1028 (604, 13, 88, 'reload', 'reload', NULL),
1029 (605, 13, 88, 'remain', 'uebrig', NULL),
1030 (606, 13, 88, 'type', 'typ', 'view'),
1031 (607, 13, 89, 'id', 'id', NULL),
1032 (608, 13, 89, 'sid', 'sid', NULL),
1033 (609, 13, 89, 'password', 'pw', NULL),
1034 (610, 13, 89, 'reward', 'verguetung', NULL),
1035 (611, 13, 89, 'reload', 'reload', NULL),
1036 (612, 13, 89, 'remain', 'uebrig', NULL),
1037 (613, 13, 89, 'min_stay', 'ma', NULL),
1038 (614, 13, 90, 'id', 'id', NULL),
1039 (615, 13, 90, 'sid', 'sid', NULL),
1040 (616, 13, 90, 'password', 'pw', NULL),
1041 (617, 13, 90, 'reward', 'verguetung', NULL),
1042 (618, 13, 90, 'reload', 'reload', NULL),
1043 (619, 13, 90, 'remain', 'uebrig', NULL),
1044 (620, 13, 90, 'min_stay', 'ma', NULL),
1045 (621, 13, 91, 'id', 'id', NULL),
1046 (622, 13, 91, 'sid', 'sid', NULL),
1047 (623, 13, 91, 'password', 'pw', NULL),
1048 (624, 13, 91, 'reward', 'verguetung', NULL),
1049 (625, 13, 91, 'remain', 'uebrig', NULL),
1050 (626, 13, 92, 'id', 'id', NULL),
1051 (627, 13, 92, 'sid', 'sid', NULL),
1052 (628, 13, 92, 'password', 'pw', NULL),
1053 (629, 13, 92, 'reward', 'verguetung', NULL),
1054 (630, 13, 92, 'remain', 'uebrig', NULL)");
1056 // Request parameters per type handler - SeCash
1057 addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_param_id`, `network_id`, `network_type_id`, `request_param_key`, `request_param_value`, `request_param_default`) VALUES
1058 (631, 14, 93, 'type', 'typ', 'forcedbanner'),
1059 (632, 14, 93, 'id', 'id', NULL),
1060 (633, 14, 93, 'password', 'pw', NULL),
1061 (634, 14, 93, 'reward', 'verguetung', NULL),
1062 (635, 14, 93, 'reload', 'reload', NULL),
1063 (636, 14, 93, 'remain', 'uebrig', NULL),
1064 (637, 14, 94, 'type', 'typ', 'forcedtextlink'),
1065 (638, 14, 94, 'id', 'id', NULL),
1066 (639, 14, 94, 'password', 'pw', NULL),
1067 (640, 14, 94, 'reward', 'verguetung', NULL),
1068 (641, 14, 94, 'reload', 'reload', NULL),
1069 (642, 14, 94, 'remain', 'uebrig', NULL),
1070 (643, 14, 95, 'type', 'typ', 'bannerview'),
1071 (644, 14, 95, 'id', 'id', NULL),
1072 (645, 14, 95, 'password', 'pw', NULL),
1073 (646, 14, 95, 'reward', 'verguetung', NULL),
1074 (647, 14, 95, 'reload', 'reload', NULL),
1075 (648, 14, 95, 'remain', 'uebrig', NULL),
1076 (649, 14, 96, 'type', 'typ', 'bannerklick'),
1077 (650, 14, 96, 'id', 'id', NULL),
1078 (651, 14, 96, 'password', 'pw', NULL),
1079 (652, 14, 96, 'reward', 'verguetung', NULL),
1080 (653, 14, 96, 'reload', 'reload', NULL),
1081 (654, 14, 96, 'remain', 'uebrig', NULL),
1082 (655, 14, 97, 'type', 'typ', 'skybannerview'),
1083 (656, 14, 97, 'id', 'id', NULL),
1084 (657, 14, 97, 'password', 'pw', NULL),
1085 (658, 14, 97, 'reward', 'verguetung', NULL),
1086 (659, 14, 97, 'reload', 'reload', NULL),
1087 (660, 14, 97, 'remain', 'uebrig', NULL),
1088 (661, 14, 98, 'type', 'typ', 'buttonview'),
1089 (662, 14, 98, 'id', 'id', NULL),
1090 (663, 14, 98, 'password', 'pw', NULL),
1091 (664, 14, 98, 'reward', 'verguetung', NULL),
1092 (665, 14, 98, 'reload', 'reload', NULL),
1093 (666, 14, 98, 'remain', 'uebrig', NULL),
1094 (667, 14, 99, 'type', 'typ', 'textview'),
1095 (668, 14, 99, 'id', 'id', NULL),
1096 (669, 14, 99, 'password', 'pw', NULL),
1097 (670, 14, 99, 'reward', 'verguetung', NULL),
1098 (671, 14, 99, 'reload', 'reload', NULL),
1099 (672, 14, 99, 'remain', 'uebrig', NULL),
1100 (673, 14, 100, 'type', 'typ', 'popup'),
1101 (674, 14, 100, 'id', 'id', NULL),
1102 (675, 14, 100, 'password', 'pw', NULL),
1103 (676, 14, 100, 'reward', 'verguetung', NULL),
1104 (677, 14, 100, 'reload', 'reload', NULL),
1105 (678, 14, 100, 'remain', 'uebrig', NULL),
1106 (679, 14, 100, 'min_stay', 'ma', NULL),
1107 (680, 14, 101, 'type', 'typ', 'paidmail'),
1108 (681, 14, 101, 'id', 'id', NULL),
1109 (682, 14, 101, 'password', 'pw', NULL),
1110 (683, 14, 101, 'reward', 'verguetung', NULL),
1111 (684, 14, 101, 'reload', 'reload', NULL),
1112 (685, 14, 101, 'remain', 'uebrig', NULL),
1113 (686, 14, 101, 'min_stay', 'ma', NULL)");
1115 // Request parameters per type handler - Yoo!Media
1117 // Fix empty defaults to NULL
1118 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_network_types` SET `network_type_banner_url `=NULL WHERE `network_type_banner_url `=''");
1119 addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_network_request_params` SET `request_param_default`=NULL WHERE `request_param_default`=''");
1121 // Admin menu entries
1122 addAdminMenuSql('network',NULL,'Werbenetzwerke','Verwalten Sie hier Werbenetzwerke (API-Anbindung), versenden Sie deren Mails, oder übernehmen Sie deren Textlinks und vieles mehr. <strong>VORSICHT:</strong> Das Einrichten von weiteren Werbenetzwerken ist nicht leicht, dafür aber sehr flexibel! Sollte ein Netzwerk fehlen, so melden Sie dies bitte <a href="http://forum.mxchange.org/topic-462.html" target="_blank" title="Direktlink zum Forum">im Forum</a>!',4);
1123 addAdminMenuSql('network','config_networks','API-Daten','Stellen Sie Ihre Affiliate- Webseiten-Id und API-Passwort ein. Diese erhalten Sie zu über 99% aus dem jeweiligen Zugangsbereich des Anbieters. Sollten Sie bei einem Netzwerk noch nicht angemeldet sein, verwenden Sie bitte meinen Referal-Link.',1);
1124 addAdminMenuSql('network','config_network_types','Werbearten','Stellen Sie hier Reload-Zeiten, Mindestauffenthalt und so weiter pro Werbeart und Werbenetzwerk ein. Es werden sonst Standart-Werte (Mimimumwerte: 0, Maximumwerte: sehr gross, Erotik: aus) angenommen, die Sie meistens nicht wollen.',2);
1125 addAdminMenuSql('network','query_networks','APIs abfragen','Fragt alle eingestellten APIs ab. Die Ergebnisse werden dann für einen einstellbaren Zeitraum gecacht und nicht erneut angefordert.',3);
1126 addAdminMenuSql('network','config_network','Einstellungen','Stellen Sie generelle Einstellungen ein, die für alle Werbenetzwerke gelten, wie z.B. Cache-Erneuerungsinterval. Generell sind aber die Einstellungen in Ordnung, da z.B. sonst Ihre freien Abfragen beim Werbenetzwerk sich zu schnell abbauen.',4);
1127 addAdminMenuSql('network','list_network_reloads','Reload-Sperren','Listen oder löschen Sie hier Reload-Sperren. <strong>Vorsicht:</strong> Die hier gespeicherten Reload-Sperren sind vom jeweiligen Werbenetzwerk übernommen. Eventuell verdienen Sie nichts, wenn Sie z.B. eine Mail innerhalb der Reload-Sperre erneut versenden.',5);
1128 addAdminMenuSql('network','list_networks','Auflisten/Verwalten','<strong>Experten-Einstellungen!</strong> Hier ändern Sie die Einstellungen an den Grunddaten (Stammdaten) des jeweiligen Werbenetzwerks ab. Sie sollten hier generell nichts einstellen und <a href="http://forum.mxchange.org/forum-43.html" target="_blank" title="Direktlink zum Forum">im Forum</a> um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',6);
1129 addAdminMenuSql('network','list_network_types','Werbearten','<strong>Experten-Einstellungen!</strong> Hier ändern Sie die Einstellungen zu den Werbearten pro Werbenetzwerken. Sie sollten hier generell nichts einstellen und <a href="http://forum.mxchange.org/forum-43.html" target="_blank" title="Direktlink zum Forum">im Forum</a> um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',7);
1130 addAdminMenuSql('network','list_network_params','Abfrageparameter','<strong>Experten-Einstellungen!</strong> Hier stellen Sie die Abfrageparameter (wie sie genannt werden müssen, um das API-Script korrekt aufrufen zu können) ein, pro Werbenetzwerk. Sie sollten hier generell nichts einstellen und <a href="http://forum.mxchange.org/forum-43.html" target="_blank" title="Direktlink zum Forum">im Forum</a> um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',8);
1131 addAdminMenuSql('network','list_network_code_types','Rückgabewerte','<strong>Experten-Einstellungen!</strong> Hier stellen Sie die Rückgabewerte ein, die im Falle eines Fehlers pro API-Script kommen können. Sie sollten hier generell nichts einstellen und <a href="http://forum.mxchange.org/forum-43.html" target="_blank" title="Direktlink zum Forum">im Forum</a> um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',9);
1132 addAdminMenuSql('network','list_network_codes','Fehlercodes','<strong>Experten-Einstellungen!</strong> Hier stellen Sie die Namen von Fehlercodes ein, die Scripte zurückliefern können. <strong>Dies sind INTERNE Daten und sollten nur vom Entwicklerteam angepasst werden.</strong> Stellen Sie an diesen Einstellungen bitte nichts um. Sie sollten hier generell nichts einstellen und <a href="http://forum.mxchange.org/forum-43.html" target="_blank" title="Direktlink zum Forum">im Forum</a> um Hilfe fragen, wenn Sie selber ein Werbenetzwerk einrichten möchten.',10);
1134 // Configuration entries
1135 addExtensionSql('ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `network_cache_refresh` BIGINT(20) UNSIGNED NOT NULL DEFAULT ' . (60 * 15) . '');
1138 case 'remove': // Do stuff when removing extension
1139 // SQL commands to run
1140 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_data`');
1141 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types`');
1142 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_request_params`');
1143 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_type_codes`');
1144 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_codes`');
1145 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_translations`');
1146 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_array_translation`');
1147 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_config`');
1148 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_types_config`');
1149 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_cache`');
1150 addExtensionSql('DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_network_reloads`');
1153 addExtensionSql("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_admin_menu` WHERE `action`='network'");
1156 case 'activate': // Do stuff when admin activates this extension
1157 // SQL commands to run
1160 case 'deactivate': // Do stuff when admin deactivates this extension
1161 // SQL commands to run
1164 case 'update': // Update an extension
1165 switch (getCurrentExtensionVersion()) {
1166 case '0.0.1': // SQL queries for v0.0.1
1167 addExtensionSql('');
1169 // Update notes (these will be set as task text!)
1170 setExtensionUpdateNotes('');
1175 case 'modify': // When the extension got modified
1178 case 'test': // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
1181 case 'init': // Do stuff when extension is initialized
1184 default: // Unknown extension mode
1185 logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s detected.", getExtensionMode()));