mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2007-06-12 Sancho Lerena <slerena@artica.es>
* operation/reporting/reporting_viewer.php: Solved problems with ACL. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@508 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
69c1f9370c
commit
5b2b5a2e78
@ -1,5 +1,7 @@
|
|||||||
2007-06-12 Sancho Lerena <slerena@artica.es>
|
2007-06-12 Sancho Lerena <slerena@artica.es>
|
||||||
|
|
||||||
|
* operation/reporting/reporting_viewer.php: Solved problems with ACL.
|
||||||
|
|
||||||
* operation/reporting/graph_viewer.php: ACL to delete graph
|
* operation/reporting/graph_viewer.php: ACL to delete graph
|
||||||
|
|
||||||
* include/functions_reporting.php: Added event reporting and alert
|
* include/functions_reporting.php: Added event reporting and alert
|
||||||
|
@ -27,8 +27,8 @@ if (comprueba_login() != 0) {
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((give_acl($id_user,0,"AW") != 1 ) AND (dame_admin($id_user)!=1)) {
|
if ((give_acl($id_user,0,"AR") != 1 ) AND (dame_admin($id_user)!=1)) {
|
||||||
audit_db($id_usuario,$REMOTE_ADDR, "ACL Violation","Trying to access graph builder");
|
audit_db($id_user,$REMOTE_ADDR, "ACL Violation","Trying to access graph builder");
|
||||||
include ("general/noaccess.php");
|
include ("general/noaccess.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
@ -45,19 +45,22 @@ require ("include/functions_reporting.php");
|
|||||||
|
|
||||||
$report_name = give_db_value ("name", "treport", "id_report", $id_report);
|
$report_name = give_db_value ("name", "treport", "id_report", $id_report);
|
||||||
$report_description = give_db_value ("description", "treport", "id_report", $id_report);
|
$report_description = give_db_value ("description", "treport", "id_report", $id_report);
|
||||||
//echo "SLA for Tato: %".return_module_SLA (50, 604800, 1, 1);
|
$report_private= give_db_value ("private", "treport", "id_report", $id_report);
|
||||||
echo "<h1>".$lang_label["custom_reporting"]." - ".$report_name."</h1>";
|
$report_user = give_db_value ("id_user", "treport", "id_report", $id_report);
|
||||||
|
if (($report_user == $id_user) OR (dame_admin($id_user)==1) OR ($report_private == 0)) {
|
||||||
|
//echo "SLA for Tato: %".return_module_SLA (50, 604800, 1, 1);
|
||||||
|
echo "<h1>".$lang_label["custom_reporting"]." - ".$report_name."</h1>";
|
||||||
|
|
||||||
echo "<table class='databox' cellpadding= 4 cellspacing=4 width=750>";
|
echo "<table class='databox' cellpadding= 4 cellspacing=4 width=750>";
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td width=50 align='left'><img src='images/reporting.png' width=32 height=32>";
|
echo "<td width=50 align='left'><img src='images/reporting.png' width=32 height=32>";
|
||||||
echo "<td>".$report_description."</td>";
|
echo "<td>".$report_description."</td>";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
|
|
||||||
echo "<table width=750 cellpadding=4 cellspacing=4 class='databox'>";
|
echo "<table width=750 cellpadding=4 cellspacing=4 class='databox'>";
|
||||||
$sql = "SELECT * FROM treport_content WHERE id_report = $id_report ORDER by type, id_agent_module DESC";
|
$sql = "SELECT * FROM treport_content WHERE id_report = $id_report ORDER by type, id_agent_module DESC";
|
||||||
$res=mysql_query($sql);
|
$res=mysql_query($sql);
|
||||||
while ($row = mysql_fetch_array($res)){
|
while ($row = mysql_fetch_array($res)){
|
||||||
$type = $row["type"];
|
$type = $row["type"];
|
||||||
$sla_max = $row["sla_max"];
|
$sla_max = $row["sla_max"];
|
||||||
$sla_min = $row["sla_min"];
|
$sla_min = $row["sla_min"];
|
||||||
@ -244,6 +247,8 @@ while ($row = mysql_fetch_array($res)){
|
|||||||
echo "</td></tr>";
|
echo "</td></tr>";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
echo "</table>";
|
||||||
}
|
}
|
||||||
echo "</table>";
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user