Kevin Dell | 23 Jul 2012 11:14
Picon
Picon

Wrapping Smokeping.cgi inside a html Frame with authentication.

Hi all,

 

I am looking to wrap the smokeping.cgi inside a html wrapper  or iframe(Haven’t decided the best method yet).

 

This is not a problem as such except I have a few departments that we only want to see their own results and graphs, and so we are going to password protect the site and on successful authentication, use redirection to send the user to their own graphs, but then the menu to the left would allow them to select others graphs and so negate the password protection.

 

So I want to remove the Left hand column from window, but I’m a little unsure how, I don’t want to start picking the cgi apart.

Is there a best practice for re-configuring the results pages and menus, or removing the menu altogether?

 

 

 

Kevin J. Dell

 

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Darren Murphy | 23 Jul 2012 11:36
Gravatar

Re: Wrapping Smokeping.cgi inside a html Frame with authentication.

On 23 July 2012 17:14, Kevin Dell <kevin.dell <at> iqual.co.uk> wrote:
>
>
> So I want to remove the Left hand column from window, but I’m a little
> unsure how, I don’t want to start picking the cgi apart.
>
> Is there a best practice for re-configuring the results pages and menus, or
> removing the menu altogether?
>

You'll probably want to have a play around with basepage.html (look in
the htdocs directory).
Removing the menu is trivial, just look for <##menu##> and remove that.
To remove the entire left-hand panel, just remove the associated
<table> section, however if you do that you should find somewhere else
to put the <##author##> and <##smokelogo##> sections.

eg. from http://oss.oetiker.ch/smokeping/doc/smokeping_install.en.html

"Edit the html template to your likings. Please do not remove the link
to the SmokePing counter and my name from the template. The content of
the template will be renderd by the smokeping.cgi. This means that all
embeded links must be relative to smokeping.cgi."

hope this helps,
Darren

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Gmane