mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
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:
@@ -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>
|
||||
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`;
|
||||
|
||||
Reference in New Issue
Block a user