From patchwork Tue Oct 13 16:07:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3567 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4C9gVx5Qg4z3x1S for ; Tue, 13 Oct 2020 16:10:17 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4C9gSz4DsWz1Fr; Tue, 13 Oct 2020 16:08:35 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4C9gSv6SB2z305Z; Tue, 13 Oct 2020 16:08:31 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4C9gSt26Bfz304m for ; Tue, 13 Oct 2020 16:08:30 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4C9gSq6K0Xz1JF; Tue, 13 Oct 2020 16:08:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1602605307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yppNYSBOk5dGzf5cFWvFecqk45miX/y6yUGEYw5mgjg=; b=OeiHlZDxMkGd3hJq8hKvF0FAaP0YDhTuuW4Iye18b2qtalieL+vGvU5e53h8NrDEUTcwtD wUWXnnXGYOJrYjBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1602605307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yppNYSBOk5dGzf5cFWvFecqk45miX/y6yUGEYw5mgjg=; b=k7b8/hju0xeD+cLdIXn59PGeyZOtrTaN17edikQs0b2YzCKrMHyKQyOplnKCVFE7NWKpHJ 0zlJ8RinN7YUaNS8KCx+XXIS5DttTIVF3hC+B9iQuhfmZhrOMVMxUmXNMz8nPOyzVP+PiD y7SepRi0NdDmwcCpWG1lJSyMHBk5tBiTE+Y19Gn1BVNeE6axMFdX27JJsKESGXX5Yvhc05 vm6gSborJt22ARBSI5QO01bE3a4L8NmG8O2t54pOHx4Um/50zccGHm5bnzTTsxb4g5c74a h34g8hVEHYjC+EB1Fr1u2z4tHSnojWpeukZ0ewRz0Zl99OO5dPEdqsIe7n7Dnw== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 37/54] samba: Remove more legends Date: Tue, 13 Oct 2020 16:07:55 +0000 Message-Id: <20201013160812.27754-37-michael.tremer@ipfire.org> In-Reply-To: <20201013160812.27754-1-michael.tremer@ipfire.org> References: <20201013160812.27754-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" These are not helpful and any documentation should be living in the wiki Signed-off-by: Michael Tremer --- html/cgi-bin/samba.cgi | 51 +++--------------------------------------- 1 file changed, 3 insertions(+), 48 deletions(-) diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi index 3f0bcf39f..59e397747 100644 --- a/html/cgi-bin/samba.cgi +++ b/html/cgi-bin/samba.cgi @@ -480,37 +480,11 @@ END
-END -; - - print <
- -
- + END ; - if ($sambasettings{'ACTION'} eq 'usercaption') - { - print < - - - - - - - - - - -
$Lang::tr{'caption'}
$Lang::tr{'add user'}
$Lang::tr{'pc add'}
$Lang::tr{'delete user'}
$Lang::tr{'delete pc'}
$Lang::tr{'activate user'}
$Lang::tr{'deactivate user'}
$Lang::tr{'change passwords'}
$Lang::tr{'save config'}
-END -; - } - if ($sambasettings{'ACTION'} eq 'userchangepw') { my $username = "$sambasettings{'NAME'}"; @@ -683,31 +657,12 @@ print < -
- - -
END ; -if ($sambasettings{'ACTION'} eq 'sharecaption') - { - print < - - - - - - -
$Lang::tr{'caption'}
$Lang::tr{'add share'}
$Lang::tr{'edit share'}
$Lang::tr{'save config'}
$Lang::tr{'delete share'}
-END -; - } - -if ($sambasettings{'ACTION'} eq 'shareadd' || $sambasettings{'ACTION'} eq 'optioncaption' ) +if ($sambasettings{'ACTION'} eq 'shareadd') { print < @@ -725,7 +680,7 @@ END ; } -if ($sambasettings{'ACTION'} eq 'sharechange' || $sambasettings{'ACTION'} eq 'optioncaption2' ) +if ($sambasettings{'ACTION'} eq 'sharechange') { my $shareoption = $shares{$sambasettings{'NAME'}}; print <