<?php /** * Script to display IP address info and history ***********************************************/ /* verify that user is authenticated! */ isUserAuthenticated(); # get clog entries $clogs = getChangelogEntries("ip_addr", $_REQUEST['ipaddrid']); # permissions $permission = checkSubnetPermission($_REQUEST['subnetId']); if ($permission == "0") { die("<div class='alert alert-danger'>" . _('You do not have permission to access this network') . "!</div>"); } # header print "<h4 style='margin-top:30px;'>" . _('Changelog') . "</h4><hr>"; # empty if (sizeof($clogs) == 0) { print "<blockquote style='margin-top:20px;margin-left:20px;'>"; print "<p>" . _("No changelogs available") . "</p>"; print "<small>" . _("No changelog entries are available for this host") . "</small>"; print "</blockquote>"; } else { # printout print "<table class='table table-striped table-top table-condensed'>"; # headers print "<tr>"; print "\t<th>" . _('User') . "</th>"; print "\t<th>" . _('Action') . "</th>"; print "\t<th>" . _('Result') . "</th>"; print "\t<th>" . _('Date') . "</th>";
<?php /** * Script to display IP address info and history ***********************************************/ /* verify that user is authenticated! */ isUserAuthenticated(); # get clog entries $clogs = getChangelogEntries("section", $_GET['sPage']); /* verify that user is admin */ if (!checkAdmin()) { die(''); } # header print "<h4>" . _('Section') . " - " . _('Changelog') . "</h4><hr>"; # back print "<a class='btn btn-sm btn-default' href='" . create_link("administration", "manageSection") . "'><i class='fa fa-angle-left'></i> " . _('Back to section') . "</a>"; # empty if (sizeof($clogs) == 0) { print "<blockquote style='margin-top:20px;margin-left:20px;'>"; print "<p>" . _("No changelogs available") . "</p>"; print "<small>" . _("No changelog entries are available for this section") . "</small>"; print "</blockquote>"; } else { # printout print "<table class='table table-striped table-top table-condensed' style='margin-top:30px;'>"; # headers print "<tr>"; print "\t<th>" . _('User') . "</th>"; print "\t<th>" . _('Action') . "</th>"; print "\t<th>" . _('Result') . "</th>";
<?php /** * Script to display IP address info and history ***********************************************/ /* verify that user is authenticated! */ isUserAuthenticated(); # get clog entries $clogs = getChangelogEntries("subnet", $_GET['subnetId']); # changelog for allslaves $clogsSlaves = getSubnetSlaveChangelogEntries($_GET['subnetId']); # changelog for each IP address, also in slave subnets $clogsIP = getSubnetIPChangelogEntries($_GET['subnetId']); # get subnet $subnetDetails = getSubnetDetailsById($_GET['subnetId']); # permissions $permission = checkSubnetPermission($_GET['subnetId']); if ($permission == "0") { die("<div class='alert alert-danger'>" . _('You do not have permission to access this network') . "!</div>"); } # header print "<h4>" . _('Subnet') . " - " . _('Changelog') . "</h4><hr>"; # back if ($subnetDetails['isFolder'] == 1) { print "<a class='btn btn-sm btn-default' href='" . create_link("folder", $_GET['section'], $_GET['subnetId']) . "'><i class='fa fa-gray fa-chevron-left'></i> " . _('Back to subnet') . "</a>"; } else { print "<a class='btn btn-sm btn-default' href='" . create_link("subnets", $_GET['section'], $_GET['subnetId']) . "'><i class='fa fa-gray fa-chevron-left'></i> " . _('Back to subnet') . "</a>"; } /* Subnet changelog */ # empty if (sizeof($clogs) == 0) {
<?php /** * Script to display IP address info and history ***********************************************/ /* verify that user is authenticated! */ isUserAuthenticated(); # get clog entries $clogs = getChangelogEntries("subnet", $_REQUEST['subnetId']); # changelog for allslaves $clogsSlaves = getSubnetSlaveChangelogEntries($_REQUEST['subnetId']); # changelog for each IP address, also in slave subnets $clogsIP = getSubnetIPChangelogEntries($_REQUEST['subnetId']); # get subnet $subnetDetails = getSubnetDetailsById($_REQUEST['subnetId']); # permissions $permission = checkSubnetPermission($_REQUEST['subnetId']); if ($permission == "0") { die("<div class='alert alert-danger'>" . _('You do not have permission to access this network') . "!</div>"); } # header print "<h4>" . _('Subnet') . " - " . _('Changelog') . "</h4><hr>"; # back if ($subnetDetails['isFolder'] == 1) { print "<a class='btn btn-sm btn-default' href='folder/{$_REQUEST['section']}/{$_REQUEST['subnetId']}/'><i class='fa fa-gray fa-chevron-left'></i> " . _('Back to subnet') . "</a>"; } else { print "<a class='btn btn-sm btn-default' href='subnets/{$_REQUEST['section']}/{$_REQUEST['subnetId']}/'><i class='fa fa-gray fa-chevron-left'></i> " . _('Back to subnet') . "</a>"; } /* Subnet changelog */ # empty if (sizeof($clogs) == 0) {
<?php /** * Script to display IP address info and history ***********************************************/ /* verify that user is authenticated! */ isUserAuthenticated(); # get clog entries $clogs = getChangelogEntries("section", $_REQUEST['sectionId']); /* verify that user is admin */ if (!checkAdmin()) { die(''); } # header print "<h4>" . _('Section') . " - " . _('Changelog') . "</h4><hr>"; # back print "<a class='btn btn-sm btn-default' href='administration/manageSection/'><i class='fa fa-angle-left'></i> " . _('Back to section') . "</a>"; # empty if (sizeof($clogs) == 0) { print "<blockquote style='margin-top:20px;margin-left:20px;'>"; print "<p>" . _("No changelogs available") . "</p>"; print "<small>" . _("No changelog entries are available for this section") . "</small>"; print "</blockquote>"; } else { # printout print "<table class='table table-striped table-top table-condensed' style='margin-top:30px;'>"; # headers print "<tr>"; print "\t<th>" . _('User') . "</th>"; print "\t<th>" . _('Action') . "</th>"; print "\t<th>" . _('Result') . "</th>";