`network_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`network_api_affiliate_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
`network_api_password` VARCHAR(255) NOT NULL DEFAULT '',
-`network_api_site_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+`network_api_site_id` BIGINT(20) UNSIGNED NULL DEFAULT NULL,
`network_api_active` ENUM('Y','N') NOT NULL DEFAULT 'Y',
`network_api_referral_link` VARCHAR(255) NULL DEFAULT NULL,
`network_api_referral_button` VARCHAR(255) NULL DEFAULT NULL,
('earn4webbis', 'Earn4Webbis', 'http://www.earn4webbis.net/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 500, 'Y'),
('erotic_promotion', 'Erotic-Promotion', 'http://erotic-promotion.eu?ref=167', '|', '|', 'GET', 'WINDOWS-1252', 'N', 200, 'Y'),
('lose_ads', 'LoseAds', 'http://www.loseads.eu/index.php?seite=anmeldung&ref=Quix0r', '|', '|', 'GET', 'ISO-8859-1', 'N', 100, 'Y'),
-('kueko_net', 'Kueko-Net', 'http://www.kueko-net.de/?seite=content/anmeldung&ref=589', '|', '|', 'GET', 'WINDOWS-1252', 'N', 150, 'Y')");
+('kueko_net', 'Kueko-Net', 'http://www.kueko-net.de/?seite=content/anmeldung&ref=589', '|', '|', 'GET', 'WINDOWS-1252', 'N', 150, 'Y'),
+('forced_lose', 'Forced-Lose', 'http://www.forced-lose.de/?rid=3155', '|', '|', 'GET', 'UTF-8', 'N', 1000, 'Y')");
// Network type handlers - A3H
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handler`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`, `network_type_reload_time_unit`, `network_text_encoding`) VALUES
// Network type handlers - AdCocktail
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handler`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`, `network_type_reload_time_unit`, `network_text_encoding`) VALUES
-(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, 'h', 'NONE'),
-(13, 4, 'forced_banner', '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%', 'h', 'NONE'),
-(479, 4, 'traffic', 'http://www.adcocktail.com/sc/kas/kas_tt.php', 'http://tt.adcocktail.com/tt.php?uid=%UID%&wid=%CID%&wsid=%SID%', NULL, 'h', 'NONE'),
-(480, 4, 'forced_button', '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%', 'h', 'NONE'),
-(481, 4, 'forced_half_banner', '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%', 'h', 'NONE'),
-(482, 4, 'forced_skyscraper', '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%', 'h', 'NONE')");
+(12, 4, 'textmail', 'http://www.adcocktail.com/sc/kas/kas_pm.php', 'http://pm.adcocktail.com/pm.php?uid=%UID%&wid=%BID%&wsid=%SID%', NULL, 'h', 'NONE'),
+(13, 4, 'forced_banner', 'http://www.adcocktail.com/sc/kas/kas_fk.php', 'http://fk.adcocktail.com/fk_k.php?uid=%UID%&wid=%BID%&wsid=%SID%', 'http://fk.adcocktail.com/fk_v.php?uid=%UID%&wid=%BID%&wsid=%SID%', 'h', 'NONE'),
+(479, 4, 'traffic', 'http://www.adcocktail.com/sc/kas/kas_tt.php', 'http://tt.adcocktail.com/tt.php?uid=%UID%&wid=%BID%&wsid=%SID%', NULL, 'h', 'NONE'),
+(480, 4, 'forced_button', 'http://www.adcocktail.com/sc/kas/kas_fk.php', 'http://fk.adcocktail.com/fk_k.php?uid=%UID%&wid=%BID%&wsid=%SID%', 'http://fk.adcocktail.com/fk_v.php?uid=%UID%&wid=%BID%&wsid=%SID%', 'h', 'NONE'),
+(481, 4, 'forced_half_banner', 'http://www.adcocktail.com/sc/kas/kas_fk.php', 'http://fk.adcocktail.com/fk_k.php?uid=%UID%&wid=%BID%&wsid=%SID%', 'http://fk.adcocktail.com/fk_v.php?uid=%UID%&wid=%BID%&wsid=%SID%', 'h', 'NONE'),
+(482, 4, 'forced_skyscraper', 'http://www.adcocktail.com/sc/kas/kas_fk.php', 'http://fk.adcocktail.com/fk_k.php?uid=%UID%&wid=%BID%&wsid=%SID%', 'http://fk.adcocktail.com/fk_v.php?uid=%UID%&wid=%BID%&wsid=%SID%', 'h', 'NONE')");
// Network type handlers - AdConvention
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handler`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`, `network_type_reload_time_unit`, `network_text_encoding`) VALUES
(439, 42, 'popup', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/popup.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', NULL, 'h', 'NONE'),
(440, 42, 'textmail', 'http://www.eu-ads.de/interface/api_2.php', 'http://www.eu-ads.de/codes/paidmail.php?id=%UID%&bid=%CID%&aid=%SID%&trackid=%TID%&vc=%VPC%', NULL, 'h', 'NONE')");
+// Network type handlers - Forced-Lose
+addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handler`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`, `network_type_reload_time_unit`, `network_text_encoding`) VALUES
+(802, 66, 'popup', 'http://www.forced-lose.de/sc/kas/kas_pu.php', 'http://pm.forced-lose.de/sc/popup.php?id=%UID%&bid=%BID%&aid=%SID%', NULL, 'h', 'NONE'),
+(803, 66, 'traffic', 'http://www.forced-lose.de/sc/kas/kas_tt.php', 'http://tt.forced-lose.de/sc/tt.php?id=%UID%&bid=%BID%&aid=%SID%', NULL, 'h', 'NONE'),
+(804, 66, 'textmail', 'http://www.forced-lose.de/sc/kas/kas_pm.php', 'http://pm.forced-lose.de/sc/pm.php?id=%UID%&bid=%BID%&aid=%SID%', NULL, 'h', 'NONE'),
+(805, 66, 'forced_banner', 'http://www.forced-lose.de/sc/kas/kas_fk.php', 'http://fk.forced-lose.de/sc/fk_k.php?id=%UID%&bid=%BID%&aid=%SID%', 'http://fk.forced-lose.de/sc/fk_v.php?id=%UID%&bid=%BID%&aid=%SID%', 'h', 'NONE'),
+(806, 66, 'forced_button', 'http://www.forced-lose.de/sc/kas/kas_fk.php', 'http://fk.forced-lose.de/sc/fk_k.php?id=%UID%&bid=%BID%&aid=%SID%', 'http://fk.forced-lose.de/sc/fk_v.php?id=%UID%&bid=%BID%&aid=%SID%', 'h', 'NONE'),
+(807, 66, 'forced_half_banner', 'http://www.forced-lose.de/sc/kas/kas_fk.php', 'http://fk.forced-lose.de/sc/fk_k.php?id=%UID%&bid=%BID%&aid=%SID%', 'http://fk.forced-lose.de/sc/fk_v.php?id=%UID%&bid=%BID%&aid=%SID%', 'h', 'NONE'),
+(808, 66, 'forced_skyscraper', 'http://www.forced-lose.de/sc/kas/kas_fk.php', 'http://fk.forced-lose.de/sc/fk_k.php?id=%UID%&bid=%BID%&aid=%SID%', 'http://fk.forced-lose.de/sc/fk_v.php?id=%UID%&bid=%BID%&aid=%SID%', 'h', 'NONE')");
+
// Network type handlers - FuCoExSponsor.net
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_types` (`network_type_id`, `network_id`, `network_type_handler`, `network_type_api_url`, `network_type_click_url`, `network_type_banner_url`, `network_type_reload_time_unit`, `network_text_encoding`) VALUES
(273, 29, 'banner_click', 'http://fucoexsponsor.net/int/get.php', 'http://fucoexsponsor.net/kamp/ziel.php?uid=%UID%&bid=%BID%&sid=%SID%&subid=%TID%&vc=%VPC%&v1=%V1%&v2=%V2%', 'http://fucoexsponsor.net/kamp/b_view.php?uid=%UID%&bid=%BID%&sid=%SID%&subid=%TID%&vc=%VPC%', 'h', 'NONE'),
(42, 440, 'reload', 'reload', NULL),
(42, 440, 'reward', 'verguetung', NULL)");
+// Request parameters per type handler - Forced-Lose
+addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `network_request_param_key`, `network_request_param_value`, `network_request_param_default`) VALUES
+(66, 802, 'affiliate_id', 'u_id', NULL),
+(66, 802, 'password', 'k_pass', NULL),
+(66, 802, 'reward', 'k_v', NULL),
+(66, 802, 'remain_clicks', 'k_rest', NULL),
+(66, 802, 'maximum_stay', 'k_mamax', NULL),
+(66, 802, 'extra', 'u_mode', 'on'),
+(66, 803, 'affiliate_id', 'u_id', NULL),
+(66, 803, 'password', 'k_pass', NULL),
+(66, 803, 'reward', 'k_v', NULL),
+(66, 803, 'remain_clicks', 'k_rest', NULL),
+(66, 803, 'extra', 'u_mode', 'on'),
+(66, 804, 'affiliate_id', 'u_id', NULL),
+(66, 804, 'password', 'k_pass', NULL),
+(66, 804, 'reward', 'k_v', NULL),
+(66, 804, 'remain_clicks', 'k_rest', NULL),
+(66, 804, 'maximum_stay', 'k_mamax', NULL),
+(66, 804, 'extra', 'u_mode', 'on'),
+(66, 805, 'affiliate_id', 'u_id', NULL),
+(66, 805, 'password', 'k_pass', NULL),
+(66, 805, 'reward', 'k_v', NULL),
+(66, 805, 'remain_clicks', 'k_rest', NULL),
+(66, 805, 'size', 'b_f', '468'),
+(66, 805, 'extra', 'u_mode', 'on'),
+(66, 806, 'affiliate_id', 'u_id', NULL),
+(66, 806, 'password', 'k_pass', NULL),
+(66, 806, 'reward', 'k_v', NULL),
+(66, 806, 'remain_clicks', 'k_rest', NULL),
+(66, 806, 'size', 'b_f', '88'),
+(66, 806, 'extra', 'u_mode', 'on'),
+(66, 807, 'affiliate_id', 'u_id', NULL),
+(66, 807, 'password', 'k_pass', NULL),
+(66, 807, 'reward', 'k_v', NULL),
+(66, 807, 'remain_clicks', 'k_rest', NULL),
+(66, 807, 'size', 'b_f', '234'),
+(66, 807, 'extra', 'u_mode', 'on'),
+(66, 808, 'affiliate_id', 'u_id', NULL),
+(66, 808, 'password', 'k_pass', NULL),
+(66, 808, 'reward', 'k_v', NULL),
+(66, 808, 'remain_clicks', 'k_rest', NULL),
+(66, 808, 'size', 'b_f', '120'),
+(66, 808, 'extra', 'u_mode', 'on')");
+
// Request parameters per type handler - FuCoExSponsor.net
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_request_params` (`network_id`, `network_type_id`, `network_request_param_key`, `network_request_param_value`, `network_request_param_default`) VALUES
(29, 273, 'extra', 'art', 'bannerklick'),
(62, 763, 6, 5),
(62, 763, 10, 6)");
+// API array elements - Forced-Lose
+addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES
+(66, 802, 1, 1),
+(66, 802, 2, 2),
+(66, 802, 4, 3),
+(66, 802, 15, 4),
+(66, 802, 5, 5),
+(66, 802, 6, 6),
+(66, 802, 10, 7),
+(66, 803, 1, 1),
+(66, 803, 2, 2),
+(66, 803, 4, 3),
+(66, 803, 7, 4),
+(66, 803, 5, 5),
+(66, 803, 6, 6),
+(66, 804, 1, 1),
+(66, 804, 2, 2),
+(66, 804, 4, 3),
+(66, 804, 13, 4),
+(66, 804, 9, 5),
+(66, 804, 5, 6),
+(66, 804, 6, 7),
+(66, 804, 10, 8),
+(66, 805, 1, 1),
+(66, 805, 2, 2),
+(66, 805, 4, 3),
+(66, 805, 7, 4),
+(66, 805, 5, 5),
+(66, 805, 6, 6),
+(66, 805, 10, 7),
+(66, 806, 1, 1),
+(66, 806, 2, 2),
+(66, 806, 4, 3),
+(66, 806, 7, 4),
+(66, 806, 5, 5),
+(66, 806, 6, 6),
+(66, 806, 10, 7),
+(66, 807, 1, 1),
+(66, 807, 2, 2),
+(66, 807, 4, 3),
+(66, 807, 7, 4),
+(66, 807, 5, 5),
+(66, 807, 6, 6),
+(66, 807, 10, 7),
+(66, 808, 1, 1),
+(66, 808, 2, 2),
+(66, 808, 4, 3),
+(66, 808, 7, 4),
+(66, 808, 5, 5),
+(66, 808, 6, 6),
+(66, 808, 10, 7)");
+
// API array elements - FuCoExSponsor.net
addExtensionSql("INSERT INTO `{?_MYSQL_PREFIX?}_network_array_translation` (`network_id`, `network_type_id`, `network_array_index`, `network_array_sort`) VALUES
(29, 273, 7, 1),
// Is there cache?
if (!isset($GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key])) {
// Does it exist?
- $GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key] = (countSumTotalData(bigintval($networkId), 'network_request_params', 'network_id', 'network_request_param_id', 'network_id', TRUE, sprintf(" AND `network_type_id`=%s AND `network_request_param_key`='%s'", bigintval($networkTypeId), SQL_ESCAPE($key))) == 1);
+ $GLOBALS[__FUNCTION__][$networkId][$networkTypeId][$key] = (countSumTotalData(bigintval($networkId), 'network_request_params', 'network_request_param_id', 'network_id', TRUE, sprintf(" AND `network_type_id`=%s AND `network_request_param_key`='%s'", bigintval($networkTypeId), SQL_ESCAPE($key))) == 1);
} // END - if
// Return result
}
} else {
// Nothing selected
- $content = loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_ENTRIES_404--}');
+ $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
}
// Free the result
$content = generateSelectionBoxFromArray($rows, 'network_type', 'network_type_id');
} else {
// Nothing selected
- $content = loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_ENTRIES_404--}');
+ $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
}
// Free the result
$content = generateSelectionBoxFromArray($rows, 'network_type', 'network_type_id', '', '_title');
} else {
// Nothing selected
- $content = loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_ENTRIES_404--}');
+ $content = displayErrorMessage('{--ADMIN_ENTRIES_404--}');
}
// Free the result
// We can say here, the form is sent, so check if the network is already added
if (isNetworkNameValid(postRequestElement('network_short_name'))) {
// Already there
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_ALREADY_ADDED=' . postRequestElement('network_short_name') . '%}');
+ displayErrorMessage('{%message,ADMIN_NETWORK_ALREADY_ADDED=' . postRequestElement('network_short_name') . '%}');
return FALSE;
} // END - if
loadTemplate('admin_network_added', FALSE, postRequestArray());
} else {
// Not added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_DATA_NOT_ADDED=' . postRequestElement('network_short_name') . '%}');
+ displayErrorMessage('{%message,ADMIN_NETWORK_DATA_NOT_ADDED=' . postRequestElement('network_short_name') . '%}');
}
}
$GLOBALS['network_display'] = FALSE;
} else {
// Nothing selected/found
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_NOTHING_FOUND--}');
+ displayErrorMessage('{--ADMIN_NETWORK_NOTHING_FOUND--}');
}
} // END - if
}
$GLOBALS['network_display'] = FALSE;
} else {
// Nothing selected/found
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_TYPE_HANDLER_NOTHING_FOUND--}');
+ displayErrorMessage('{--ADMIN_NETWORK_TYPE_HANDLER_NOTHING_FOUND--}');
}
} // END - if
}
$GLOBALS['network_display'] = FALSE;
} else {
// Nothing selected/found
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_FOUND--}');
+ displayErrorMessage('{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_FOUND--}');
}
} // END - if
}
displayMessage('{%message,ADMIN_NETWORK_UPDATED=' . $updated . '%}');
} else {
// Nothing changed
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_NOTHING_CHANGED--}');
+ displayErrorMessage('{--ADMIN_NETWORK_NOTHING_CHANGED--}');
}
} // END - if
}
displayMessage('{%message,ADMIN_NETWORK_REMOVED=' . $removed . '%}');
} else {
// Nothing removed
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_NOTHING_REMOVED--}');
+ displayErrorMessage('{--ADMIN_NETWORK_NOTHING_REMOVED--}');
}
} // END - if
}
// Is the network type handle already used with given network?
if (isNetworkTypeHandleValid(postRequestElement('network_type_handler'), getRequestElement('network_id'))) {
// Already added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_TYPE_HANDLER_ALREADY_ADDED=' . postRequestElement('network_type_handler') . '%}');
+ displayErrorMessage('{%message,ADMIN_NETWORK_TYPE_HANDLER_ALREADY_ADDED=' . postRequestElement('network_type_handler') . '%}');
// ... so abort here
return FALSE;
loadTemplate('admin_network_type_added', FALSE, postRequestArray());
} else {
// Not added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_TYPE_HANDLER_NOT_ADDED=' . postRequestElement('network_type_handler') . '%}');
+ displayErrorMessage('{%message,ADMIN_NETWORK_TYPE_HANDLER_NOT_ADDED=' . postRequestElement('network_type_handler') . '%}');
}
}
displayMessage('{%message,ADMIN_NETWORK_TYPE_HANDLER_UPDATED=' . $updated . '%}');
} else {
// Nothing changed
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_TYPE_HANDLER_NOTHING_CHANGED--}');
+ displayErrorMessage('{--ADMIN_NETWORK_TYPE_HANDLER_NOTHING_CHANGED--}');
}
} // END - if
}
displayMessage('{%message,ADMIN_NETWORK_REQUEST_PARAMETER_UPDATED=' . $updated . '%}');
} else {
// Nothing changed
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_CHANGED--}');
+ displayErrorMessage('{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_CHANGED--}');
}
} // END - if
}
displayMessage('{%message,ADMIN_NETWORK_ARRAY_TRANSLATION_UPDATED=' . $updated . '%}');
} else {
// Nothing changed
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_ARRAY_TRANSLATION_NOTHING_CHANGED--}');
+ displayErrorMessage('{--ADMIN_NETWORK_ARRAY_TRANSLATION_NOTHING_CHANGED--}');
}
} // END - if
}
displayMessage('{%message,ADMIN_NETWORK_TYPE_HANDLER_REMOVED=' . $removed . '%}');
} else {
// Nothing removed
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_TYPE_HANDLER_NOTHING_REMOVED--}');
+ displayErrorMessage('{--ADMIN_NETWORK_TYPE_HANDLER_NOTHING_REMOVED--}');
}
} // END - if
}
displayMessage('{%message,ADMIN_NETWORK_REQUEST_PARAMETER_REMOVED=' . $removed . '%}');
} else {
// Nothing removed
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_REMOVED--}');
+ displayErrorMessage('{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_REMOVED--}');
}
} // END - if
}
displayMessage('{%message,ADMIN_NETWORK_ARRAY_TRANSLATION_REMOVED=' . $removed . '%}');
} else {
// Nothing removed
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_ARRAY_TRANSLATION_NOTHING_REMOVED--}');
+ displayErrorMessage('{--ADMIN_NETWORK_ARRAY_TRANSLATION_NOTHING_REMOVED--}');
}
} // END - if
}
// Is the request parameter already used with given network?
if (isNetworkRequestElementValid(postRequestElement('network_request_param_key'), postRequestElement('network_type_id'), getRequestElement('network_id'))) {
// Already added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_REQUEST_PARAMETER_ALREADY_ADDED=' . postRequestElement('network_request_param_key') . '%}');
+ displayErrorMessage('{%message,ADMIN_NETWORK_REQUEST_PARAMETER_ALREADY_ADDED=' . postRequestElement('network_request_param_key') . '%}');
// ... so abort here
return FALSE;
loadTemplate('admin_network_request_param_added', FALSE, postRequestArray());
} else {
// Not added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_REQUEST_PARAMETER_NOT_ADDED=' . postRequestElement('network_request_param_key') . '%}');
+ displayErrorMessage('{%message,ADMIN_NETWORK_REQUEST_PARAMETER_NOT_ADDED=' . postRequestElement('network_request_param_key') . '%}');
}
}
// Is the request parameter already used with given network?
if (isNetworkArrayTranslationValid(postRequestElement('network_array_index'), postRequestElement('network_type_id'), getRequestElement('network_id'))) {
// Already added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_ARRAY_TRANSLATION_ALREADY_ADDED=' . postRequestElement('network_array_index') . '%}');
+ displayErrorMessage('{%message,ADMIN_NETWORK_ARRAY_TRANSLATION_ALREADY_ADDED=' . postRequestElement('network_array_index') . '%}');
// ... so abort here
return FALSE;
loadTemplate('admin_network_array_translation_added', FALSE, postRequestArray());
} else {
// Not added
- loadTemplate('admin_settings_unsaved', FALSE, '{%message,ADMIN_NETWORK_ARRAY_TRANSLATION_NOT_ADDED=' . postRequestElement('network_array_index') . '%}');
+ displayErrorMessage('{%message,ADMIN_NETWORK_ARRAY_TRANSLATION_NOT_ADDED=' . postRequestElement('network_array_index') . '%}');
}
}
$GLOBALS['network_display'] = FALSE;
} else {
// Nothing selected/found
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_FOUND--}');
+ displayErrorMessage('{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_FOUND--}');
}
} // END - if
}
setPostRequestElement('network_id', bigintval(getRequestElement('network_id')));
// NULL empty values
- foreach (array('network_api_referral_button', 'network_api_visual_pay_check') as $key) {
+ foreach (array('network_api_site_id', 'network_api_referral_button', 'network_api_visual_pay_check') as $key) {
// Is it set?
if (!isPostRequestElementSet($key)) {
// Remove empty value to get a NULL for an optional entry
displayMessage('{--ADMIN_CONFIG_NETWORK_API_SAVED--}');
} else {
// Not added
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_CONFIG_NETWORK_API_NOT_SAVED--}');
+ displayErrorMessage('{--ADMIN_CONFIG_NETWORK_API_NOT_SAVED--}');
}
}
displayMessage('{%message,ADMIN_CONFIG_NETWORK_HANDLER_TYPE_ALL_HANDLER_SAVED=' . bigintval($numRows) . '%}');
} else {
// Nothing has been saved
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_NOT_CHANGED--}');
+ displayErrorMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_NOT_CHANGED--}');
}
} else {
// Get SQL query for new entry
displayMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_SAVED--}');
} else {
// Not added
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_NOT_SAVED--}');
+ displayErrorMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_NOT_SAVED--}');
}
} else {
// Return amount of affected rows (1 or 2)
displayMessage('{%message,ADMIN_CONFIG_NETWORK_HANDLER_TYPE_ALL_HANDLER_SAVED=' . bigintval($numRows) . '%}');
} else {
// Nothing has been saved
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_NOT_CHANGED--}');
+ displayErrorMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_NOT_CHANGED--}');
}
} else {
// Get SQL query for new entry
displayMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_SAVED--}');
} else {
// Not added
- loadTemplate('admin_settings_unsaved', FALSE, '{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_NOT_CHANGED--}');
+ displayErrorMessage('{--ADMIN_CONFIG_NETWORK_HANDLER_TYPE_HANDLER_NOT_CHANGED--}');
}
} else {
// Return amount of affected rows (1 or 2)