This commit is contained in:
Darryl Quinn 2015-04-28 22:37:33 -07:00
parent 5d6ba0c244
commit defd944fc1
9 changed files with 5 additions and 4 deletions

View File

@ -123,6 +123,7 @@ start() {
fi
# Remove the current vtun config file
mkdir -p /tmp/vtun
rm -f $CLIENT_CONF
# config_foreach network_config network

View File

@ -367,8 +367,8 @@ sub print_vpn_clients()
print "<td>&nbsp;$fullnet";
print "<input type=hidden name=client${val}_netip value='$fullnet'/></td>";
print "<td align=center>&nbsp;";
print "<img class='tun_client_active_img' src='/plug-connect.png'/>" if (&is_tunnel_active($name,@active_tun) && ($val ne "_add"));
print "<img class='tun_client_inactive_img' src='/plug-disconnect.png'/>" if ($val ne "_add");
print "<img class='tun_client_active_img' src='/connected.png'/>" if (&is_tunnel_active($name,@active_tun) && ($val ne "_add"));
print "<img class='tun_client_inactive_img' src='/disconnected.png'/>" if ($val ne "_add");
print "</td>";
print "<td><input type=submit name=client_add value=Add title='Add this client'>" if($val eq "_add");
print "</td>";

View File

@ -336,9 +336,9 @@ sub print_vpn_connections()
print "</td>";
print "<td>&nbsp;";
if (&is_tunnel_active($netip,@active_tun) && ($val ne "_add")) {
print "<img class='tun_client_active_img' src='/plug-connect.png'/>";
print "<img class='tun_client_active_img' src='/connected.png'/>";
} else {
print "<img class='tun_client_inactive_img' src='/plug-disconnect.png'/>" if ($val ne "_add");
print "<img class='tun_client_inactive_img' src='/disconnected.png'/>" if ($val ne "_add");
}
print "</td>";
print "<td>&nbsp;";

BIN
files/www/connected.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

BIN
files/www/disconnected.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 B

After

Width:  |  Height:  |  Size: 287 B