/* verify that user is authenticated! */ isUserAuthenticated(); # change parameters - search string provided if (isset($_GET['sPage'])) { $_REQUEST['cfilter'] = $_REQUEST['subnetId']; $_REQUEST['climit'] = $_REQUEST['sPage']; } elseif (isset($_GET['subnetId'])) { $_REQUEST['climit'] = $_REQUEST['subnetId']; } else { $_REQUEST['climit'] = 50; } # get clog entries if (!isset($_REQUEST['cfilter'])) { $clogs = getAllChangelogs(false, "", $_REQUEST['climit']); } else { $clogs = getAllChangelogs(true, $_REQUEST['cfilter'], $_REQUEST['climit']); } # 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") . "</small>"; print "</blockquote>"; } else { # if more that configured print it! if (sizeof($clogs) == $_REQUEST['climit']) { print "<div class='alert alert-warning alert-absolute'>" . _("Output has been limited to last {$_REQUEST['climit']} lines") . "!</div>"; } # printout print "<table class='table table-striped table-top table-condensed'>"; # headers
<?php /* * Script to print some stats on home page.... *********************************************/ /* required functions */ if (!function_exists('getSubnetStatsDashboard')) { require_once dirname(__FILE__) . '/../../../functions/functions.php'; } /* if direct request that redirect to tools page */ if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") { header("Location: " . BASE . "tools/changelog/"); } /* get logs */ $clogs = getAllChangelogs(false, "", 50); ?> <?php 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") . "</small>"; print "</blockquote>"; } else { # printout print "<table class='table changelog table-hover table-top table-condensed'>"; # headers print "<tr>"; print "\t<th>" . _('User') . "</th>";