From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/8] pakfire.cgi: Remove some old settings Date: Tue, 11 Feb 2020 14:28:47 +0000 Message-ID: <20200211142853.8561-3-michael.tremer@ipfire.org> In-Reply-To: <20200211142853.8561-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1081248947687079531==" List-Id: --===============1081248947687079531== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable These can no longer be modified in the GUI and are used nowhere. Signed-off-by: Michael Tremer --- html/cgi-bin/pakfire.cgi | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/html/cgi-bin/pakfire.cgi b/html/cgi-bin/pakfire.cgi index e6f3cda94..7c560bfbf 100644 --- a/html/cgi-bin/pakfire.cgi +++ b/html/cgi-bin/pakfire.cgi @@ -42,8 +42,6 @@ $pakfiresettings{'VALID'} =3D ''; =20 $pakfiresettings{'INSPAKS'} =3D ''; $pakfiresettings{'DELPAKS'} =3D ''; -$pakfiresettings{'AUTOUPDATE'} =3D 'off'; -$pakfiresettings{'UUID'} =3D 'on'; =20 sub refreshpage{&Header::openbox( 'Waiting', 1, "" );print "
3D''
$Lang::tr{'pagerefresh'}
";&Header::= closebox();} =20 @@ -144,13 +142,6 @@ END system("$command"); system("/bin/sleep 1"); } elsif ($pakfiresettings{'ACTION'} eq "$Lang::tr{'save'}") { - - if ($pakfiresettings{'AUTOUPDATE'} eq 'on') { - system("/usr/local/bin/pakfire enable updates >/dev/null 2>&1"); - } else { - system("/usr/local/bin/pakfire disable updates >/dev/null 2>&1"); - } - &General::writehash("${General::swroot}/pakfire/settings", \%pakfiresetting= s); } =20 @@ -159,13 +150,6 @@ END my %selected=3D(); my %checked=3D(); =20 -$checked{'AUTOUPDATE'}{'off'} =3D ''; -$checked{'AUTOUPDATE'}{'on'} =3D ''; -$checked{'AUTOUPDATE'}{$pakfiresettings{'AUTOUPDATE'}} =3D "checked=3D'check= ed'"; -$checked{'UUID'}{'off'} =3D ''; -$checked{'UUID'}{'on'} =3D ''; -$checked{'UUID'}{$pakfiresettings{'UUID'}} =3D "checked=3D'checked'"; - # DPC move error message to top so it is seen! if ($errormessage) { &Header::openbox('100%', 'left', $Lang::tr{'error messages'}); --=20 2.20.1 --===============1081248947687079531==--