changed graphics: https://www.iconfinder.com/icons/183208/bin_can_garbage_trash_icon#size=20 (Free for commercial use)
|
@ -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
|
||||
|
|
|
@ -367,8 +367,8 @@ sub print_vpn_clients()
|
|||
print "<td> $fullnet";
|
||||
print "<input type=hidden name=client${val}_netip value='$fullnet'/></td>";
|
||||
print "<td align=center> ";
|
||||
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>";
|
||||
|
|
|
@ -336,9 +336,9 @@ sub print_vpn_connections()
|
|||
print "</td>";
|
||||
print "<td> ";
|
||||
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> ";
|
||||
|
|
After Width: | Height: | Size: 623 B |
After Width: | Height: | Size: 353 B |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 287 B |