Changeset 131
- Timestamp:
- 03/01/06 15:17:43 (3 years ago)
- Files:
-
- trunk/webmin/lbs_common/debian/changelog (modified) (1 diff)
- trunk/webmin/lbs_common/lang/en (modified) (1 diff)
- trunk/webmin/lbs_common/lang/fr (modified) (1 diff)
- trunk/webmin/lbs_common/lbs_common.pl (modified) (8 diffs)
- trunk/webmin/lbs_common/lbs_common_priv.pl (modified) (2 diffs)
- trunk/webmin/lbs_common/module.info (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/webmin/lbs_common/debian/changelog
r110 r131 1 webmin-lbs-common (1.4. 7) stable; urgency=low1 webmin-lbs-common (1.4.8) stable; urgency=low 2 2 3 3 * New release. See SVN logs for details trunk/webmin/lbs_common/lang/en
r110 r131 147 147 err_mac_used=MAC address already declared 148 148 err_name_mandat=The name is mandatory. 149 err_name_inval='$1': Invalid name.150 err_name_usedby=Name '$1' is already used by host '$2'.151 149 err_adminid_mandat=The admin ID is mandatory. 152 150 err_ip_inval='$1': Invalid IP address. trunk/webmin/lbs_common/lang/fr
r110 r131 145 145 err_mac_used=Adresse MAC déjà déclarée 146 146 err_name_mandat=Le nom est obligatoire. 147 err_name_inval='$1': Format de nom invalide.148 err_name_usedby=Le nom '$1' est déjà utilisé par la machine '$2'.149 147 err_adminid_mandat=Le mot de passe d'identification est obligatoire. 150 148 err_ip_inval='$1': Adresse IP invalide. trunk/webmin/lbs_common/lbs_common.pl
r110 r131 308 308 $todisplay = 1 if ($toreplaces{'mac_with_dot'} && $mac && $mac ne ""); 309 309 $todisplay = 1 if ($toreplaces{'mac_with_dot'} && $mac_with_dot && $mac_with_dot ne ""); 310 $todisplay = 1 if ($toreplaces{'group'} && $toreplaces{'group'} && ( $group ne "" || $profile ne ""));310 $todisplay = 1 if ($toreplaces{'group'}); 311 311 $todisplay = 1 if (lc($menu{$onglet}{'DATAS'}{'dont_shade'}) eq "y"); 312 312 … … 327 327 if $url =~ m/%group%/; 328 328 $url =~ s/(.*)%profile%(.*)/$1$profile$2/ # perhaps an "host" arg given ? 329 if $url =~ m/%profile%/; 329 if $url =~ m/%profile%/; 330 330 $template->assign('URL', $url); 331 331 if ($label) { # shown only if there is a label … … 619 619 # first tab is selected 620 620 $template->assign('IS_SELECTED', "selected"); 621 $template->assign('URL', "?profile= all");621 $template->assign('URL', "?profile="); 622 622 $template->assign('PROFIL', text("lab_all")); 623 623 $template->parse('mainlist.profils.profil'); … … 636 636 $template->parse('mainlist.profils.profil'); 637 637 638 $profile_key = " all";638 $profile_key = ""; 639 639 $profile_name = text("lab_all"); 640 640 } elsif ( (lc($in{'profile'}) eq "none") ) { … … 654 654 # leading tabs are not selected 655 655 $template->assign('IS_SELECTED', "unselected"); 656 $template->assign('URL', "?profile= all");656 $template->assign('URL', "?profile="); 657 657 $template->assign('PROFIL', text("lab_all")); 658 658 $template->parse('mainlist.profils.profil'); … … 687 687 688 688 $template->assign('IS_SELECTED', "unselected"); 689 $template->assign('URL', "?profile= all");689 $template->assign('URL', "?profile="); 690 690 $template->assign('PROFIL', text("lab_all")); 691 691 $template->parse('mainlist.profils.profil'); … … 1135 1135 # 1136 1136 sub checkforspace () { 1137 my $run = `df - m /var|tail -1|awk '{print \$4}'`;1137 my $run = `df -Pm /var|tail -1|awk '{print \$4}'`; 1138 1138 if ($run < 100) 1139 1139 { … … 1402 1402 # return the available space 1403 1403 sub get_server_free_space { 1404 return `/bin/df - h` or text('lab_unknown');1404 return `/bin/df -Ph` or text('lab_unknown'); 1405 1405 } 1406 1406 trunk/webmin/lbs_common/lbs_common_priv.pl
r110 r131 17 17 if ($in{group}) { 18 18 my $c = new CGI::Cookie(-name => 'group', 19 -value => $in{group},19 -value => "$in{group}", 20 20 -expires => '+1M' 21 21 ); 22 22 print "Set-Cookie: $c\n"; 23 23 } 24 if ($in{profile}) { 24 25 if ($in{profile} || $in{profile} eq "") { 25 26 my $c = new CGI::Cookie(-name => 'profile', 26 -value => $in{profile},27 -value => "$in{profile}", 27 28 -expires => '+1M' 28 29 ); … … 39 40 my $in = %{$_[0]}; 40 41 41 if (!$in{ group}) {42 if (!$in{'group'}) { 42 43 if ( defined($cookies{'group'}) ) { 43 44 $in{'group'} = $cookies{'group'}->value; 44 45 } 45 46 } 46 if (! $in{profile}) {47 if (! defined($in{'profile'}) ) { 47 48 if ( defined($cookies{'profile'}) ) { 48 49 $in{'profile'} = $cookies{'profile'}->value; trunk/webmin/lbs_common/module.info
r110 r131 5 5 name=lbs_common 6 6 depends=0.94 7 version=1.4. 77 version=1.4.8
