Commit 7d74d4c1 authored by Franco Fichtner's avatar Franco Fichtner

vpn/pptp: collapse to menu

parent 3cb9dfab
...@@ -241,9 +241,11 @@ ...@@ -241,9 +241,11 @@
<ClientExport url="/vpn_openvpn_export.php*"/> <ClientExport url="/vpn_openvpn_export.php*"/>
<SharedKeyExport url="/vpn_openvpn_export_shared.php"/> <SharedKeyExport url="/vpn_openvpn_export_shared.php"/>
</OpenVPN> </OpenVPN>
<PPTP url="/vpn_pptp.php"> <PPTP cssClass="fa fa-road">
<PPTPUsers url="/vpn_pptp_users.php"/> <Settings url="/vpn_pptp.php"/>
<PPTPUsersEdit url="/vpn_pptp_users_edit.php"/> <Users url="/vpn_pptp_users.php">
<Edit url="/vpn_pptp_users_edit.php*"/>
</Users>
</PPTP> </PPTP>
</VPN> </VPN>
<Status order="6" cssClass="glyphicon glyphicon-tasks"> <Status order="6" cssClass="glyphicon glyphicon-tasks">
......
...@@ -236,10 +236,6 @@ $shortcuts['ntp']['log'] = "diag_logs_ntpd.php"; ...@@ -236,10 +236,6 @@ $shortcuts['ntp']['log'] = "diag_logs_ntpd.php";
$shortcuts['ntp']['status'] = "status_ntpd.php"; $shortcuts['ntp']['status'] = "status_ntpd.php";
$shortcuts['ntp']['service'] = "ntpd"; $shortcuts['ntp']['service'] = "ntpd";
$shortcuts['pptps'] = array();
$shortcuts['pptps']['main'] = "vpn_pptp.php";
$shortcuts['pptps']['log'] = "diag_logs_vpn.php";
$shortcuts['pppoes'] = array(); $shortcuts['pppoes'] = array();
$shortcuts['pppoes']['main'] = "vpn_pppoe.php"; $shortcuts['pppoes']['main'] = "vpn_pppoe.php";
$shortcuts['pppoes']['log'] = "diag_logs_vpn.php?vpntype=poes"; $shortcuts['pppoes']['log'] = "diag_logs_vpn.php?vpntype=poes";
......
...@@ -196,8 +196,7 @@ if ($_POST) { ...@@ -196,8 +196,7 @@ if ($_POST) {
} }
} }
$pgtitle = array(gettext("VPN"),gettext("VPN PPTP")); $pgtitle = array(gettext('VPN'), gettext('PPTP'), gettext('Settings'));
$shortcut_section = "pptps";
include("head.inc"); include("head.inc");
?> ?>
...@@ -313,13 +312,6 @@ function enable_change(enable_over) { ...@@ -313,13 +312,6 @@ function enable_change(enable_over) {
<section class="col-xs-12"> <section class="col-xs-12">
<?php
$tab_array = array();
$tab_array[0] = array(gettext("Configuration"), true, "vpn_pptp.php");
$tab_array[1] = array(gettext("Users"), false, "vpn_pptp_users.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<form action="vpn_pptp.php" method="post" name="iform" id="iform"> <form action="vpn_pptp.php" method="post" name="iform" id="iform">
......
...@@ -60,8 +60,7 @@ if ($_GET['act'] == "del") { ...@@ -60,8 +60,7 @@ if ($_GET['act'] == "del") {
} }
} }
$pgtitle = array(gettext("VPN"),gettext("VPN PPTP"),gettext("Users")); $pgtitle = array(gettext('VPN'), gettext('PPTP'), gettext('Users'));
$shortcut_section = "pptps";
include("head.inc"); include("head.inc");
$main_buttons = array( $main_buttons = array(
...@@ -91,13 +90,6 @@ endif; ?> ...@@ -91,13 +90,6 @@ endif; ?>
<section class="col-xs-12"> <section class="col-xs-12">
<?php
$tab_array = array();
$tab_array[0] = array(gettext("Configuration"), false, "vpn_pptp.php");
$tab_array[1] = array(gettext("Users"), true, "vpn_pptp_users.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<form action="vpn_pptp_users.php" method="post" name="iform" id="iform"> <form action="vpn_pptp_users.php" method="post" name="iform" id="iform">
......
...@@ -134,8 +134,7 @@ if ($_POST) { ...@@ -134,8 +134,7 @@ if ($_POST) {
} }
} }
$pgtitle = array(gettext("VPN"),gettext("VPN PPTP"),gettext("User"),gettext("Edit")); $pgtitle = array(gettext('VPN'), gettext('PPTP'), gettext('Edit User'));
$shortcut_section = "pptps";
include("head.inc"); include("head.inc");
?> ?>
...@@ -153,14 +152,6 @@ include("head.inc"); ...@@ -153,14 +152,6 @@ include("head.inc");
} ?> } ?>
<section class="col-xs-12"> <section class="col-xs-12">
<?php
$tab_array = array();
$tab_array[0] = array(gettext("Configuration"), false, "vpn_pptp.php");
$tab_array[1] = array(gettext("Users"), true, "vpn_pptp_users.php");
display_top_tabs($tab_array);
?>
<div class="tab-content content-box col-xs-12"> <div class="tab-content content-box col-xs-12">
<form action="vpn_pptp_users_edit.php" method="post" name="iform" id="iform"> <form action="vpn_pptp_users_edit.php" method="post" name="iform" id="iform">
......
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