2009-12-24 Miguel de Dios <miguel.dedios@artica.es>

* godmode/agentes/module_manager_editor_common.php,
	godmode/agentes/module_manager_editor_network.php,
	godmode/agentes/module_manager_editor_wmi.php,
	godmode/agentes/module_manager_editor_plugin.php,
	godmode/agentes/module_manager_editor_prediction.php: change the lines to
	test if the form is for policy use. And clean source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2240 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-12-24 11:00:39 +00:00
parent 3d41a66b51
commit 3a01574e90
6 changed files with 22 additions and 7 deletions

View File

@ -1,3 +1,12 @@
2009-12-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php: change the lines to
test if the form is for policy use. And clean source code.
2009-12-24 Sancho Lerena <slerena@artica.es>
* DEBIAN/postinst: Fixed some perms on postinstall.

View File

@ -96,7 +96,8 @@ enterprise_include_once('include/functions_policies.php');
$disabledBecauseInPolicy = false;
$disabledTextBecauseInPolicy = '';
if ($config['enterprise_installed'] && ($id_agent_module != 0)) {
$page = get_parameter('page', '');
if (strstr($page, "policy_modules") === false) {
$disabledBecauseInPolicy = isModuleInPolicy($id_agent_module);
if ($disabledBecauseInPolicy)
$disabledTextBecauseInPolicy = 'disabled = "disabled"';
@ -121,8 +122,9 @@ $table_simple->data[0][2] = __('Disabled');
$table_simple->data[0][3] = print_checkbox ("disabled", 1, $disabled, true);
$table_simple->data[1][0] = __('Type').' '.print_help_icon ('module_type', true);
if ($id_agent_module) {
$table_simple->data[1][1] = '<em>'.get_moduletype_description ($id_module_type).'</em>';
if (isset($id_agent_module)) {
if ($id_agent_module)
$table_simple->data[1][1] = '<em>'.get_moduletype_description ($id_module_type).'</em>';
}
else {
$sql = sprintf ('SELECT id_tipo, descripcion

View File

@ -17,7 +17,8 @@ enterprise_include_once('include/functions_policies.php');
$disabledBecauseInPolicy = false;
$disabledTextBecauseInPolicy = '';
if ($config['enterprise_installed'] && ($id_agent_module != 0)) {
$page = get_parameter('page', '');
if (strstr($page, "policy_modules") === false) {
$disabledBecauseInPolicy = isModuleInPolicy($id_agent_module);
if ($disabledBecauseInPolicy)
$disabledTextBecauseInPolicy = 'disabled = "disabled"';

View File

@ -17,7 +17,8 @@ enterprise_include_once('include/functions_policies.php');
$disabledBecauseInPolicy = false;
$disabledTextBecauseInPolicy = '';
if ($config['enterprise_installed'] && ($id_agent_module != 0)) {
$page = get_parameter('page', '');
if (strstr($page, "policy_modules") === false) {
$disabledBecauseInPolicy = isModuleInPolicy($id_agent_module);
if ($disabledBecauseInPolicy)
$disabledTextBecauseInPolicy = 'disabled = "disabled"';

View File

@ -16,7 +16,8 @@ enterprise_include_once('include/functions_policies.php');
$disabledBecauseInPolicy = false;
$disabledTextBecauseInPolicy = '';
if ($config['enterprise_installed'] && ($id_agent_module != 0)) {
$page = get_parameter('page', '');
if (strstr($page, "policy_modules") === false) {
$disabledBecauseInPolicy = isModuleInPolicy($id_agent_module);
if ($disabledBecauseInPolicy)
$disabledTextBecauseInPolicy = 'disabled = "disabled"';

View File

@ -16,7 +16,8 @@ enterprise_include_once('include/functions_policies.php');
$disabledBecauseInPolicy = false;
$disabledTextBecauseInPolicy = '';
if ($config['enterprise_installed'] && ($id_agent_module != 0)) {
$page = get_parameter('page', '');
if (strstr($page, "policy_modules") === false) {
$disabledBecauseInPolicy = isModuleInPolicy($id_agent_module);
if ($disabledBecauseInPolicy)
$disabledTextBecauseInPolicy = 'disabled = "disabled"';