diff --git a/src/etc/inc/plugins.inc.d/openvpn.inc b/src/etc/inc/plugins.inc.d/openvpn.inc index 35242a23e..669ee6dbe 100644 --- a/src/etc/inc/plugins.inc.d/openvpn.inc +++ b/src/etc/inc/plugins.inc.d/openvpn.inc @@ -1324,9 +1324,9 @@ function openvpn_get_server_status($server, $socket) fclose($fp); } else { $conn = array(); - $conn['common_name'] = "[error]"; - $conn['remote_host'] = "Unable to contact daemon"; - $conn['virtual_addr'] = "Service not running?"; + $conn['common_name'] = '[error]'; // kind of a marker value now + $conn['remote_host'] = gettext('Unable to contact daemon'); + $conn['virtual_addr'] = gettext('Service not running?'); $conn['bytes_recv'] = 0; $conn['bytes_sent'] = 0; $conn['connect_time'] = 0; @@ -1438,8 +1438,8 @@ function openvpn_get_client_status($client, $socket) } fclose($fp); } else { - $client['remote_host'] = "Unable to contact daemon"; - $client['virtual_addr'] = "Service not running?"; + $client['remote_host'] = gettext('Unable to contact daemon'); + $client['virtual_addr'] = gettext('Service not running?'); $client['bytes_recv'] = 0; $client['bytes_sent'] = 0; $client['connect_time'] = 0; diff --git a/src/www/status_openvpn.php b/src/www/status_openvpn.php index ff2829c3c..171894d61 100644 --- a/src/www/status_openvpn.php +++ b/src/www/status_openvpn.php @@ -1,6 +1,7 @@ * Copyright (C) 2014-2015 Deciso B.V. * Copyright (C) 2010 Jim Pingle * Copyright (C) 2008 Shrew Soft Inc. @@ -111,7 +112,7 @@ include("head.inc"); ?> }); // link show/hide routes $(".act_show_routes").click(function () { - $("*[data-for='" + $(this).attr('id') + "']").toggleClass("hidden show"); + $("*[data-for='" + $(this).attr('id') + "']").toggle(); }); // minimize all buttons, some of the buttons come from the shared service @@ -124,197 +125,198 @@ include("head.inc"); ?> //]]>
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - "> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "> - - - - - - - - - - - - - - - - - - - - - - - - - - - - "> - - - - - - - - - - - - - - - -
-
- -
- $server['vpnid'])); ?> - - -  
- - -
-
-
- $sk_server['vpnid'])); ?> - - -
-
-
- $client['vpnid'])); ?> - - -
-
-
-
-
-
-
+
+
+
+ + $server): ?> +
+
+ + + + + + + + + + + + + + + + + + + + + "> + + + + + + + + + + + + + + + + + + + + + + "> + + + + + + + + + + + + +
+ +
+ $server['vpnid'])); ?> + + +
+
+ + + +
+ + + + +
+
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + "> + + + + + + + + + + + +
+
+ $sk_server['vpnid'])); ?> + + +
+
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + "> + + + + + + + + + + + +
+
+ $client['vpnid'])); ?> + + +
+
+
+
+ + +
+
+ + + + + + + + +
+
+
+
+ + +
+
+ +include 'foot.inc';