./inc/extensions/ext-network.php:26: * @TODO AllAds4You: Traffic from abroad, High-Forced banner *
./inc/extensions/ext-network.php:27: * @TODO FuCoExSponsor: No High-Forced banner, HTML is BASE64 encoded *
./inc/extensions/ext-network.php:28: * @TODO FuCoExSponsor: Textlink-View is JavaScript! *
-./inc/extensions/ext-network.php:29: * @TODO Fusion-Ads: Has click/banner URL in API response, really UTF-8 *
+./inc/extensions/ext-network.php:29: * @TODO Fusion-Ads: Has click/banner URL in API response *
./inc/extensions/ext-network.php:30: * @TODO GolloX: Which charset? *
./inc/extensions/ext-network.php:31: * @TODO paid4ad: Which URLs for click and banner? *
./inc/extensions/ext-network.php:32: * @TODO VIPads: HTML text is send encoded with BASE64 *
* @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 *
) 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
('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'),
(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
(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
(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
$content['la_mode'] = generateOptionList('/ARRAY/', array('global', 'OLD', 'NEW'), array('{--ADMINS_GLOBAL_LA_SETTING--}', '{--ADMINS_OLD_LA_SETTING--}', '{--ADMINS_NEW_LA_SETTING--}'), $content['la_mode']);
// Load row template and switch color
- $OUT .= loadTemplate('form_submit_admins_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_admins_row', true, $content);
} // END - if
} // END - foreach
// Load template
- loadTemplate('form_submit_admins', false, $OUT);
+ loadTemplate('admin_edit_admins', false, $OUT);
}
// Delete given admin accounts
if (count($networkData) > 0) {
if (isFormSent('edit')) {
// Add row template for editing
- $OUT .= loadTemplate('form_submit_networks_row', true, $networkData);
+ $OUT .= loadTemplate('admin_edit_networks_row', true, $networkData);
} elseif (isFormSent('del')) {
// Add row template for deleting
$OUT .= loadTemplate('admin_del_networks_row', true, $networkData);
if (!empty($OUT)) {
// Output main template
if (isFormSent('edit')) {
- loadTemplate('form_submit_networks', false, $OUT);
+ loadTemplate('admin_edit_networks', false, $OUT);
} elseif (isFormSent('del')) {
loadTemplate('admin_del_networks', false, $OUT);
} else {
if (count($networkTypeData) > 0) {
if (isFormSent('edit')) {
// Add row template for deleting
- $OUT .= loadTemplate('form_submit_network_types_row', true, $networkTypeData);
+ $OUT .= loadTemplate('admin_edit_network_types_row', true, $networkTypeData);
} elseif (isFormSent('del')) {
// Add row template for deleting
$OUT .= loadTemplate('admin_del_network_types_row', true, $networkTypeData);
if (!empty($OUT)) {
// Output main template
if (isFormSent('edit')) {
- loadTemplate('form_submit_network_types', false, $OUT);
+ loadTemplate('admin_edit_network_types', false, $OUT);
} elseif (isFormSent('del')) {
loadTemplate('admin_del_network_types', false, $OUT);
} else {
if (count($networkRequestData) > 0) {
if (isFormSent('edit')) {
// Add row template for deleting
- $OUT .= loadTemplate('form_submit_network_params_row', true, $networkRequestData);
+ $OUT .= loadTemplate('admin_edit_network_params_row', true, $networkRequestData);
} elseif (isFormSent('del')) {
// Get type data
$networkRequestData['network_type_data'] = getNetworkTypeDataById($networkRequestData['network_type_id']);
if (!empty($OUT)) {
// Output main template
if (isFormSent('edit')) {
- loadTemplate('form_submit_network_params', false, $OUT);
+ loadTemplate('admin_edit_network_params', false, $OUT);
} elseif (isFormSent('del')) {
loadTemplate('admin_del_network_params', false, $OUT);
} else {
);
// Load row template
- $OUT .= loadTemplate('form_submit_admin_menu_row', true, $data);
+ $OUT .= loadTemplate('admin_edit_admin_menu_row', true, $data);
} else {
// Entry not found?
$data = array(
$content['cnt'] = $cnt;
// Load template
- loadTemplate('form_submit_admin_menu_form', false, $content);
+ loadTemplate('admin_edit_admin_menu_form', false, $content);
} elseif ((isFormSent('del')) && (ifPostContainsSelections()) && (!isDemoModeActive())) {
// Prepare misc content
$content['sub'] = $SUB;
SQL_FREERESULT($result);
// Load template
- loadTemplate('form_submit_admin_menu', false, $content);
+ loadTemplate('admin_edit_admin_menu', false, $content);
} else {
// Menu entries are missing... (???)
loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
$content['visible_selection'] = addSelectionBox('yn', $content['visible'], 'visible', $content['id']);
// Load row template and switch colors
- $OUT .= loadTemplate('form_submit_cats_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_cats_row', true, $content);
} // END - foreach
// Load main template
- loadTemplate('form_submit_cats', false, $OUT);
+ loadTemplate('admin_edit_cats', false, $OUT);
} else {
// Init variable here
$CATS = '';
SQL_FREERESULT($result);
// Load row template and switch color
- $OUT .= loadTemplate('form_submit_reflevel_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_reflevel_row', true, $content);
} // END - foreach
// Load main template
- loadTemplate('form_submit_reflevel', false, $OUT);
+ loadTemplate('admin_edit_reflevel', false, $OUT);
} else {
// Referal levels
$result = SQL_QUERY("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC", __FILE__, __LINE__);
SQL_FREERESULT($result);
// Load template
- loadTemplate('form_submit_email', false, $content);
+ loadTemplate('admin_edit_email', false, $content);
} elseif (isPostRequestParameterSet('save')) {
// Save changes
SQL_QUERY_ESC("UPDATE
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
// Load row template and switch colors
- $OUT .= loadTemplate('form_submit_email_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_email_row', true, $content);
} // END - while
// Free memory
SQL_FREERESULT($result);
// Load email template
- loadTemplate('form_submit_email_select', false, $OUT);
+ loadTemplate('admin_edit_email_select', false, $OUT);
}
} else {
// No mail orders left in pool
$content['warning_interval'] = createTimeSelections($content['warning_interval'], 'warning_interval', 'MWDh');
// Init variables here
- $TPL = sprintf("form_submit_sponsor_%s", getRequestParameter('mode'));
+ $TPL = sprintf("admin_edit_sponsor_%s", getRequestParameter('mode'));
initSqls();
// Sponsor was found
$content['gender_' . strtolower($content['gender'])] = ' selected="selected"';
// Load template
- loadTemplate('form_submit_user', false, $content);
+ loadTemplate('admin_edit_user', false, $content);
}
} else {
// Account does not exists!
);
// Load row template
- $OUT .= loadTemplate('form_submit_guest_menu_row', true, $DATA);
+ $OUT .= loadTemplate('admin_edit_guest_menu_row', true, $DATA);
} else {
// Entry not found
$DATA = array(
$content['cnt'] = $cnt;
// Load template
- loadTemplate('form_submit_guest_menu_form', false, $content);
+ loadTemplate('admin_edit_guest_menu_form', false, $content);
} elseif ((isFormSent('del')) && (ifPostContainsSelections()) && (!isDemoModeActive())) {
// Del menu entries with or without confirmation
$content['sub'] = $SUB;
SQL_FREERESULT($result);
// Load template
- loadTemplate('form_submit_guest_menu', false, $content);
+ loadTemplate('admin_edit_guest_menu', false, $content);
} else {
// Menu entries are missing... (???)
loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
$content['id'] = $id;
// Output row
- $OUT .= loadTemplate('form_submit_rallyes_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_rallyes_row', true, $content);
} // END - foreach
// Load final template
- loadTemplate('form_submit_rallyes', false, $OUT);
+ loadTemplate('admin_edit_rallyes', false, $OUT);
} else {
// Nothing selected to edit
loadTemplate('admin_settings_saved', false, '{--RALLYE_NO_RALLYES_SELECTED--}');
);
// Load template
- $OUT .= loadTemplate('form_submit_member_menu_row', true, $data);
+ $OUT .= loadTemplate('admin_edit_member_menu_row', true, $data);
} else {
// Entry not found?
$data = array(
$content['cnt'] = $cnt;
// Load template
- loadTemplate('form_submit_member_menu', false, $content);
+ loadTemplate('admin_edit_member_menu', false, $content);
} elseif ((isFormSent('del')) && (ifPostContainsSelections()) && (!isDemoModeActive())) {
// Del menu entries with or without confirmation
$content['sub'] = $SUB;
SQL_FREERESULT($result);
// Load row template and switch colors
- $OUT .= loadTemplate('form_submit_payments_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_payments_row', true, $content);
} // END - foreach
// Load main template
- loadTemplate('form_submit_payments', false, $OUT);
+ loadTemplate('admin_edit_payments', false, $OUT);
} else {
// Referal levels
$result = SQL_QUERY("SELECT `id`, `time`, `payment`, `mail_title`, `price` FROM `{?_MYSQL_PREFIX?}_payments` ORDER BY `time` ASC", __FILE__, __LINE__);
$content['visible'] = addSelectionBox('yn', $content['visible'], 'visible');
// Load row template and switch color
- $OUT .= loadTemplate('form_submit_refbanner_row', true, $content);
+ $OUT .= loadTemplate('admin_edit_refbanner_row', true, $content);
} // END - foreach
// Load main template
- loadTemplate('form_submit_refbanner', false, $OUT);
+ loadTemplate('admin_edit_refbanner', false, $OUT);
} else {
if ((ifPostContainsSelections()) && (isFormSent('del'))) {
// Delete banner
<td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_REQUEST_TYPE--}:</td>
<td class="{%template,ColorSwitch%}">
<select name="network_request_type[$content[network_id]]" class="form_select" size="1">
- $content[network_request_type]
+ {%pipe,generateNetworkRequestTypeOptions=$content[network_request_type]%}
</select>
</td>
<td class="{%template,ColorSwitch%}" style="padding-left:5px">{--ADMIN_NETWORK_ROW_SEPERATOR--}:</td>