mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-26 23:35:02 +02:00
2012-11-07 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/configure_alert_command.php, index.php: cleaned source code style. * godmode/alerts/alert_commands.php: fixed the check the name of command that it did not make the update the data. MERGED FROM THE BRANCH PANDORA_4. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7134 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b03592cef0
commit
8720e58f12
@ -1,3 +1,13 @@
|
|||||||
|
2012-11-07 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* godmode/alerts/configure_alert_command.php, index.php: cleaned
|
||||||
|
source code style.
|
||||||
|
|
||||||
|
* godmode/alerts/alert_commands.php: fixed the check the name of
|
||||||
|
command that it did not make the update the data.
|
||||||
|
|
||||||
|
MERGED FROM THE BRANCH PANDORA_4.
|
||||||
|
|
||||||
2012-11-06 Ramon Novoa <rnovoa@artica.es>
|
2012-11-06 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* pandoradb.sql,
|
* pandoradb.sql,
|
||||||
|
@ -172,9 +172,10 @@ if ($update_command) {
|
|||||||
$values['name'] = $name;
|
$values['name'] = $name;
|
||||||
$values['command'] = $command;
|
$values['command'] = $command;
|
||||||
$values['description'] = $description;
|
$values['description'] = $description;
|
||||||
$name_check = db_get_value ('name', 'talert_commands', 'name', $name);
|
|
||||||
|
|
||||||
if (!$name || !$name_check) {
|
//Check it the new name is used in the other command.
|
||||||
|
$id_check = db_get_value ('id', 'talert_commands', 'name', $name);
|
||||||
|
if (($id_check != $id) && (!empty($id_check))) {
|
||||||
$result = '';
|
$result = '';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -52,7 +52,8 @@ if(!empty($fields_values)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
ui_print_page_header (__('Alerts').' » '.__('Configure alert command'), "images/god2.png", false, "", true);
|
ui_print_page_header (__('Alerts') . ' » ' .
|
||||||
|
__('Configure alert command'), "images/god2.png", false, "", true);
|
||||||
|
|
||||||
$table->width = '98%';
|
$table->width = '98%';
|
||||||
$table->style = array ();
|
$table->style = array ();
|
||||||
|
@ -311,6 +311,7 @@ elseif (! isset ($config['id_user']) && isset ($_GET["login"])) {
|
|||||||
}
|
}
|
||||||
elseif (! isset ($config['id_user'])) {
|
elseif (! isset ($config['id_user'])) {
|
||||||
// There is no user connected
|
// There is no user connected
|
||||||
|
|
||||||
require_once ('general/login_page.php');
|
require_once ('general/login_page.php');
|
||||||
while (@ob_end_flush ());
|
while (@ob_end_flush ());
|
||||||
exit ("</html>");
|
exit ("</html>");
|
||||||
|
@ -480,7 +480,6 @@ else {
|
|||||||
GROUP BY evento, id_agentmodule) AS t";
|
GROUP BY evento, id_agentmodule) AS t";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$total_events = (int) db_get_sql ($sql);
|
$total_events = (int) db_get_sql ($sql);
|
||||||
if (empty ($result)) {
|
if (empty ($result)) {
|
||||||
$result = array ();
|
$result = array ();
|
||||||
@ -647,6 +646,9 @@ foreach ($result as $event) {
|
|||||||
$data[$i] .= html_print_input_hidden('similar_ids_'.$event["id_evento"], $similar_ids, true);
|
$data[$i] .= html_print_input_hidden('similar_ids_'.$event["id_evento"], $similar_ids, true);
|
||||||
$data[$i] .= html_print_input_hidden('timestamp_first_'.$event["id_evento"], $timestamp_first, true);
|
$data[$i] .= html_print_input_hidden('timestamp_first_'.$event["id_evento"], $timestamp_first, true);
|
||||||
$data[$i] .= html_print_input_hidden('timestamp_last_'.$event["id_evento"], $timestamp_last, true);
|
$data[$i] .= html_print_input_hidden('timestamp_last_'.$event["id_evento"], $timestamp_last, true);
|
||||||
|
if (empty($event['event_rep'])) {
|
||||||
|
$event['event_rep'] = 0;
|
||||||
|
}
|
||||||
$data[$i] .= html_print_input_hidden('event_rep_'.$event["id_evento"], $event['event_rep'], true);
|
$data[$i] .= html_print_input_hidden('event_rep_'.$event["id_evento"], $event['event_rep'], true);
|
||||||
// Store concat comments to show in extended view
|
// Store concat comments to show in extended view
|
||||||
$data[$i] .= html_print_input_hidden('user_comment_'.$event["id_evento"], base64_encode($event['user_comment']), true);
|
$data[$i] .= html_print_input_hidden('user_comment_'.$event["id_evento"], base64_encode($event['user_comment']), true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user