Style ueberarbeitet.

Graphen fuer den Speicher gefixt.
DNS-Server in der index.cgi gefixt.
Sprachdatei aktualisiert.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@407 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
ms
2007-02-07 20:51:04 +00:00
parent 9833e7d8fb
commit c6aa4ac121
4 changed files with 530 additions and 476 deletions

View File

@@ -115,7 +115,7 @@ END
print "\t<option value='$c' $selected{'PROFILE'}{$c}>$c. $profilenames[$c]</option>\n";
}
}
$dialButtonDisabled = "disabled='disabled'" if (-e '/var/run/ppp-ipcop.pid' || -e "${General::swroot}/red/active");
$dialButtonDisabled = "disabled='disabled'" if (-e '/var/run/ppp-ipfire.pid' || -e "${General::swroot}/red/active");
if ( ( $pppsettings{'VALID'} eq 'yes' ) || ( $netsettings{'CONFIG_TYPE'} =~ /^(2|3|6|7)$/ && $netsettings{'RED_TYPE'} =~ /^(DHCP|STATIC)$/ ) ) {
print <<END;
</select>
@@ -136,6 +136,23 @@ END
print "$Lang::tr{'profile has errors'}\n </b></font>\n";
}
my $DNS1 = `cat /var/ipfire/red/dns1`;
my $DNS2 = `cat /var/ipfire/red/dns2`;
chomp($DNS1);
chomp($DNS1);
if ( $DNS1 ) { print <<END;
<tr><td><b>DNS-Server:</b><td>$DNS1
END
}
if ( $DNS2 ) { print <<END;
<td>$DNS2
END
} else { print <<END;
<td>&nbsp;
END
}
if ( $netsettings{'GREEN_DEV'} ) { print <<END;
<tr><td bgcolor='$Header::colourgreen' width='25%'><a href="/cgi-bin/dhcp.cgi"><font size='2' color='white'><b>$Lang::tr{'lan'}:</b></font></a>
<td width='30%'>$netsettings{'GREEN_ADDRESS'}
@@ -207,15 +224,6 @@ END
<td width='45%'><font color=$Header::colourgreen>Online</font>
END
}
if ( $netsettings{'DNS1'} ) { print <<END;
<tr><td>DNS-Server: <td>$netsettings{'DNS1'}
END
}
if ( $netsettings{'DNS2'} ) { print <<END;
<td>$netsettings{'DNS2'}
END
}
# Memory usage warning
my @free = `/usr/bin/free`;