|
After a couple of tries. This is what i've come up with. Let me know what you think. This does what I need it to do. Only shows extensions with a security of 0 if you are not logged in, and shows extensions up to your security level if you are logged in.
added to routers2.cgi at +/- 1162, 1500, and 1522 (the 3 stops searching for Extensions)
( $security, $desc, $url, $icon, $targ ) = quotewords('\s+',0,$arg);
next if ($config{'routers.cgi-securitylevel'} <= $security);
The $security was added before the $desc as not to play with $targ see below. of course -> my ($security) = '0';<- was added to the top of the script.
routers.cgi*Extension[acsrtr1_to2_0]: 3 "Show current interface status" /mrtg/cgi/ifstatus.cgi camera2-sm.gif
A security number of 0 will show all the time.
Then to routers.conf
[user-admin]
archive = yes
routingtableurl = /mrtg/cgi/routingtable.cgi
securitylevel = 5
|