diff --git a/net/l2tp/src/www/diag_logs_template_l2tp.inc b/net/l2tp/src/www/diag_logs_template_l2tp.inc new file mode 100644 index 000000000..993181556 --- /dev/null +++ b/net/l2tp/src/www/diag_logs_template_l2tp.inc @@ -0,0 +1,117 @@ + + * Copyright (C) 2004-2009 Scott Ullrich + * Copyright (C) 2003-2004 Manuel Kasper + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +require_once("guiconfig.inc"); +require_once("system.inc"); +require_once("interfaces.inc"); + +/* expects $logfile to point to the system path */ +/* expects $logclog to be true or false */ + +require_once 'diag_logs_common.inc'; + +$filtertext = ''; +$nentries = 50; + +if (isset($config['syslog']['nentries'])) { + $nentries = $config['syslog']['nentries']; +} + +if (!empty($_POST['clear'])) { + if ($logclog) { + system_clear_clog($logfile); + } else { + system_clear_log($logfile); + } +} + +if (isset($_POST['filtertext'])) { + $filtertext = $_POST['filtertext']; +} + +include("head.inc"); +?> + + + +
+
+
+
+

+

+
+
+ +
+
+

+
+ + + + + + + + + + + + + + +
+ +
+
+ + + + +
+
+
+
+
+
+
+ diff --git a/net/l2tp/src/www/vpn_l2tp_log.php b/net/l2tp/src/www/vpn_l2tp_log.php index 9586d5d9e..da534b536 100644 --- a/net/l2tp/src/www/vpn_l2tp_log.php +++ b/net/l2tp/src/www/vpn_l2tp_log.php @@ -22,5 +22,5 @@ if ($mode != 'raw') { require_once 'vpn_l2tp_log.inc'; } else { $logfile = '/var/log/l2tps.log'; - require_once 'diag_logs_template.inc'; + require_once 'diag_logs_template_l2tp.inc'; } diff --git a/net/pppoe/src/www/diag_logs_template_pppoe.inc b/net/pppoe/src/www/diag_logs_template_pppoe.inc new file mode 100644 index 000000000..993181556 --- /dev/null +++ b/net/pppoe/src/www/diag_logs_template_pppoe.inc @@ -0,0 +1,117 @@ + + * Copyright (C) 2004-2009 Scott Ullrich + * Copyright (C) 2003-2004 Manuel Kasper + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +require_once("guiconfig.inc"); +require_once("system.inc"); +require_once("interfaces.inc"); + +/* expects $logfile to point to the system path */ +/* expects $logclog to be true or false */ + +require_once 'diag_logs_common.inc'; + +$filtertext = ''; +$nentries = 50; + +if (isset($config['syslog']['nentries'])) { + $nentries = $config['syslog']['nentries']; +} + +if (!empty($_POST['clear'])) { + if ($logclog) { + system_clear_clog($logfile); + } else { + system_clear_log($logfile); + } +} + +if (isset($_POST['filtertext'])) { + $filtertext = $_POST['filtertext']; +} + +include("head.inc"); +?> + + + +
+
+
+
+

+

+
+
+ +
+
+

+
+ + + + + + + + + + + + + + +
+ +
+
+ + + + +
+
+
+
+
+
+
+ diff --git a/net/pppoe/src/www/vpn_pppoe_log.php b/net/pppoe/src/www/vpn_pppoe_log.php index ec5638cb9..65a52c852 100644 --- a/net/pppoe/src/www/vpn_pppoe_log.php +++ b/net/pppoe/src/www/vpn_pppoe_log.php @@ -20,5 +20,5 @@ if ($mode != 'raw') { require_once 'vpn_pppoe_log.inc'; } else { $logfile = '/var/log/poes.log'; - require_once 'diag_logs_template.inc'; + require_once 'diag_logs_template_pppoe.inc'; } diff --git a/net/pptp/src/www/diag_logs_template_pptp.inc b/net/pptp/src/www/diag_logs_template_pptp.inc new file mode 100644 index 000000000..993181556 --- /dev/null +++ b/net/pptp/src/www/diag_logs_template_pptp.inc @@ -0,0 +1,117 @@ + + * Copyright (C) 2004-2009 Scott Ullrich + * Copyright (C) 2003-2004 Manuel Kasper + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +require_once("guiconfig.inc"); +require_once("system.inc"); +require_once("interfaces.inc"); + +/* expects $logfile to point to the system path */ +/* expects $logclog to be true or false */ + +require_once 'diag_logs_common.inc'; + +$filtertext = ''; +$nentries = 50; + +if (isset($config['syslog']['nentries'])) { + $nentries = $config['syslog']['nentries']; +} + +if (!empty($_POST['clear'])) { + if ($logclog) { + system_clear_clog($logfile); + } else { + system_clear_log($logfile); + } +} + +if (isset($_POST['filtertext'])) { + $filtertext = $_POST['filtertext']; +} + +include("head.inc"); +?> + + + +
+
+
+
+

+

+
+
+ +
+
+

+
+ + + + + + + + + + + + + + +
+ +
+
+ + + + +
+
+
+
+
+
+
+ diff --git a/net/pptp/src/www/vpn_pptp_log.php b/net/pptp/src/www/vpn_pptp_log.php index 3f701c244..43ec42644 100644 --- a/net/pptp/src/www/vpn_pptp_log.php +++ b/net/pptp/src/www/vpn_pptp_log.php @@ -22,5 +22,5 @@ if ($mode != 'raw') { require_once 'vpn_pptp_log.inc'; } else { $logfile = '/var/log/pptps.log'; - require_once 'diag_logs_template.inc'; + require_once 'diag_logs_template_pptp.inc'; }