Or we could adapt the code to also look in the uploaded css after stuff.
Don't think that would be hard to implement.
Jonathan De Graeve
jonathan dot de dot graeve at imelda dot be
Always read the manual for the correct way to do things because the
number of incorrect ways to do things is almost infinite
Van: Amaury Amblard-Ladurantie [mailto:darcache at gmail dot com]
Verzonden: maandag 7 november 2005 14:26
Aan: Paul Taylor
CC: Jonathan De Graeve; m0n0wall at lists dot m0n0 dot ch
Onderwerp: Re: [m0n0wall] Captive Portal: One Login per MAC
Thank you for this information.
Would the element manager also detect this ?
<img src="img.png" />
The HTML code loading the image is nested inside HTML comments.
Therefore the image is not displayed on the page.
It could allow someone to manually load any image required by the css.
On 11/7/05, Paul Taylor <PaulTaylor at winn dash dixie dot com> wrote:
> In addition to image tags, it does also detect other types... This
> taken from our captive portal login page, which loads our css file:
> <link href="css/cp.css" rel="stylesheet" type="text/css">
> Now, if your css file links out to other images, that won't work...
> element manager only scans the login and error html pages for links.
> Also, the path does not matter... Note that the above shows
> the location of the css file... I'm stripping the paths out when I
> -----Original Message-----
> From: Jonathan De Graeve [mailto:Jonathan dot De dot Graeve at imelda dot be]
> Sent: Monday, November 07, 2005 6:40 AM
> To: Amaury Amblard-Ladurantie
> Cc: Paul Taylor
> Subject: RE: [m0n0wall] Captive Portal: One Login per MAC
> >Does it detect that it needs to load external stylesheets and/or
> >Does it detect that a stylesheet needs external PNG?
> As my guess is "no it does not"; I imagined a "hack" to force the
> element manager to detect the fact that it needs external files.
> I have included in the HTML file a comment such as this one:
> <img src="img1.png" />
> <img src="img12.png" />
> <img src="stylesheet.css" />
> Didn't test this but it could work.
> >Even if this works, this is nothing more than an ugly hack. Would you
> >mind implementing something in element manager which would detect and
> >load the following elements ?
> This elements are needed by the webpage
> This is for Paul, I'm not going to add more features to the element
> manager, only bug fixes (like the one in the
> I'm too busy with other enhancements ;)
> >Final question: which path do I use to load the external files?
> >In my test web page I use the local relative path:
> ><img src="image.png" />
> >Is it going to work?