source: npl/syn3/webint/src/openvpn/status.php

Last change on this file was b4abfab, checked in by Edwin Eefting <edwin@datux.nl>, 7 years ago

openvpn 2.4 support

  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[c5c522c]1<?
2/*
3(C) 2004-2013 DatuX - info@datux.nl
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 3 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program.  If not, see <http://www.gnu.org/licenses/>.
17*/
18
19$LEVEL=10;
20require_once("../common.php");
21require_once("../form2.php");
22require_once("model.php");
23
24
25Title(_OpenVPNStatus());
26Head();
27
28if ($_REQUEST[revoke])
29{
30        openvpn_Revoke($_REQUEST[name]);
31        Redirect("listcerts.php");
32}
33
34$clients=openvpn_Status();
35
36//maak een mooie tabel ervan
37
38echo "<table class='list'>";
39
40echo "<tr>";
41echo "<th>"._User();
42echo "<th>"._CertificateName();
43echo "<th>"._ConnectedSince();
44echo "<th>"._RemoteIP();
45echo "<th>"._VirtualIP();
46echo "<th>"._BytesReceived();
47echo "<th>"._BytesSent();
48echo "</tr>";
49
50foreach ($clients as $client)
51{
52        echo "<tr>";
[b4abfab]53        echo "<td><a href='/useradmin/edituser.php?name=".$client[9]."'>".$client[9]."</a>";
[c5c522c]54        echo "<td>".$client[1];
[b4abfab]55        echo "<td>".$client[7];
[c5c522c]56        echo "<td>".$client[2];
57        echo "<td>".$client[3];
58        echo "<td>".$client[5];
[b4abfab]59        echo "<td>".$client[6];
[c5c522c]60
61        echo "</tr>";
62
63}
64
65echo "</table>";
66
67
68echo "<p><a href='listcerts.php'>"._OpenVPNCerts()."</a>";
69echo "<p><a href='editsettings.php'>"._OpenVPNsettings()."</a>";
70
71
72Foot();
Note: See TracBrowser for help on using the repository browser.