$networkData = getNetworkDataById(getRequestParameter('network'));
// Init disabled list
- $networkData['disabled'] = array();
+ $GLOBALS['network_types_disabled'] = array();
// Load all advert types for given network
$result = SQL_QUERY_ESC("SELECT
$row['network_type_banner_url'] = fixNullEmptyToDashes($row['network_type_banner_url'], 3);
// Set disabled entry
- $networkData['disabled'][$row['network_type_handle']] = true;
+ $GLOBALS['network_types_disabled'][$row['network_type_handle']] = true;
// Add row template and switch color
$OUT .= loadTemplate('admin_list_network_types_row', true, $row);
// Free result
SQL_FREERESULT($result);
- // Add type option list
- $networkData['type_options'] = generateOptionList(
- '/ARRAY/',
- array(
- 'banner',
- 'banner_click',
- 'banner_view',
- 'button',
- 'button_click',
- 'button_view',
- 'surfbar',
- 'surfbar_click',
- 'surfbar_view',
- 'forcedbanner',
- 'forcedtextlink',
- 'textlink',
- 'textlink_click',
- 'textlink_view',
- 'skybanner',
- 'skybanner_click',
- 'skybanner_view',
- 'layer',
- 'layer_click',
- 'layer_view',
- 'popup',
- 'popdown',
- 'textmail',
- 'htmlmail',
- 'lead',
- 'sale',
- 'payperactive',
- 'pagepeel',
- 'traffic'
- ),
- array(),
- '', '', '',
- $networkData['disabled'],
- 'translateNetworkTypeHandler'
- );
-
// Add form for adding new types
loadTemplate('admin_add_network_type', false, $networkData);
} else {