";
echo __('Search') . ' ' .
html_print_input_text ('search_string', $search_string, '', 15, 255, true);
echo " | ";
echo "";
html_print_submit_button (__('Filter'), 'filter', false, 'class="sub search"');
echo " | ";
echo "";
echo '';
// 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 = db_get_sql ("SELECT count(*) from tserver where server_type = 1"); //POSTGRESQL AND ORACLE COMPATIBLE
$wmi_available = db_get_sql ("SELECT count(*) from tserver where server_type = 6"); //POSTGRESQL AND ORACLE COMPATIBLE
$plugin_available = db_get_sql ("SELECT count(*) from tserver where server_type = 4"); //POSTGRESQL AND ORACLE COMPATIBLE
$prediction_available = db_get_sql ("SELECT count(*) from tserver where server_type = 5"); //POSTGRESQL AND ORACLE COMPATIBLE
// 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));
$sec2 = get_parameter('sec2', '');
if (strstr($sec2, "enterprise/godmode/policies/policies") !== false) {
//It is unset because the policies haven't a table tmodule_synth and the
//some part of code to apply this kind of modules in policy agents.
//But in the future maybe will be good to make this feature, but remember
//the modules to show in syntetic module policy form must be the policy
//modules from the same policy.
unset($modules['predictionserver']);
}
// Create module/type combo
echo ' | ';
echo '';
echo '';
echo ' | ';
echo '
';
echo "";
echo "