2009-06-25 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/massive_delete_agents.php, godmode/agentes/massive_delete_agents.php: changes for clarity and maintenance code. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1771 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
8ab87b3178
commit
a94f044a9b
|
@ -1,3 +1,9 @@
|
|||
2009-06-25 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/agentes/massive_delete_agents.php,
|
||||
godmode/agentes/massive_delete_agents.php: changes for clarity
|
||||
and maintenance code.
|
||||
|
||||
2009-06-25 Jorge Gonzalez <jorgegonz@aartica.es>
|
||||
|
||||
* include/languages/es.po, include/languages/es.mo: Updated Spanish
|
||||
|
|
|
@ -27,8 +27,6 @@ require_once ('include/functions_agents.php');
|
|||
require_once ('include/functions_alerts.php');
|
||||
require_once ('include/functions_modules.php');
|
||||
|
||||
echo '<h3>'.__('Massive agent deletion').'</h3>';
|
||||
|
||||
function process_manage_delete ($id_agents) {
|
||||
if (empty ($id_agents)) {
|
||||
echo '<h3 class="error">'.__('No agents selected').'</h3>';
|
||||
|
@ -64,6 +62,8 @@ $id_agents = get_parameter ('id_agents');
|
|||
|
||||
$delete = (bool) get_parameter_post ('delete');
|
||||
|
||||
echo '<h3>'.__('Massive agent deletion').'</h3>';
|
||||
|
||||
if ($delete) {
|
||||
process_manage_delete ($id_agents);
|
||||
}
|
||||
|
|
|
@ -24,9 +24,13 @@ $config['start_time'] = microtime (true);
|
|||
$config['dbconnection'] = mysql_connect ($config["dbhost"], $config["dbuser"], $config["dbpass"]);
|
||||
if (! $config['dbconnection']) {
|
||||
exit ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Pandora FMS Error</title>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Pandora FMS Error</title>
|
||||
<link rel="stylesheet" href="./include/styles/pandora.css" type="text/css">
|
||||
</head><body><div style="align:center">
|
||||
</head>
|
||||
<body>
|
||||
<div style="align:center">
|
||||
<div id="db_f">
|
||||
<div>
|
||||
<a href="index.php"><img src="images/pandora_logo.png" border="0" alt="logo" /></a>
|
||||
|
@ -40,7 +44,9 @@ if (! $config['dbconnection']) {
|
|||
<b>MySQL ERROR:</b> '. mysql_error().'</span>
|
||||
<br />
|
||||
</div>
|
||||
</div></body></html>');
|
||||
</div>
|
||||
</body>
|
||||
</html>');
|
||||
}
|
||||
|
||||
mysql_select_db ($config["dbname"]);
|
||||
|
|
Loading…
Reference in New Issue