本文整理汇总了PHP中Zone::zoneLogs方法的典型用法代码示例。如果您正苦于以下问题:PHP Zone::zoneLogs方法的具体用法?PHP Zone::zoneLogs怎么用?PHP Zone::zoneLogs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zone
的用法示例。
在下文中一共展示了Zone::zoneLogs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Zone
$zone = new Zone($zonename, $zonetype);
if ($zone->error) {
printf($html->string_error, $user->error);
} elseif ($zone->RetrieveUser() != $user->userid && ($config->usergroups && $zone->RetrieveUser() != $group->groupid)) {
$content = sprintf($html->string_error, sprintf($l['str_you_can_not_view_logs_zone_x_x'], $zone->zonename, $zone->zonetype));
print $html->box('logwindow', $title, $content);
} else {
$title = sprintf($l['str_last_logs_for_x'], $zone->zonename);
$content = "";
// if $deleteall, delete & insert a "deleted" line in logs
// maybe only admin should be able to delete logs... ?
if (isset($_REQUEST) && isset($_REQUEST['deleteall']) || !isset($_REQUEST) && $deleteall == 1) {
if (!$zone->zoneLogDelete()) {
$content = sprintf($html->string_error, $zone->error);
}
}
$content .= sprintf('<table class="logtable">');
$content .= $zone->zoneLogs();
$content .= '</table><div align="center">';
$content .= sprintf('<form action="%s" method="get">', $_SERVER["PHP_SELF"]);
$content .= '<input type="hidden" name="deleteall" value="1">';
$content .= $hiddenfields;
$content .= sprintf('<input type="hidden" name="zonename" value="%s">', $zonename);
$content .= sprintf('<input type="hidden" name="zonetype" value="%s">', $zonetype);
$content .= sprintf('<input type="submit" class="submit" name="deletebutton" value="%s">', $l['str_delete_all_logs']);
$content .= '</form></div>';
print $html->box('logwindow', $title, $content);
}
}
// print close "window"
print $html->footerlight();