Commit c97e95bd authored by Franco Fichtner's avatar Franco Fichtner

openvpn: small include fix and log conversion

parent d6e14d26
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
<DHCP url="/diag_logs_dhcp.php"/> <DHCP url="/diag_logs_dhcp.php"/>
<PPP url="/diag_logs_ppp.php"/> <PPP url="/diag_logs_ppp.php"/>
<VPN url="/diag_logs_vpn.php*"/> <VPN url="/diag_logs_vpn.php*"/>
<OpenVPN url="/diag_logs_openvpn.php"/>
<Proxy url="/diag_logs_proxy.php"> <Proxy url="/diag_logs_proxy.php">
<ProxyActions url="/diag_logs_proxy.php?*"/> <ProxyActions url="/diag_logs_proxy.php?*"/>
</Proxy> </Proxy>
...@@ -295,6 +294,7 @@ ...@@ -295,6 +294,7 @@
<Edit url="/vpn_openvpn_export.php?*"/> <Edit url="/vpn_openvpn_export.php?*"/>
</ClientExport> </ClientExport>
<ClientSharedKeyExport VisibleName="Shared Key Export" url="/vpn_openvpn_export_shared.php"/> <ClientSharedKeyExport VisibleName="Shared Key Export" url="/vpn_openvpn_export_shared.php"/>
<Log VisibleName="Log File" url="/diag_logs_openvpn.php"/>
<Server VisibleName="Server Settings" url="/vpn_openvpn_server.php"> <Server VisibleName="Server Settings" url="/vpn_openvpn_server.php">
<Edit url="/vpn_openvpn_server.php?*"/> <Edit url="/vpn_openvpn_server.php?*"/>
</Server> </Server>
......
...@@ -66,7 +66,7 @@ include("head.inc"); ...@@ -66,7 +66,7 @@ include("head.inc");
<table class="table table-striped table-sort"> <table class="table table-striped table-sort">
<tr><td colspan="2"><strong><?= sprintf(gettext('Last %s Portal Auth log entries'), $nentries); ?></strong></td></tr> <tr><td colspan="2"><strong><?= sprintf(gettext('Last %s Portal Auth log entries'), $nentries); ?></strong></td></tr>
<?php dump_clog($portal_logfile, $nentries, true); ?> <?php dump_clog($portal_logfile, $nentries, true); ?>
<tr><td> <tr><td colspan="2">
<form action="diag_logs_auth.php" method="post"> <form action="diag_logs_auth.php" method="post">
<input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" /> <input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" />
</form> </form>
......
...@@ -68,7 +68,7 @@ include("head.inc"); ...@@ -68,7 +68,7 @@ include("head.inc");
<table class="table table-striped table-sort"> <table class="table table-striped table-sort">
<tr><td colspan="2"><strong><?= sprintf(gettext("Last %s IPsec log entries"),$nentries);?></strong></td></tr> <tr><td colspan="2"><strong><?= sprintf(gettext("Last %s IPsec log entries"),$nentries);?></strong></td></tr>
<?php dump_clog($ipsec_logfile, $nentries); ?> <?php dump_clog($ipsec_logfile, $nentries); ?>
<tr><td> <tr><td colspan="2">
<form action="diag_logs_ipsec.php" method="post"> <form action="diag_logs_ipsec.php" method="post">
<input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" /> <input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" />
</form> </form>
......
...@@ -69,7 +69,7 @@ include("head.inc"); ...@@ -69,7 +69,7 @@ include("head.inc");
<table class="table table-striped table-sort"> <table class="table table-striped table-sort">
<tr><td colspan="2"><strong><?= sprintf(gettext("Last %s NTP log entries"), $nentries);?></strong></td></tr> <tr><td colspan="2"><strong><?= sprintf(gettext("Last %s NTP log entries"), $nentries);?></strong></td></tr>
<?php dump_clog($ntpd_logfile, $nentries); ?> <?php dump_clog($ntpd_logfile, $nentries); ?>
<tr><td> <tr><td colspan="2">
<form action="diag_logs_ntpd.php" method="post"> <form action="diag_logs_ntpd.php" method="post">
<input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" /> <input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" />
</form> </form>
......
...@@ -34,7 +34,7 @@ require_once("services.inc"); ...@@ -34,7 +34,7 @@ require_once("services.inc");
require_once("system.inc"); require_once("system.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("OpenVPN")); $pgtitle = array(gettext('Services'), gettext('OpenVPN'), gettext('Log File'));
$openvpn_logfile = '/var/log/openvpn.log'; $openvpn_logfile = '/var/log/openvpn.log';
...@@ -64,26 +64,21 @@ include("head.inc"); ...@@ -64,26 +64,21 @@ include("head.inc");
<section class="col-xs-12"> <section class="col-xs-12">
<? include('diag_logs_tabs.inc'); ?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<div class="container-fluid">
<p><?php printf(gettext("Last %s OpenVPN log entries"),$nentries)?></p>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-sort"> <table class="table table-striped table-sort">
<tr><td colspan="2"><strong><?= sprintf(gettext("Last %s OpenVPN log entries"),$nentries)?></strong></td></tr>
<?php dump_clog($openvpn_logfile, $nentries); ?> <?php dump_clog($openvpn_logfile, $nentries); ?>
</table> <tr><td colspan="2">
</div>
<form action="diag_logs_openvpn.php" method="post"> <form action="diag_logs_openvpn.php" method="post">
<input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" /> <input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" />
</form> </form>
</td></tr>
</table>
</div> </div>
</div> </div>
</section> </section>
</div> </div>
......
...@@ -70,7 +70,7 @@ include("head.inc"); ...@@ -70,7 +70,7 @@ include("head.inc");
<table class="table table-striped table-sort"> <table class="table table-striped table-sort">
<tr><td colspan="2"><strong><?= sprintf(gettext('Last %s Load Balancer log entries'), $nentries);?></strong></td></tr> <tr><td colspan="2"><strong><?= sprintf(gettext('Last %s Load Balancer log entries'), $nentries);?></strong></td></tr>
<?php dump_clog($relayd_logfile, $nentries); ?> <?php dump_clog($relayd_logfile, $nentries); ?>
<tr><td> <tr><td colspan="2">
<form action="diag_logs_relayd.php" method="post"> <form action="diag_logs_relayd.php" method="post">
<input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" /> <input name="clear" type="submit" class="btn" value="<?= gettext("Clear log");?>" />
</form> </form>
......
...@@ -31,10 +31,8 @@ $tab_array = array(); ...@@ -31,10 +31,8 @@ $tab_array = array();
$tab_array[] = array(gettext("System"), $active_tab == "/diag_logs.php", "diag_logs.php"); $tab_array[] = array(gettext("System"), $active_tab == "/diag_logs.php", "diag_logs.php");
$tab_array[] = array(gettext("Firewall"), $active_tab == "/diag_logs_filter.php", "diag_logs_filter.php"); $tab_array[] = array(gettext("Firewall"), $active_tab == "/diag_logs_filter.php", "diag_logs_filter.php");
$tab_array[] = array(gettext("DHCP"), $active_tab == "/diag_logs_dhcp.php", "diag_logs_dhcp.php"); $tab_array[] = array(gettext("DHCP"), $active_tab == "/diag_logs_dhcp.php", "diag_logs_dhcp.php");
$tab_array[] = array(gettext("Portal Auth"), $active_tab == "/diag_logs_auth.php", "diag_logs_auth.php");
$tab_array[] = array(gettext("PPP"), $active_tab == "/diag_logs_ppp.php", "diag_logs_ppp.php"); $tab_array[] = array(gettext("PPP"), $active_tab == "/diag_logs_ppp.php", "diag_logs_ppp.php");
$tab_array[] = array(gettext("VPN"), $active_tab == "/diag_logs_vpn.php", "diag_logs_vpn.php"); $tab_array[] = array(gettext("VPN"), $active_tab == "/diag_logs_vpn.php", "diag_logs_vpn.php");
$tab_array[] = array(gettext("OpenVPN"), $active_tab == "/diag_logs_openvpn.php", "diag_logs_openvpn.php");
$tab_array[] = array(gettext("Proxy"), $active_tab == "/diag_logs_proxy.php", "diag_logs_proxy.php?type=cache"); $tab_array[] = array(gettext("Proxy"), $active_tab == "/diag_logs_proxy.php", "diag_logs_proxy.php?type=cache");
$tab_array[] = array(gettext("Settings"), $active_tab == "/diag_logs_settings.php", "diag_logs_settings.php"); $tab_array[] = array(gettext("Settings"), $active_tab == "/diag_logs_settings.php", "diag_logs_settings.php");
display_top_tabs($tab_array); display_top_tabs($tab_array);
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("services.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("services.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment