mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2014-08-01 Miguel de Dios <miguel.dedios@artica.es>
* godmode/agentes/planned_downtime.editor.php: fixed the acl. MERGED FROM THE BRANCH 5.0 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10370 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
862d16ccf9
commit
02c37f4f47
@ -1,3 +1,9 @@
|
|||||||
|
2014-08-01 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* godmode/agentes/planned_downtime.editor.php: fixed the acl.
|
||||||
|
|
||||||
|
MERGED FROM THE BRANCH 5.0
|
||||||
|
|
||||||
2014-07-31 Miguel de Dios <miguel.dedios@artica.es>
|
2014-07-31 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_networkmap.php, include/functions_graph.php,
|
* include/functions_networkmap.php, include/functions_graph.php,
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// Pandora FMS - http://pandorafms.com
|
// Pandora FMS - http://pandorafms.com
|
||||||
// ==================================================
|
// ==================================================
|
||||||
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
||||||
@ -18,6 +17,7 @@ global $config;
|
|||||||
|
|
||||||
check_login();
|
check_login();
|
||||||
|
|
||||||
|
|
||||||
if (! check_acl ($config['id_user'], 0, "AW")) {
|
if (! check_acl ($config['id_user'], 0, "AW")) {
|
||||||
db_pandora_audit("ACL Violation",
|
db_pandora_audit("ACL Violation",
|
||||||
"Trying to access downtime scheduler");
|
"Trying to access downtime scheduler");
|
||||||
@ -25,6 +25,7 @@ if (! check_acl ($config['id_user'], 0, "AW")) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
require_once ('include/functions_users.php');
|
require_once ('include/functions_users.php');
|
||||||
|
|
||||||
// Header
|
// Header
|
||||||
@ -36,10 +37,7 @@ ui_print_page_header(
|
|||||||
true,
|
true,
|
||||||
"");
|
"");
|
||||||
|
|
||||||
// Load global vars
|
|
||||||
global $config;
|
|
||||||
|
|
||||||
check_login();
|
|
||||||
|
|
||||||
//Initialize data
|
//Initialize data
|
||||||
$id_agent = get_parameter ("id_agent");
|
$id_agent = get_parameter ("id_agent");
|
||||||
@ -153,7 +151,7 @@ if ($create_downtime || $update_downtime) {
|
|||||||
$datetime_from = strtotime ($once_date_from . ' ' . $once_time_from);
|
$datetime_from = strtotime ($once_date_from . ' ' . $once_time_from);
|
||||||
$datetime_to = strtotime ($once_date_to . ' ' . $once_time_to);
|
$datetime_to = strtotime ($once_date_to . ' ' . $once_time_to);
|
||||||
$now = strtotime(date(DATE_FORMAT). ' ' . date(TIME_FORMAT));
|
$now = strtotime(date(DATE_FORMAT). ' ' . date(TIME_FORMAT));
|
||||||
|
|
||||||
if ($datetime_from < $now) {
|
if ($datetime_from < $now) {
|
||||||
ui_print_error_message(__('Not created. Error inserting data. Start time must be higher than the current time' ));
|
ui_print_error_message(__('Not created. Error inserting data. Start time must be higher than the current time' ));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user