本文整理汇总了PHP中dump_clog函数的典型用法代码示例。如果您正苦于以下问题:PHP dump_clog函数的具体用法?PHP dump_clog怎么用?PHP dump_clog使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dump_clog函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dump_clog
?>
</td></tr>
<tr>
<td>
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic">
Last <?php
echo $nentries;
?>
SSHD log entries
</td>
</tr>
<?php
dump_clog("/var/log/sshd.log", $nentries);
?>
<tr>
<td align="left" valign="top" height="12"> </td>
</tr>
<tr>
<td align="left" valign="top">
<input name="clear" type="submit" class="formbtn" value="Clear log" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
示例2: include
<section class="col-xs-12">
<? include('diag_logs_tabs.inc'); ?>
<div class="tab-content content-box col-xs-12">
<div class="container-fluid">
<?php
printf(gettext('Last %s DHCP service log entries'), $nentries);
?>
</div>
<div class="table-responsive">
<table class="table table-striped table-sort">
<?php
dump_clog($dhcpd_logfile, $nentries, true);
?>
</table>
</div>
<div class="container-fluid">
<form action="diag_logs_dhcp.php" method="post">
<input name="clear" type="submit" class="btn" value="<?php
echo gettext("Clear log");
?>
" />
</form>
<p>NOTE: Clearing the log file will restart the DHCP daemon.</p>
</div>
</div>
示例3: printf
<div class="tab-content content-box col-xs-12">
<div class="table-responsive">
<table class="table table-striped table-sort">
<tr>
<td colspan="2" class="listtopic">
<strong><?php
printf(gettext("Last %s firewall log entries"), $nentries);
?>
</strong></td>
</tr>
<?php
dump_clog($filter_logfile, $nentries);
?>
<tr><td colspan="2">
<form id="clearform" name="clearform" action="diag_logs_filter.php" method="post" style="margin-top: 14px;">
<input id="submit" name="clear" type="submit" class="btn btn-primary" value="<?php
echo gettext("Clear log");
?>
" />
</form>
</td></tr>
</table>
</div>
</td>
</tr>
</table>
示例4: dump_clog
include 'diag_logs_tabs.inc';
?>
<div class="tab-content content-box col-xs-12">
<div class="container-fluid">
<?php
include 'diag_logs_pills.inc';
?>
<div class="table-responsive">
<table class="table table-striped table-sort">
<?php
dump_clog($wireless_logfile, $nentries);
?>
</table>
</div>
<form action="diag_logs_wireless.php" method="post">
<input name="clear" type="submit" class="btn" value="<?php
echo gettext("Clear log");
?>
" />
</form>
</div>
</div>
</section>
示例5: dump_clog
?>
</td></tr>
<tr>
<td>
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic">
Last <?php
echo $nentries;
?>
FTP log entries
</td>
</tr>
<?php
dump_clog("/var/log/ftp.log", $nentries);
?>
<tr>
<td align="left" valign="top" height="12"> </td>
</tr>
<tr>
<td align="left" valign="top">
<input name="clear" type="submit" class="formbtn" value="Clear log" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
示例6: display_top_tabs
display_top_tabs($tab_array);
?>
</td>
</tr>
<tr>
<td>
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
<tr>
<td colspan="2" class="listtopic"><?php
printf(gettext("Last %s PPP log entries"), $nentries);
?>
</td>
</tr>
<?php
dump_clog($ppp_logfile, $nentries);
?>
<tr>
<td>
<br />
<form action="diag_logs_ppp.php" method="post">
<input name="clear" type="submit" class="formbtn" value="<?php
echo gettext("Clear log");
?>
" />
</form>
</td>
</tr>
</table>
</div>
</td>
示例7: dump_clog
?>
</td></tr>
<tr>
<td>
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic">
Last <?php
echo $nentries;
?>
SmartD log entries
</td>
</tr>
<?php
dump_clog("/var/log/smartd.log", $nentries);
?>
<tr>
<td align="left" valign="top" height="12"> </td>
</tr>
<tr>
<td align="left" valign="top">
<input name="clear" type="submit" class="formbtn" value="Clear log" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
示例8: dump_clog
?>
</td></tr>
<tr>
<td>
<div id="mainarea">
<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td class="listtopic">
Last <?php
echo $nentries;
?>
Daemon log entries
</td>
</tr>
<?php
dump_clog("/var/log/daemon.log", $nentries);
?>
<tr>
<td align="left" valign="top" height="12"> </td>
</tr>
<tr>
<td align="left" valign="top">
<input name="clear" type="submit" class="formbtn" value="Clear log" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
示例9: gettext
<div class="table-responsive">
<table class="table table-striped table-sort">
<tr><td colspan="2">
<form id="clearform" name="clearform" action="diag_logs_routing.php" method="post" class="__mt">
<input id="filtertext" name="filtertext" value="<?php
echo $filtertext;
?>
"/>
<input id="filtersubmit" name="filtersubmit" type="submit" class="btn btn-primary" value="<?php
echo gettext("Filter");
?>
" />
</form>
</td></tr>
<?php
dump_clog($routing_logfile, $nentries, $filtertext);
?>
<tr><td colspan="2">
<form action="diag_logs_routing.php" method="post">
<input name="clear" type="submit" class="btn" value="<?php
echo gettext("Clear log");
?>
" />
</form>
</td></tr>
</table>
</div>
</div>
</section>
</div>
示例10: print_input_errors
print_input_errors($input_errors);
}
?>
<section class="col-xs-12">
<div class="tab-content content-box col-xs-12">
<div class="table-responsive">
<table class="table table-striped table-sort">
<tr><td colspan="2"><strong><?php
echo sprintf(gettext("Last %s OpenVPN log entries"), $nentries);
?>
</strong></td></tr>
<?php
dump_clog($openvpn_logfile, $nentries);
?>
<tr><td colspan="2">
<form action="diag_logs_openvpn.php" method="post">
<input name="clear" type="submit" class="btn" value="<?php
echo gettext("Clear log");
?>
" />
</form>
</td></tr>
</table>
</div>
</div>
</section>
示例11: dump_clog
" class="input-medium">
<button id="filtersubmit" name="filtersubmit" type="submit" class="btn"><i class="icon-search"></i>Ara</button>
</form>
<table class="grids" width="100%">
<tr>
<td class="head">
Tarih
</td>
<td class="head">
Mesaj
</td>
</tr>
<?php
if ($filtertext) {
dump_clog($system_logfile, $nentries, array("{$filtertext}"));
} else {
dump_clog($system_logfile, $nentries);
}
?>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
示例12: gettext
<div class="table-responsive">
<table class="table table-striped table-sort">
<tr><td colspan="2">
<form id="clearform" name="clearform" action="diag_logs_ppp.php" method="post" class="__mt">
<input id="filtertext" name="filtertext" value="<?php
echo $filtertext;
?>
" />
<input id="filtersubmit" name="filtersubmit" type="submit" class="btn btn-primary" value="<?php
echo gettext("Filter");
?>
" />
</form>
</td></tr>
<?php
dump_clog($ppps_logfile, $nentries, $filtertext);
?>
<tr><td colspan="2">
<form action="diag_logs_ppp.php" method="post">
<input name="clear" type="submit" class="btn" value="<?php
echo gettext("Clear log");
?>
" />
</form>
</td></tr>
</table>
</div>
</div>
</section>
示例13: include
<section class="col-xs-12">
<? $active_tab = "/diag_logs.php"; include('diag_logs_tabs.inc'); ?>
<div class="tab-content content-box col-xs-12">
<div class="container-fluid">
<? include('diag_logs_pills.php'); ?>
</div>
<div class="table-responsive">
<table class="table table-striped table-sort">
<?php
dump_clog($routing_logfile, $nentries);
?>
</table>
</div>
<div class="container-fluid">
<form action="diag_logs_routing.php" method="post">
<input name="clear" type="submit" class="btn" value="<?php
echo gettext("Clear log");
?>
" />
</form>
</div>
</div>
</section>
</div>
示例14: print_input_errors
if (isset($input_errors) && count($input_errors) > 0) {
print_input_errors($input_errors);
}
?>
<section class="col-xs-12">
<div class="tab-content content-box col-xs-12">
<div class="table-responsive">
<table class="table table-striped table-sort">
<tr><td colspan="2"><strong><?php
echo sprintf(gettext("Last %s IPsec log entries"), $nentries);
?>
</strong></td></tr>
<?php
dump_clog($ipsec_logfile, $nentries);
?>
<tr><td colspan="2">
<form action="diag_logs_ipsec.php" method="post">
<input name="clear" type="submit" class="btn" value="<?php
echo gettext("Clear log");
?>
" />
</form>
</td></tr>
</table>
</div>
</div>
</section>
</div>
</div>
示例15: gettext
<th><?php
echo gettext("Time");
?>
</th>
<th style="width:100%"><?php
echo gettext("Message");
?>
</th>
</tr>
</thead>
<tbody>
<?php
if ($filtertext) {
$rows = dump_clog($logfile_path, $nentries, true, array("{$filtertext}"));
} else {
$rows = dump_clog($logfile_path, $nentries, true, array());
}
?>
</tbody>
</table>
<?php
if ($rows == 0) {
print_info_box(gettext('No logs to display'));
}
?>
</div>
</div>
<?php
}
?>