?>
  </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">&nbsp;</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>
Beispiel #2
0
			    <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>
					<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>
Beispiel #4
0
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>
?>
  </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">&nbsp;</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>
Beispiel #6
0
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>
?>
  </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">&nbsp;</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>
?>
  </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">&nbsp;</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>
Beispiel #9
0
							 <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>
Beispiel #10
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 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>
Beispiel #11
0
" 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>
Beispiel #12
0
								 <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>
Beispiel #13
0
			    <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>
Beispiel #14
0
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>
Beispiel #15
0
					<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 
}
?>
Beispiel #16
0
?>
		</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 DHCP service log entries"), $nentries);
?>
					</td>
				</tr>
				<?php 
dump_clog($dhcpd_logfile, $nentries);
?>
				<tr>
					<td>
						<br />
						<form action="diag_logs_dhcp.php" method="post">
							<input name="clear" type="submit" class="formbtn" value="<?php 
echo gettext("Clear log");
?>
" />
						</form>
					</td>
					<td>NOTE: Clearing the log file will restart the DHCP daemon.</td>
				</tr>
			</table>
			</div>
Beispiel #17
0
 
  </td></tr>
  <tr>
    <td>
	<div id="mainarea">
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td colspan="2" class="listtopic">
			  <?php 
printf(gettext('Last %1$s %2$s log entries'), $nentries, $curtab);
?>
</td>
		  </tr>
		  <?php 
$package =& $config['installedpackages']['package'][$apkgid];
dump_clog($g['varlog_path'] . '/' . $package['logging']['logfilename'], $nentries);
?>
		</table>
<!--
<form action="diag_pkglogs.php" method="post">
<input name="clear" type="submit" class="formbtn" value="Clear log">
</form>
-->
		</div>
	</td>
  </tr>
</table>
<?php 
include "fend.inc";
?>
</body>
Beispiel #18
0
							 <div class="table-responsive">
								<table class="table table-striped table-sort">
						<tr><td colspan="2">
							<form id="clearform" name="clearform" action="diag_logs_wireless.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($wireless_logfile, $nentries, $filtertext);
?>
									<tr><td colspan="2">
										<form action="diag_logs_wireless.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>
					<th><?php 
    echo gettext("Time");
    ?>
</th>
					<th style="width:100%"><?php 
    echo gettext("Message");
    ?>
</th>
				</tr>
			</thead>
			<tbody>
<?php 
    if ($filtertext) {
        $rows = dump_clog($filter_logfile, $nentries, true, array("{$filtertext}"));
    } else {
        $rows = dump_clog($filter_logfile, $nentries, true, array());
    }
    ?>
			</tbody>
		</table>
<?php 
    if ($rows == 0) {
        print_info_box(gettext('No logs to display'));
    }
    ?>
	</div>
</div>
<?php 
}
?>
Beispiel #20
0
			</td>

			<td>
			<input id="submit" name="submit" type="submit" class="btn btn-primary formbtn" value="<?php 
echo gettext('Save');
?>
" autocomplete="off">
			</td>

		</tr>
	</table>
   </form>
</div>

<div id="system_log-widgets" class="content-box" style="overflow:scroll;">
	<table class="table table-striped" cellspacing="0" cellpadding="0">
		<?php 
dump_clog($system_logfile, $syslogEntriesToFetch);
?>
	</table>
</div>

<!-- needed to display the widget settings menu -->
<script type="text/javascript">
//<![CDATA[
	selectIntLink = "system_log-configure";
	textlink = document.getElementById(selectIntLink);
	textlink.style.display = "inline";
//]]>
</script>
Beispiel #21
0
?>
		</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 NTP log entries"), $nentries);
?>
						</td>
					</tr>
					<?php 
dump_clog($ntpd_logfile, $nentries);
?>
					<tr>
						<td>
							<br />
							<form action="diag_logs_ntpd.php" method="post">
								<input name="clear" type="submit" class="formbtn" value="<?php 
echo gettext("Clear log");
?>
" />
							</form>
						</td>
					</tr>
				</table>
			</div>
		</td>
Beispiel #22
0
	</tr>
	<tr>
		<td>
			<div id="mainarea">
			<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td colspan="2" class="listtopic">Son <?php 
echo $nentries;
?>
 sistem kayıtları</td>
				</tr>
				<?php 
if ($filtertext) {
    dump_clog($system_logfile, $nentries, true, array("{$filtertext}"), array("racoon", "ntpd", "pppoe"));
} else {
    dump_clog($system_logfile, $nentries, true, array(), array("racoon", "ntpd", "pppoe"));
}
?>
				<tr>
					<td align="left" valign="top">
						<form id="filterform" name="filterform" action="diag_logs.php" method="post" style="margin-top: 14px;">
              				<input id="submit" name="clear" type="submit" class="formbtn" value="<?php 
echo gettext("Kayıtları temizle");
?>
" />
						</form>
					</td>
					<td align="right" valign="top" >
						<form id="clearform" name="clearform" action="diag_logs.php" method="post" style="margin-top: 14px;">
              				<input id="filtertext" name="filtertext" value="<?php 
echo gettext($filtertext);
Beispiel #23
0
				<? 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 
if ($filtertext) {
    dump_clog($system_logfile, $nentries, true, array("{$filtertext}"), array("ppp"));
} else {
    dump_clog($system_logfile, $nentries, true, array(), array("ppp"));
}
?>
								</table>
							 </div>

							<div class="container-fluid">

							<form action="diag_logs.php" method="post">
								<input name="clear" type="submit" class="btn btn-default" value="<?php 
echo gettext("Clear log");
?>
" />
							</form>

							<form id="clearform" name="clearform" action="diag_logs.php" method="post" class="__mt">
display_top_tabs($tab_array);
?>
  </td></tr>
  <tr>
    <td>
	<div id="mainarea">
		<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td colspan="2" class="listtopic">
			  Son <?php 
echo $nentries;
?>
 Yük Dengeleyici log girdileri</td>
		  </tr>
		  <?php 
dump_clog($slbd_logfile, $nentries);
?>
		<tr><td><br><form action="diag_logs_slbd.php" method="post">
<input name="clear" type="submit" class="formbtn" value="Log Temizle"></td></tr>
		</table>
	</div>
</form>
	</td>
  </tr>
</table>
<?php 
include "fend.inc";
?>
</body>
</html>
Beispiel #25
0
echo gettext(" log entries");
?>
</h2></div>
	<div class="table table-responsive">
		<table class="table table-striped table-hover">
			<thead>
				<tr>
					<th class="col-sm-2"></th>
					<th></th>
				</tr>
			</thead>
			<tbody>
<?php 
if ($logfile == 'resolver' || $logfile == 'system') {
    $inverse = array("ppp");
} else {
    $inverse = null;
}
if ($filtertext) {
    dump_clog($system_logfile, $nentries, true, array("{$filtertext}"), $inverse);
} else {
    dump_clog($system_logfile, $nentries, true, array(), $inverse);
}
?>
			</tbody>
		</table>
	</div>
</div>

<?php 
include "foot.inc";
Beispiel #26
0
</td>
											<td class="listhdrr"><?php 
    echo gettext("User");
    ?>
</td>
											<td class="listhdrr"><?php 
    echo gettext("IP address");
    ?>
</td>
										</tr>
											<?php 
    dump_clog_vpn("/var/log/vpn.log", $nentries);
    ?>
										<?php 
} else {
    dump_clog("/var/log/{$logname}.log", $nentries);
}
?>
								</table>
							 </div>

							<form action="diag_logs_vpn.php" method="post">
								<input type="hidden" name="vpntype" id="vpntype" value="<?php 
echo $vpntype;
?>
" />
								<input type="hidden" name="mode" id="mode" value="<?php 
echo $mode;
?>
" />
								<input name="clear" type="submit" class="btn" value="<?php 
Beispiel #27
0
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 Load Balancer log entries"), $nentries);
?>
</td>
		  </tr>
		  <?php 
dump_clog($relayd_logfile, $nentries);
?>
		<tr><td><br /><form action="diag_logs_relayd.php" method="post">
<input name="clear" type="submit" class="formbtn" value="<?php 
echo gettext("Clear log");
?>
" /></form></td></tr>
		</table>
	</div>
	</td>
  </tr>
</table>
<?php 
include "fend.inc";
?>
</body>
Beispiel #28
0
			    <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 Portal Auth log entries'), $nentries);
?>
						</div>
						<div class="table-responsive">
							<table class="table table-striped table-sort">
								<?php 
dump_clog($portal_logfile, $nentries, true);
?>
							</table>
						</div>

					    <div class="container-fluid">
								<form action="diag_logs_auth.php" method="post">
									<input name="clear" type="submit" class="btn" value="<?php 
echo gettext("Clear log");
?>
" />
								</form>

						</div>
				    </div>
			    </section>
Beispiel #29
0
							 <div class="table-responsive">
								<table class="table table-striped table-sort">
							<tr><td colspan="2">
							<form id="clearform" name="clearform" action="diag_logs.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($system_logfile, $nentries, $filtertext);
?>
							<tr><td colspan="2">
							<form action="diag_logs.php" method="post">
								<input name="clear" type="submit" class="btn btn-default" value="<?php 
echo gettext("Clear log");
?>
" />
							</form>
							</td></tr>
								</table>
							 </div>

						</div>
				    </div>
			</section>
Beispiel #30
0
			</td>

			<td>
			<input id="submit" name="submit" type="submit" class="btn btn-primary formbtn" value="<?php 
echo gettext('Save');
?>
" autocomplete="off">
			</td>

		</tr>
	</table>
   </form>
</div>

<div id="system_log-widgets" class="content-box" style="overflow:scroll;">
	<table class="table table-striped" cellspacing="0" cellpadding="0">
		<?php 
dump_clog($system_logfile, $syslogEntriesToFetch, true, array(), array("ppp"));
?>
	</table>
</div>

<!-- needed to display the widget settings menu -->
<script type="text/javascript">
//<![CDATA[
	selectIntLink = "system_log-configure";
	textlink = document.getElementById(selectIntLink);
	textlink.style.display = "inline";
//]]>
</script>