From: maniacikarus Date: Fri, 9 Nov 2007 18:41:21 +0000 (+0000) Subject: fixes samba cgi issues for remote sync X-Git-Tag: v3.0-alpha1~1168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ea29a0faeff56c045044044ad17cac353086206;p=ipfire-3.x.git fixes samba cgi issues for remote sync git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@1073 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi index 787104ad5..25560c21e 100644 --- a/html/cgi-bin/samba.cgi +++ b/html/cgi-bin/samba.cgi @@ -180,7 +180,7 @@ if ($sambasettings{'ACTION'} eq 'globalreset') $Lang::tr{'yes'}
- $Lang::tr{'no'} + $Lang::tr{'no'}
@@ -198,7 +198,7 @@ if ($sambasettings{'ACTION'} eq 'sharesreset') $Lang::tr{'yes'}
- $Lang::tr{'no'} + $Lang::tr{'no'}
@@ -240,7 +240,7 @@ if ($sambasettings{'PREFERREDMASTER'} eq 'on'){ $sambasettings{'PREFERREDMASTER' open (FILE, ">${General::swroot}/samba/global") or die "Can't save the global settings: $!"; flock (FILE, 2); - + print FILE <$Lang::tr{'os level'} $Lang::tr{'socket options'} $Lang::tr{'remote announce'} -$Lang::tr{'remote browse sync'} +$Lang::tr{'remote browse sync'} END ; if ($sambasettings{'WINSSUPPORT'} eq 'off') {print"$Lang::tr{'wins server'}";} @@ -509,7 +509,7 @@ if ($sambasettings{'SECURITY'} eq 'user' && $sambasettings{'DOMAINMASTER'} eq 'o END ; } - + if ( -e "/var/ipfire/cups/enable") { print <; close(FILE); system('/usr/local/bin/sambactrl locksmbpasswd'); - + my $lines = 0; - + foreach $userentry (sort @user) { @userline = split( /\:/, $userentry ); @@ -1028,7 +1028,7 @@ if ($sambasettings{'ACTION'} eq 'printeradd' || $sambasettings{'ACTION'} eq 'pri END ; } - + if ($sambasettings{'ACTION'} eq 'printerchange' || $sambasettings{'ACTION'} eq 'printercaption2' ) { my $printeroption = $printer{$sambasettings{'NAME'}}; @@ -1216,7 +1216,7 @@ sub isrunning { if (/^Name:\W+(.*)/) { - $testcmd = $1; + $testcmd = $1; } } close FILE;