";
// Check if there is at least one server of each type available to assign that
// kind of modules. If not, do not show server type in combo
$network_available = get_db_value ("network_server", "tserver", "network_server", "1");
$wmi_available = get_db_value ("wmi_server", "tserver", "wmi_server", "1");
$plugin_available = get_db_value ("plugin_server", "tserver", "plugin_server", "1");
$prediction_available = get_db_value ("prediction_server", "tserver", "prediction_server", "1");
// Development mode to use all servers
if ($develop_bypass) {
$network_available = 1;
$wmi_available = 1;
$plugin_available = 1;
$prediction_available = 1;
}
$modules = array ();
$modules['dataserver'] = __('Create a new data server module');
if ($network_available)
$modules['networkserver'] = __('Create a new network server module');
if ($plugin_available)
$modules['pluginserver'] = __('Create a new plugin Server module');
if ($wmi_available)
$modules['wmiserver'] = __('Create a new WMI Server module');
if ($prediction_available)
$modules['predictionserver'] = __('Create a new prediction Server module');
enterprise_hook ('set_enterprise_module_types', array (&$modules));
print_select ($modules, 'moduletype', '', '', '', '', false, false, false);
print_input_hidden ('edit_module', 1);
echo ' | ';
echo '';
echo '';
echo "";
echo " |