2010-08-10 Miguel de Dios <miguel.dedios@artica.es>

* ajax.php: cleaned source code.
	
	* godmode/agentes/massive_operations.php: cleaned source code, and added
	hook to enterprise massive operations tab.
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3123 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2010-08-10 13:54:05 +00:00
parent 33bb4ae164
commit e58d4e4fbf
3 changed files with 49 additions and 26 deletions

View File

@ -1,3 +1,9 @@
2010-08-10 Miguel de Dios <miguel.dedios@artica.es>
* ajax.php: cleaned source code.
* godmode/agentes/massive_operations.php: cleaned source code, and added
hook to enterprise massive operations tab.
2010-08-10 Sergio Martin <sergio.martin@artica.es>
* pandoradb.sql

View File

@ -40,7 +40,8 @@ $config["id_user"] = $_SESSION["id_usuario"];
session_write_close ();
if (file_exists ($page)) {
require_once ($page);
} else {
}
else {
echo '<br /><b class="error">Sorry! I can\'t find the page '.$page.'!</b>';
}
?>

View File

@ -27,6 +27,8 @@ require_once ('include/functions_agents.php');
require_once ('include/functions_alerts.php');
require_once ('include/functions_modules.php');
enterprise_include ('godmode/agentes/massive_operations.php');
$tab = (string) get_parameter ('tab', 'copy_modules');
/* Copy modules */
@ -101,8 +103,17 @@ if($tab == 'delete_alerts')
else
$deletealerttab['active'] = false;
/* Collection */
$policiesTab = enterprise_hook('massive_policies_tab');
$onheader = array('copy_modules' => $copymoduletab, 'edit_modules' => $editmoduletab, 'delete_modules' => $deletemoduletab, 'delete_agents' => $deleteagenttab, 'add_action_alerts' => $addactionalerttab, 'delete_action_alerts' => $deleteactionalerttab, 'add_alerts' => $addalerttab, 'delete_alerts' => $deletealerttab);
if ($policiesTab == -1)
$policiesTab = "";
$onheader = array('copy_modules' => $copymoduletab, 'edit_modules' => $editmoduletab,
'delete_modules' => $deletemoduletab, 'delete_agents' => $deleteagenttab,
'add_action_alerts' => $addactionalerttab, 'delete_action_alerts' => $deleteactionalerttab,
'add_alerts' => $addalerttab, 'delete_alerts' => $deletealerttab, 'policies' => $policiesTab);
print_page_header (__('Agent configuration'). ' &raquo; '. __('Massive operations'), "images/god1.png", false, "", true, $onheader);
@ -130,7 +141,12 @@ case 'edit_modules':
require_once ('godmode/agentes/massive_edit_modules.php');
break;
case 'copy_modules':
require_once ('godmode/agentes/massive_config.php');
break;
default:
if (!enterprise_hook('massive_operations', array($tab))) {
require_once ('godmode/agentes/massive_config.php');
}
break;
}
?>