From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] Mark required input fields with a star Date: Sat, 27 Jun 2015 12:45:52 +0200 Message-ID: <1435401952.13892.88.camel@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7116462354774740982==" List-Id: --===============7116462354774740982== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Alright. The first two TODOs are easy. There is a variable called $blob which is defined a couple of lines above. You would need to change the if statement so that it checks for "net" and that should do the job I guess. The other huge blocks need to be cut in two pieces. Usually they use something that looks like this: print < On Thu, 25 Jun 2015 12:28:51 +0200, Alexander Marx =20 > wrote: >=20 > >>>>> On Thu, 2015-06-04 at 23:46 +0200, Larsen wrote: > >>>>>> PS: Need help with the TODOs in that patch as I am now web developer > >>>>>> and where I don=C2=B4t know how to use an if-clause. > >>>>> As these are in the ovpnmain.cgi (as far as I have seen) you should = > >>>>> get > >>>>> in touch with Alex when he is back from holiday. That will be towards > >>>>> the end of next week. > >>>> Should not be related to ovpnmain.cgi. I just don=C2=B4t have the =20 > >>>> experience > >>>> how to combine html-code and if-clauses here. Any dev might be able to > >>>> give a hint here. > > Hi > > All "HTML" Files are the cgi files within /srv/web/ipfire/cgi-bin. > > These Files are CGI's which means it can be any programming language. > > The IPFire CGI's are usually written in perl. So one can easily use perl = =20 > > if-clauses. > > When it comes to the output part you also use Perl code to "print" the =20 > > htmlcode. >=20 > Yes, I know where to change it, but I don=C2=B4t know how exactly to combin= e =20 > perl code and HTML. > Please have a look at the parts marked with TODO here: > http://patchwork.ipfire.org/patch/15/ >=20 > In other places, there is a huge "print" part where perl gives out HTML in = =20 > one block. Here however, I need to use perl inside one of those blocks. >=20 >=20 > Lars --===============7116462354774740982== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="signature.asc" MIME-Version: 1.0 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0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