本文整理匯總了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();