Files
webmin/flashterm/settings.cgi
Jamie Cameron c6a9c32c9f Permissions fix
2010-11-07 21:10:13 -08:00

29 lines
480 B
Perl
Executable File

#!/usr/local/bin/perl
# Output the XML settings file
BEGIN { push(@INC, ".."); };
use WebminCore;
$trust_unknown_referers = 1;
&init_config();
print "Content-type: text/plain\n\n";
# Work out host and port
$host = $ENV{'HTTP_HOST'};
$host =~ s/\:\d+$//;
$telnetport = $config{'telnetport'} || 23;
print <<EOF;
<connection
name="FlashTerm"
address="$host"
port="$telnetport"
socket_server_port="843"
info_graphic=""
default_font=""
columns="80"
lines="25"
/>
EOF