mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
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>
|
2009-06-25 Jorge Gonzalez <jorgegonz@aartica.es>
|
||||||
|
|
||||||
* include/languages/es.po, include/languages/es.mo: Updated Spanish
|
* 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_alerts.php');
|
||||||
require_once ('include/functions_modules.php');
|
require_once ('include/functions_modules.php');
|
||||||
|
|
||||||
echo '<h3>'.__('Massive agent deletion').'</h3>';
|
|
||||||
|
|
||||||
function process_manage_delete ($id_agents) {
|
function process_manage_delete ($id_agents) {
|
||||||
if (empty ($id_agents)) {
|
if (empty ($id_agents)) {
|
||||||
echo '<h3 class="error">'.__('No agents selected').'</h3>';
|
echo '<h3 class="error">'.__('No agents selected').'</h3>';
|
||||||
@ -64,6 +62,8 @@ $id_agents = get_parameter ('id_agents');
|
|||||||
|
|
||||||
$delete = (bool) get_parameter_post ('delete');
|
$delete = (bool) get_parameter_post ('delete');
|
||||||
|
|
||||||
|
echo '<h3>'.__('Massive agent deletion').'</h3>';
|
||||||
|
|
||||||
if ($delete) {
|
if ($delete) {
|
||||||
process_manage_delete ($id_agents);
|
process_manage_delete ($id_agents);
|
||||||
}
|
}
|
||||||
|
@ -24,9 +24,13 @@ $config['start_time'] = microtime (true);
|
|||||||
$config['dbconnection'] = mysql_connect ($config["dbhost"], $config["dbuser"], $config["dbpass"]);
|
$config['dbconnection'] = mysql_connect ($config["dbhost"], $config["dbuser"], $config["dbpass"]);
|
||||||
if (! $config['dbconnection']) {
|
if (! $config['dbconnection']) {
|
||||||
exit ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
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">
|
<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 id="db_f">
|
||||||
<div>
|
<div>
|
||||||
<a href="index.php"><img src="images/pandora_logo.png" border="0" alt="logo" /></a>
|
<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>
|
<b>MySQL ERROR:</b> '. mysql_error().'</span>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
</div></body></html>');
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>');
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql_select_db ($config["dbname"]);
|
mysql_select_db ($config["dbname"]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user