本文整理汇总了PHP中Logging::fetch_all_changelogs方法的典型用法代码示例。如果您正苦于以下问题:PHP Logging::fetch_all_changelogs方法的具体用法?PHP Logging::fetch_all_changelogs怎么用?PHP Logging::fetch_all_changelogs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logging
的用法示例。
在下文中一共展示了Logging::fetch_all_changelogs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Tools
$Tools = new Tools($Database);
$Subnets = new Subnets($Database);
$Sections = new Sections($Database);
$Log = new Logging($Database);
$Result = new Result();
}
# user must be authenticated
$User->check_user_session();
# if direct request that redirect to tools page
if ($_SERVER['HTTP_X_REQUESTED_WITH'] != "XMLHttpRequest") {
header("Location: " . create_link("tools", "changelog"));
}
# changelog to syslog
if ($User->settings->log != "syslog") {
/* get logs */
$clogs = $Log->fetch_all_changelogs(false, "", 50);
}
# syslog
if ($User->settings->log == "syslog") {
$Result->show("warning", _("Changelog files are sent to syslog"), false);
} elseif (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>";