diff --git a/net/l2tp/Makefile b/net/l2tp/Makefile
index 29b1cecbc..1f0f95749 100644
--- a/net/l2tp/Makefile
+++ b/net/l2tp/Makefile
@@ -1,6 +1,6 @@
PLUGIN_NAME= l2tp
PLUGIN_PRIVATE= yes
-PLUGIN_VERSION= 0.4
+PLUGIN_VERSION= 0.5
PLUGIN_DEPENDS= clog mpd5
PLUGIN_COMMENT= LT2P server based on MPD5
PLUGIN_MAINTAINER= franco@opnsense.org
diff --git a/net/l2tp/src/www/vpn_l2tp_log.inc b/net/l2tp/src/www/vpn_l2tp_log.inc
index dacdf2fb0..116e32d7b 100644
--- a/net/l2tp/src/www/vpn_l2tp_log.inc
+++ b/net/l2tp/src/www/vpn_l2tp_log.inc
@@ -88,31 +88,27 @@ include("head.inc");
-
- |
-
- |
-
-
| =gettext("Time");?> |
=gettext("Action");?> |
=gettext("User");?> |
=gettext("IP address");?> |
+
+ |
+
+ |
+
-
|
|
diff --git a/net/l2tp/src/www/vpn_l2tp_log.php b/net/l2tp/src/www/vpn_l2tp_log.php
index aa0bc3159..9586d5d9e 100644
--- a/net/l2tp/src/www/vpn_l2tp_log.php
+++ b/net/l2tp/src/www/vpn_l2tp_log.php
@@ -8,18 +8,19 @@ if (htmlspecialchars($_POST['mode'])) {
$mode = 'login';
}
-if ($mode != 'raw') {
- $logfile = '/var/log/vpn.log';
-} else {
- $logfile = '/var/log/l2tps.log';
-}
-
$logtype = 'l2tp';
+$logclog = true;
-$tab_array = array();
-$tab_array[] = array(gettext('L2TP Logins'), $mode != 'raw', '/vpn_l2tp_log.php');
-$tab_array[] = array(gettext('L2TP Raw'), $mode == 'raw', '/vpn_l2tp_log.php?mode=raw');
+$logpills = array();
+$logpills[] = array(gettext('L2TP Logins'), $mode != 'raw', '/vpn_l2tp_log.php');
+$logpills[] = array(gettext('L2TP Raw'), $mode == 'raw', '/vpn_l2tp_log.php?mode=raw');
$service_hook = 'l2tpd';
-require_once 'vpn_l2tp_log.inc';
+if ($mode != 'raw') {
+ $logfile = '/var/log/vpn.log';
+ require_once 'vpn_l2tp_log.inc';
+} else {
+ $logfile = '/var/log/l2tps.log';
+ require_once 'diag_logs_template.inc';
+}
diff --git a/net/pppoe/Makefile b/net/pppoe/Makefile
index 141f553b4..cc8c54a53 100644
--- a/net/pppoe/Makefile
+++ b/net/pppoe/Makefile
@@ -1,6 +1,6 @@
PLUGIN_NAME= pppoe
PLUGIN_PRIVATE= yes
-PLUGIN_VERSION= 0.4
+PLUGIN_VERSION= 0.5
PLUGIN_DEPENDS= clog mpd5
PLUGIN_COMMENT= PPPoE server based on MPD5
PLUGIN_MAINTAINER= franco@opnsense.org
diff --git a/net/pppoe/src/www/vpn_pppoe_log.inc b/net/pppoe/src/www/vpn_pppoe_log.inc
index dacdf2fb0..116e32d7b 100644
--- a/net/pppoe/src/www/vpn_pppoe_log.inc
+++ b/net/pppoe/src/www/vpn_pppoe_log.inc
@@ -88,31 +88,27 @@ include("head.inc");
-
- |
-
- |
-
-
| =gettext("Time");?> |
=gettext("Action");?> |
=gettext("User");?> |
=gettext("IP address");?> |
+
+ |
+
+ |
+
-
|
|
diff --git a/net/pppoe/src/www/vpn_pppoe_log.php b/net/pppoe/src/www/vpn_pppoe_log.php
index baa877c36..ec5638cb9 100644
--- a/net/pppoe/src/www/vpn_pppoe_log.php
+++ b/net/pppoe/src/www/vpn_pppoe_log.php
@@ -8,16 +8,17 @@ if (htmlspecialchars($_POST['mode'])) {
$mode = 'login';
}
+$logtype = 'poes';
+$logclog = true;
+
+$logpills = array();
+$logpills[] = array(gettext('PPPoE Logins'), $mode != 'raw', '/vpn_pppoe_log.php');
+$logpills[] = array(gettext('PPPoE Raw'), $mode == 'raw', '/vpn_pppoe_log.php?mode=raw');
+
if ($mode != 'raw') {
$logfile = '/var/log/vpn.log';
+ require_once 'vpn_pppoe_log.inc';
} else {
$logfile = '/var/log/poes.log';
+ require_once 'diag_logs_template.inc';
}
-
-$logtype = 'poes';
-
-$tab_array = array();
-$tab_array[] = array(gettext('PPPoE Logins'), $mode != 'raw', '/vpn_pppoe_log.php');
-$tab_array[] = array(gettext('PPPoE Raw'), $mode == 'raw', '/vpn_pppoe_log.php?mode=raw');
-
-require_once 'vpn_pppoe_log.inc';
diff --git a/net/pptp/Makefile b/net/pptp/Makefile
index 937b4804e..ac510aa9e 100644
--- a/net/pptp/Makefile
+++ b/net/pptp/Makefile
@@ -1,6 +1,6 @@
PLUGIN_NAME= pptp
PLUGIN_PRIVATE= yes
-PLUGIN_VERSION= 0.4
+PLUGIN_VERSION= 0.5
PLUGIN_DEPENDS= clog mpd5
PLUGIN_COMMENT= PPTP server based on MPD5
PLUGIN_MAINTAINER= franco@opnsense.org
diff --git a/net/pptp/src/www/vpn_pptp_log.inc b/net/pptp/src/www/vpn_pptp_log.inc
index dacdf2fb0..116e32d7b 100644
--- a/net/pptp/src/www/vpn_pptp_log.inc
+++ b/net/pptp/src/www/vpn_pptp_log.inc
@@ -88,31 +88,27 @@ include("head.inc");
-
- |
-
- |
-
-
| =gettext("Time");?> |
=gettext("Action");?> |
=gettext("User");?> |
=gettext("IP address");?> |
+
+ |
+
+ |
+
-
|
|
diff --git a/net/pptp/src/www/vpn_pptp_log.php b/net/pptp/src/www/vpn_pptp_log.php
index 4b844ce9e..3f701c244 100644
--- a/net/pptp/src/www/vpn_pptp_log.php
+++ b/net/pptp/src/www/vpn_pptp_log.php
@@ -8,18 +8,19 @@ if (htmlspecialchars($_POST['mode'])) {
$mode = 'login';
}
-if ($mode != 'raw') {
- $logfile = '/var/log/vpn.log';
-} else {
- $logfile = '/var/log/pptps.log';
-}
-
$logtype = 'pptp';
+$logclog = true;
-$tab_array = array();
-$tab_array[] = array(gettext('PPTP Logins'), $mode != 'raw', '/vpn_pptp_log.php');
-$tab_array[] = array(gettext('PPTP Raw'), $mode == 'raw', '/vpn_pptp_log.php?mode=raw');
+$logpills = array();
+$logpills[] = array(gettext('PPTP Logins'), $mode != 'raw', '/vpn_pptp_log.php');
+$logpills[] = array(gettext('PPTP Raw'), $mode == 'raw', '/vpn_pptp_log.php?mode=raw');
$service_hook = 'pptpd';
-require_once 'vpn_pptp_log.inc';
+if ($mode != 'raw') {
+ $logfile = '/var/log/vpn.log';
+ require_once 'vpn_pptp_log.inc';
+} else {
+ $logfile = '/var/log/pptps.log';
+ require_once 'diag_logs_template.inc';
+}