Verbindungsanzeige korrigiert

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@958 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
maniacikarus
2007-10-08 19:11:07 +00:00
parent d83f547d7d
commit 7f9f851640
3 changed files with 9 additions and 5 deletions

View File

@@ -331,16 +331,18 @@ sub connectionstatus
my ($timestr, $connstate);
my $connstate = "<span class='ipcop_StatusBig'>$Lang::tr{'idle'} $profileused</span>";
my $connstate = "<span>$Lang::tr{'idle'} $profileused</span>";
if (-e "${General::swroot}/red/active") {
$timestr = &General::age("${General::swroot}/red/active");
$connstate = "<span class='ipcop_StatusBig'>$Lang::tr{'connected'} - (<span class='ipcop_StatusBigRed'>$timestr</span>) $profileused</span>";
$connstate = "<span>$Lang::tr{'connected'} - (<span>$timestr</span>) $profileused</span>";
} else {
if (($pppsettings{'RECONNECTION'} eq "dialondemand") && ( -e "${General::swroot}/red/dial-on-demand")) {
$connstate = "<span class='ipcop_StatusBig'>$Lang::tr{'dod waiting'} $profileused</span>";
if ((open(KEEPCONNECTED, "</var/ipfire/red/keepconnected") == false) && ($pppsettings{'RECONNECTION'} eq "persistent")) {
$connstate = "<span>$Lang::tr{'connection closed'} $profileused</span>";
} elsif (($pppsettings{'RECONNECTION'} eq "dialondemand") && ( -e "${General::swroot}/red/dial-on-demand")) {
$connstate = "<span>$Lang::tr{'dod waiting'} $profileused</span>";
} else {
$connstate = "<span class='ipcop_StatusBig'>$Lang::tr{'connecting'} $profileused</span>" if (system("ps -ef | grep -q '[p]ppd'"));
$connstate = "<span>$Lang::tr{'connecting'} $profileused</span>" if (system("ps -ef | grep -q '[p]ppd'"));
}
}

View File

@@ -473,6 +473,7 @@
'connected' => 'Verbunden',
'connecting' => 'Baue Verbindung auf...',
'connection' => 'Verbindung',
'connection closed' => 'Nicht Verbunden...',
'connection debugging' => 'Verbindungs-Debugging',
'connection status and controlc' => 'Verbindungsstatus und -kontrolle:',
'connection tracking' => 'IPTables-Verbindungsverfolgung',

View File

@@ -493,6 +493,7 @@
'connected' => 'Connected',
'connecting' => 'Connecting...',
'connection' => 'Connection',
'connection closed' => 'Not connected...',
'connection debugging' => 'Connection debugging',
'connection status and controlc' => 'Connection status and control:',
'connection tracking' => 'IPTables Connection Tracking',