<?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("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) {