From: Joe C. <jo...@sw...> - 2001-07-17 06:11:44
|
Yes, the $text trick is how localization is achieved. I learned a lot from the Squid module, but I chose it to learn from just because I know the Squid configuration file and stuff so well that the purpose of everything was immediately apparent. The Apache module is probably the most impressive piece of code in Webmin (IMHO), but it's too clever for my modest Perl abilities. For simple, try 'time', perhaps? It looks pretty simple from my perspective. Isn't there already an ipfw module out there? Maybe I misremember. Anyway, Tim's IPChains module is a very nicely implemented firewall module, which might be worth checking out for ideas (and maybe even bits of code--it's GPL so you can borrow from it). Bek Oberin wrote: > Bek Oberin wrote: > >>I'll head over to the devel list just as soon as I find the address >>for it. >> > > Oh look, I found it. G'day folks and non-folks. I'm new to webmin > but old to Perl, so hopefully I won't be asking ALL stupid questions. > > I'm only really here becasue a friend wanted a Webmin module to do > ipfw stuff for FreeBSD and offered me money to write it :) Had never > used webmin before and now I'm writing a module. Crash course in > going nuts! > > I don't quite get the whole %text thing, I traced it back to load_language > but should -every- string I output be output through $text{'string'} or > what? I looked at the ipf_admin module and that's what they seemed > to be doing. > > What's the -simplest- module you guys can cthink of that I should get > a look at so I can see how things work? > > > Thanks in advance, > bekj -- Joe Cooper <jo...@sw...> Affordable Web Caching Proxy Appliances http://www.swelltech.com |