You can subscribe to this list here.
| 2001 |
Jan
(13) |
Feb
(24) |
Mar
(23) |
Apr
(11) |
May
(18) |
Jun
(90) |
Jul
(29) |
Aug
(26) |
Sep
(37) |
Oct
(10) |
Nov
(31) |
Dec
(11) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(45) |
Feb
(18) |
Mar
(12) |
Apr
(7) |
May
(10) |
Jun
(62) |
Jul
(8) |
Aug
(40) |
Sep
(41) |
Oct
(43) |
Nov
(29) |
Dec
(36) |
| 2003 |
Jan
(25) |
Feb
(9) |
Mar
(11) |
Apr
(13) |
May
(19) |
Jun
(19) |
Jul
(11) |
Aug
(4) |
Sep
(109) |
Oct
(73) |
Nov
(69) |
Dec
(21) |
| 2004 |
Jan
(21) |
Feb
(33) |
Mar
(31) |
Apr
(25) |
May
(33) |
Jun
(42) |
Jul
(47) |
Aug
(12) |
Sep
(41) |
Oct
(47) |
Nov
(30) |
Dec
(19) |
| 2005 |
Jan
(6) |
Feb
(23) |
Mar
(21) |
Apr
(26) |
May
(21) |
Jun
(16) |
Jul
(17) |
Aug
(7) |
Sep
(8) |
Oct
(13) |
Nov
(7) |
Dec
(10) |
| 2006 |
Jan
(10) |
Feb
(3) |
Mar
|
Apr
(2) |
May
|
Jun
(3) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(4) |
| 2007 |
Jan
(2) |
Feb
(3) |
Mar
(2) |
Apr
|
May
(1) |
Jun
(6) |
Jul
(6) |
Aug
(8) |
Sep
(3) |
Oct
(21) |
Nov
(4) |
Dec
(6) |
| 2008 |
Jan
(11) |
Feb
(28) |
Mar
(26) |
Apr
(9) |
May
(2) |
Jun
(10) |
Jul
(1) |
Aug
(20) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
(4) |
Feb
(10) |
Mar
(1) |
Apr
(24) |
May
(22) |
Jun
(18) |
Jul
(15) |
Aug
(21) |
Sep
(4) |
Oct
(7) |
Nov
(6) |
Dec
|
| 2010 |
Jan
|
Feb
(2) |
Mar
(13) |
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
(4) |
Sep
(6) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2011 |
Jan
(18) |
Feb
(2) |
Mar
(23) |
Apr
(4) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
|
Nov
(5) |
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(31) |
Apr
(3) |
May
|
Jun
(2) |
Jul
(6) |
Aug
|
Sep
|
Oct
(4) |
Nov
|
Dec
(7) |
| 2014 |
Jan
|
Feb
(1) |
Mar
(9) |
Apr
(4) |
May
(7) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(4) |
Dec
|
| 2016 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
(7) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Jamie C. <jca...@we...> - 2003-06-29 01:01:19
|
gehrigal dot net - Webminprojects wrote: > Hi All > > Is there anywhere a full discription of the webminfunction > "get_available_module_infos" ? > > I need the complete syntax... > Whats the structure of the return?... > > Thanks a lot? It's documented at http://www.webmin.com/modules.html, along with the rest of the standard functions. Basically, it returns an array of hash references, in which each hash contains the details of a module that the current user has access to. The fields in the hash are the same as those in each module.info file, but with some modifications (such as the 'desc' value being set based on the current language). - Jamie |
|
From: <ve...@gm...> - 2003-06-28 14:32:35
|
> Hi All > > Is there anywhere a full discription of the webminfunction > "get_available_module_infos" ? > > I need the complete syntax... > Whats the structure of the return?... > > Thanks a lot? > > Bye > > > Alexander hi, you can find all defined functions in the /usr/libex/webmin/web-lib.pl the one you are looking for is at the bottom wlad -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! |
|
From: gehrigal d. n. - W. <we...@ge...> - 2003-06-28 14:05:06
|
Hi All Is there anywhere a full discription of the webminfunction "get_available_module_infos" ? I need the complete syntax... Whats the structure of the return?... Thanks a lot? Bye Alexander |
|
From: <we...@kg...> - 2003-06-25 09:37:11
|
Perfect, thanks Jamie. Once I've tested my module a bit more I'll upload to the third party modules site, unless of course you want a preview to pass comment? Regards, Kevin Golding |
|
From: Jamie C. <jca...@we...> - 2003-06-24 23:01:08
|
Kevin Golding wrote: > I'm trying to finish my first webmin module but I can't get my perl script > to provide unbuffered output even though I have $|=1 at the start of the > script. Could anybody provide some pointers please? You should also try setting $theme_no_table = 1; before calling the header() function, to prevent the default theme from surrounding all other text on the page with a big table. In many browsers this will hide everything until the page is complete, as partial tables do not get rendered. - Jamie |
|
From: <we...@kg...> - 2003-06-24 16:16:13
|
I'm trying to finish my first webmin module but I can't get my perl script to provide unbuffered output even though I have $|=1 at the start of the script. Could anybody provide some pointers please? Regards, Kevin Golding |
|
From: Jamie C. <jca...@we...> - 2003-06-24 12:46:58
|
On Tue, 2003-06-24 at 20:50, ve...@gm... wrote: > > What does the code in your CGI that uses this Select package look like? > > > > The problem may be that STDOUT for webmin CGI scripts is not actually > > directly connected to the network, but instead is tied to a special perl > > package (miniserv) that interprets HTTP headers before actually sending > > them back to the web browser. > > > > - Jamie > > hm, yes, i think that could be the problem, because for irc a direct a dirct > connection is needed. > i pase the important code. > > [code deleted ..] Try taking out the $sel->add(STDIN); line, since it doesn't seem useful in this case, and is probably causing the problem. - Jamie |
|
From: <ve...@gm...> - 2003-06-24 10:51:11
|
> What does the code in your CGI that uses this Select package look like?
>
> The problem may be that STDOUT for webmin CGI scripts is not actually
> directly connected to the network, but instead is tied to a special perl
> package (miniserv) that interprets HTTP headers before actually sending
> them back to the web browser.
>
> - Jamie
hm, yes, i think that could be the problem, because for irc a direct a dirct
connection is needed.
i pase the important code.
thanks
This is a iframe, which is called from a normal webmin page.
#!/usr/bin/perl
require './admirc-lib.pl';
&ReadParse();
&header();
[a lot of variables]
use IO::Socket::INET;
use IO::Select;
use Term::ANSIColor;
# main prog
$| = 1;
&c($servercolor);
$data .= "*** ";
&c('bold red');
$data .= "x.pl v$version";
&c($servercolor);
$data .= " connecting to server $server on port $port\n";
$sock = new IO::Socket::INET->new(PeerAddr => $server,
PeerPort => $port,
Proto => 'tcp');
$sel = new IO::Select->new();
$sel->add($sock);
$sel->add($cmd);
$sel->add(STDIN);
die "*E* Could not Connect to '$server' on port $port.\n" unless $sock;
$username = $ENV{'USERNAME'} || $nick;
$data .= "$sock \"USER $username 0 * :$realname\n\"";
$data .= "$sock \"NICK $nick\n\"";
while(@ready){# = $sel->can_read) {
&c('reset');
foreach $fh (@ready) {
if ($fh == $sock) {
sysread($sock,$buf,4096);
die("*** connection to server lost, sorry :P\n") unless $buf;
@bufs = split(/\n/,$buf);
foreach (@bufs) {
&c($servercolor);
&parse_serverline($_);
&c($textcolor);
}
}
if($fh == STDIN) {
&c($servercolor);
$buf = <STDIN>;
&parse_userline($buf);
&c($textcolor);
}
if($fh eq $command) {
&c($servercolor);
$buf = $command;
&parse_commandline($buf);
&c($textcolor);
}
}
&c($incolor);
}
&c('reset');
[build html]
[more sub funktions]
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
|
|
From: Jamie C. <jca...@we...> - 2003-06-23 23:02:26
|
What does the code in your CGI that uses this Select package look like? The problem may be that STDOUT for webmin CGI scripts is not actually directly connected to the network, but instead is tied to a special perl package (miniserv) that interprets HTTP headers before actually sending them back to the web browser. - Jamie On Mon, 2003-06-23 at 23:43, ve...@gm... wrote: > hi, >=20 >=20 > i wanted to write a irc client to login into the unreal ircd server, but = i > get this error. > i think that the ministerv.pl does not know the package Select, is that > right? >=20 > HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Sat, 21 Ju= n > 2003 19:52:04 GMT Content-type: text/html Connection: close=20 > Error - Perl execution failed > Can't locate object method "FILENO" via package "miniserv" at > /usr/lib/perl5/5.8.0/i386-linux-thread-multi/IO/Select.pm line 61. >=20 > thanks > wlad >=20 > --=20 > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > Bitte l=E4cheln! Fotogalerie online mit GMX ohne eigene Homepage! >=20 >=20 >=20 > --=20 > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > Bitte l=E4cheln! Fotogalerie online mit GMX ohne eigene Homepage! >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > - > Forwarded by the Webmin development list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-devel |
|
From: <ve...@gm...> - 2003-06-23 13:50:51
|
hi, i wanted to write a irc client to login into the unreal ircd server, but i get this error. i think that the ministerv.pl does not know the package Select, is that right? HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Sat, 21 Jun 2003 19:52:04 GMT Content-type: text/html Connection: close Error - Perl execution failed Can't locate object method "FILENO" via package "miniserv" at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/IO/Select.pm line 61. thanks wlad -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! |
|
From: Larry G. <Li...@IS...> - 2003-06-11 15:56:22
|
> Squidguard is, unfortunately, rather obtuse about error > messages. Trial and error is often the only way to figure out > problems. Another unfortunate thing is that Squidguard has been > unmaintained for quite some time. Makes using it difficult to use for some of my larger customers. I would like consistency among multiple customers for support reasons. I have not delved into the proxy/cache area that much as it is so difficult for most customers to understand, like most infrastructure development. But since the deluge of spam, content filtering/blocking is being understood more. Well, I would rather just buy one of your appliances than recreate the wheel! :) > Squid's recent ACL changes (splay trees for the ACL lists) make it > entirely feasible to do all of the 'blacklist' uses of > SquidGuard within Squid proper at similar performance (also worth > noting is that Squid also has time ACLs in addition to user and > pretty much anything else--so the same kinds of complex access > controls can be implemented too), so in the long run it is likely > easier to enhance the Squid module to support those kinds of > features more cleanly... Thanks for letting me know. I am still fairly ignorant about Squid configuration. I would like to add blacklists like squidGuard and use the time ACLs too. I did not readily see how to do this via Webmin. Making Webmin a focal point for administration is what allows me to introduce Linux/open source solutions into primarily MS shops. Thanks, Larry |
|
From: Joe C. <jo...@sw...> - 2003-06-11 05:41:25
|
Larry Gilson wrote: > I thought I would let you know that I figure this out finally. I don't know > if you care or not since this is not your module but I always think it rude > not to follow-up. > > At the command line, one can issue the squidGuard command to create a > database from a text file. The text file does not need to be identified as > a destination group in the squidguard.conf file. However, when issuing the > command via Webmin/miniserv, the entry/destination group needs to be in the > squidguard.conf file. The squidGuard binary did not return any errors and > the only way I found this was by trial and error. It is reproducable. All > I had to do is move the &rebuild_db($filename) subroutine call below > &flush_file_lines() so the db creation request is performed after the conf > file is updated. > > If you have any ideas why this might happen I would love to hear it. I just > can not figure out why this works the way it does. Then again, my brain is > thoroughly fried now anyway. Squidguard is, unfortunately, rather obtuse about error messages. Trial and error is often the only way to figure out problems. Another unfortunate thing is that Squidguard has been unmaintained for quite some time. Squid's recent ACL changes (splay trees for the ACL lists) make it entirely feasible to do all of the 'blacklist' uses of SquidGuard within Squid proper at similar performance (also worth noting is that Squid also has time ACLs in addition to user and pretty much anything else--so the same kinds of complex access controls can be implemented too), so in the long run it is likely easier to enhance the Squid module to support those kinds of features more cleanly... -- Joe Cooper <jo...@sw...> Web caching appliances and support. http://www.swelltech.com |
|
From: Jamie C. <jca...@we...> - 2003-06-10 23:15:20
|
An environment variable definately could be the cause..
You can see variables that are set by miniserv by looking at the env_
lines in /etc/webmin/miniserv.conf , and you may want to try adding
some of those that you have set at the command line.
Also, I presume that when you run squidguard manually it is as root?
The program might be failing when webmin runs it as root for some
reason ..
- Jamie
Larry Gilson wrote:
> Thanks Jamie, I did try that too and there were no errors to report. I
> feel like you were probably on the right track suggesting the inclusion of a
> full path . . . Is it possible that the squidGuard binary requires an
> environment variable that the miniserve configuration is not providing? I
> can only think, at this point, that the difference between a terminal
> session and Webmin/miniserv is environment related. Where do I find the
> environment settings for miniserv? Also, is it possible that if I need an
> environment variable set that I can localize it just for this subroutine?
>
> Thanks Jamie!
>
> --Larry
>
>
>
>>-----Original Message-----
>>From: Jamie Cameron
>>
>>You should display the return value from backquote_logged,
>>which is the output from the program - it may contain some error
>>message explaining what went wrong. Also, check the exit status in
>>the $? variable, which if non-zero indicates failure.
>>
>> - Jamie
>>
>>Larry Gilson <Li...@IS...> wrote ..
>>
>>>Jamie,
>>>
>>>Thanks for the reply!
>>>
>>>
>>>>This may be a path problem - make sure that whatever is in
>>>>$bin is a full path like '/usr/local/bin/foo' instead of
>>>>just 'foo', which may not be in webmin's program search path.
>>>>
>>>> - Jamie
>>>
>>>
>>>&backquote_logged("$bin -C $_[0] 2>&1 </dev/null");
>>>
>>>Both $bin and $_[0] are absolute paths. I can cat the file that
>>>the above command was echoed into, copy and paste at the command
>>>line, execute, and obtain a successful db file. The result is:
>>>
>>>/usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/domains
>>>/usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/urls
>>>
>>>Just for kicks, I modified the &get_binary_path() so the binary is
>>>found rather than the symlink. Still nothing. Permissions seem
>>>to be correct, execute is allowed. I just don't get it. It
>>>should work. Any other suggestions?
>>>
>>>Thanks,
>>>Larry
|
|
From: Larry G. <Li...@IS...> - 2003-06-10 18:43:16
|
I thought I would let you know that I figure this out finally. I don't know if you care or not since this is not your module but I always think it rude not to follow-up. At the command line, one can issue the squidGuard command to create a database from a text file. The text file does not need to be identified as a destination group in the squidguard.conf file. However, when issuing the command via Webmin/miniserv, the entry/destination group needs to be in the squidguard.conf file. The squidGuard binary did not return any errors and the only way I found this was by trial and error. It is reproducable. All I had to do is move the &rebuild_db($filename) subroutine call below &flush_file_lines() so the db creation request is performed after the conf file is updated. If you have any ideas why this might happen I would love to hear it. I just can not figure out why this works the way it does. Then again, my brain is thoroughly fried now anyway. Thanks for your help on this and thanks for Webmin! --Larry > -----Original Message----- > From: Jamie Cameron > > You should display the return value from backquote_logged, > which is the output > from the program - it may contain some error message > explaining what went > wrong. Also, check the exit status in the $? variable, which > if non-zero > indicates failure. > > - Jamie > |
|
From: Larry G. <Li...@IS...> - 2003-06-10 13:25:55
|
Thanks Jamie, I did try that too and there were no errors to report. I
feel like you were probably on the right track suggesting the inclusion of a
full path . . . Is it possible that the squidGuard binary requires an
environment variable that the miniserve configuration is not providing? I
can only think, at this point, that the difference between a terminal
session and Webmin/miniserv is environment related. Where do I find the
environment settings for miniserv? Also, is it possible that if I need an
environment variable set that I can localize it just for this subroutine?
Thanks Jamie!
--Larry
> -----Original Message-----
> From: Jamie Cameron
>
> You should display the return value from backquote_logged,
> which is the output from the program - it may contain some error
> message explaining what went wrong. Also, check the exit status in
> the $? variable, which if non-zero indicates failure.
>
> - Jamie
>
> Larry Gilson <Li...@IS...> wrote ..
> > Jamie,
> >
> > Thanks for the reply!
> >
> > > This may be a path problem - make sure that whatever is in
> > > $bin is a full path like '/usr/local/bin/foo' instead of
> > > just 'foo', which may not be in webmin's program search path.
> > >
> > > - Jamie
> >
> >
> > &backquote_logged("$bin -C $_[0] 2>&1 </dev/null");
> >
> > Both $bin and $_[0] are absolute paths. I can cat the file that
> > the above command was echoed into, copy and paste at the command
> > line, execute, and obtain a successful db file. The result is:
> >
> > /usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/domains
> > /usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/urls
> >
> > Just for kicks, I modified the &get_binary_path() so the binary is
> > found rather than the symlink. Still nothing. Permissions seem
> > to be correct, execute is allowed. I just don't get it. It
> > should work. Any other suggestions?
> >
> > Thanks,
> > Larry
|
|
From: Jamie C. <jca...@we...> - 2003-06-10 03:57:08
|
You should display the return value from backquote_logged, which is the output
from the program - it may contain some error message explaining what went
wrong. Also, check the exit status in the $? variable, which if non-zero
indicates failure.
- Jamie
Larry Gilson <Li...@IS...> wrote ..
> Jamie,
>
> Thanks for the reply!
>
> > This may be a path problem - make sure that whatever is in
> > $bin is a full path like '/usr/local/bin/foo' instead of just 'foo',
> > which may not be in webmin's program search path.
> >
> > - Jamie
>
>
> &backquote_logged("$bin -C $_[0] 2>&1 </dev/null");
>
> Both $bin and $_[0] are absolute paths. I can cat the file that
> the above command was echoed into, copy and paste at the command
> line, execute, and obtain a successful db file. The result is:
>
> /usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/domains
> /usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/urls
>
> Just for kicks, I modified the &get_binary_path() so the binary is
> found rather than the symlink. Still nothing. Permissions seem to
> be correct, execute is allowed. I just don't get it. It should work.
> Any other suggestions?
>
> Thanks,
> Larry
>
>
>
>
>
> =========================================
> Previous post --
>
>
> > I hope I am posting this question to the correct list! I have been
> > trying to work on a couple of problems I am having with the squidguard
> > (third party) module. I have resolved all but one problem. Creating
> > the blacklist db files. Below is the subroutine from squidguard-lib.pl
> > which is called from enable_blacklist.cgi to create a new db file from
> > the blacklist. For some reason I just can't create the db file if
> > executed from the enable CGI script via miniserv. However, if I
> > simulate the subroutine via a Perl script from the command line, it
> > works. You will be able to see that I have echoed the command to a
> > text file just to make sure variables are being passed correctly,
> > which they are.
> >
> > #----------------------------
> > # squidguard-lib.pl
> > # rebuild_db($file)
> > # Rebuild the dbfile $file with squidguard -C
> > sub rebuild_db {
> > my $bin = &get_binary_path();
> > &terror('lib_nobin') if (! -x $bin);
> >
> > if (-e $_[0]) {
> > `echo "$bin -C $_[0]" > /var/lib/squidguard/blacklists/ads/xxx.txt`;
> > &backquote_logged("$bin -C $_[0] 2>&1 </dev/null");
> > &webmin_log('rebuild', 'dbfile', $_[0]);
> > &sgchown($_[0]);
> > &sgchown("$_[0].db");
> > }
> >
> > if (! -e $_[0]) {
> > `echo "$bin -C $_[0]" > /var/lib/squidguard/blacklists/ads/yyy.txt`;
> > }
> >
> > &reload_squid();
> > }
> > #----------------------------
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> -
> Forwarded by the Webmin development list at web...@we...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
|
|
From: Larry G. <Li...@IS...> - 2003-06-10 01:57:48
|
Jamie,
Thanks for the reply!
> This may be a path problem - make sure that whatever is in
> $bin is a full path like '/usr/local/bin/foo' instead of just 'foo',
> which may not be in webmin's program search path.
>
> - Jamie
&backquote_logged("$bin -C $_[0] 2>&1 </dev/null");
Both $bin and $_[0] are absolute paths. I can cat the file that
the above command was echoed into, copy and paste at the command
line, execute, and obtain a successful db file. The result is:
/usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/domains
/usr/bin/squidGuard -C /var/lib/squidguard/blacklists/ads/urls
Just for kicks, I modified the &get_binary_path() so the binary is
found rather than the symlink. Still nothing. Permissions seem to
be correct, execute is allowed. I just don't get it. It should work.
Any other suggestions?
Thanks,
Larry
=========================================
Previous post --
> I hope I am posting this question to the correct list! I have been
> trying to work on a couple of problems I am having with the squidguard
> (third party) module. I have resolved all but one problem. Creating
> the blacklist db files. Below is the subroutine from squidguard-lib.pl
> which is called from enable_blacklist.cgi to create a new db file from
> the blacklist. For some reason I just can't create the db file if
> executed from the enable CGI script via miniserv. However, if I
> simulate the subroutine via a Perl script from the command line, it
> works. You will be able to see that I have echoed the command to a
> text file just to make sure variables are being passed correctly,
> which they are.
>
> #----------------------------
> # squidguard-lib.pl
> # rebuild_db($file)
> # Rebuild the dbfile $file with squidguard -C
> sub rebuild_db {
> my $bin = &get_binary_path();
> &terror('lib_nobin') if (! -x $bin);
>
> if (-e $_[0]) {
> `echo "$bin -C $_[0]" > /var/lib/squidguard/blacklists/ads/xxx.txt`;
> &backquote_logged("$bin -C $_[0] 2>&1 </dev/null");
> &webmin_log('rebuild', 'dbfile', $_[0]);
> &sgchown($_[0]);
> &sgchown("$_[0].db");
> }
>
> if (! -e $_[0]) {
> `echo "$bin -C $_[0]" > /var/lib/squidguard/blacklists/ads/yyy.txt`;
> }
>
> &reload_squid();
> }
> #----------------------------
|
|
From: Jamie C. <jca...@we...> - 2003-06-10 01:25:27
|
Larry Gilson <Li...@IS...> wrote ..
> Hi,
>
> I hope I am posting this question to the correct list! I have been trying
> to work on a couple of problems I am having with the squidguard (third
> party) module. I have resolved all but one problem. Creating the blacklist
> db files. Below is the subroutine from squidguard-lib.pl which is called
> from enable_blacklist.cgi to create a new db file from the blacklist.
> For
> some reason I just can't create the db file if executed from the enable
> CGI
> script via miniserv. However, if I simulate the subroutine via a Perl
> script from the command line, it works. You will be able to see that I
> have
> echoed the command to a text file just to make sure variables are being
> passed correctly, which they are.
>
> #----------------------------
> # squidguard-lib.pl
> # rebuild_db($file)
> # Rebuild the dbfile $file with squidguard -C
> sub rebuild_db {
> my $bin = &get_binary_path();
> &terror('lib_nobin') if (! -x $bin);
>
> if (-e $_[0]) {
> `echo "$bin -C $_[0]" > /var/lib/squidguard/blacklists/ads/xxx.txt`;
> &backquote_logged("$bin -C $_[0] 2>&1 </dev/null");
> &webmin_log('rebuild', 'dbfile', $_[0]);
> &sgchown($_[0]);
> &sgchown("$_[0].db");
> }
>
> if (! -e $_[0]) {
> `echo "$bin -C $_[0]" > /var/lib/squidguard/blacklists/ads/yyy.txt`;
> }
>
> &reload_squid();
> }
> #----------------------------
>
> I am just getting burnt-out on this one. Anyone have any ideas why I can
> make this work via the Perl script/command line but not via CGI/miniserv?
This may be a path problem - make sure that whatever is in $bin is a full
path like '/usr/local/bin/foo' instead of just 'foo', which may not be in
webmin's program search path.
- Jamie
|
|
From: Larry G. <Li...@IS...> - 2003-06-09 01:39:08
|
Hi,
I hope I am posting this question to the correct list! I have been trying
to work on a couple of problems I am having with the squidguard (third
party) module. I have resolved all but one problem. Creating the blacklist
db files. Below is the subroutine from squidguard-lib.pl which is called
from enable_blacklist.cgi to create a new db file from the blacklist. For
some reason I just can't create the db file if executed from the enable CGI
script via miniserv. However, if I simulate the subroutine via a Perl
script from the command line, it works. You will be able to see that I have
echoed the command to a text file just to make sure variables are being
passed correctly, which they are.
#----------------------------
# squidguard-lib.pl
# rebuild_db($file)
# Rebuild the dbfile $file with squidguard -C
sub rebuild_db {
my $bin = &get_binary_path();
&terror('lib_nobin') if (! -x $bin);
if (-e $_[0]) {
`echo "$bin -C $_[0]" > /var/lib/squidguard/blacklists/ads/xxx.txt`;
&backquote_logged("$bin -C $_[0] 2>&1 </dev/null");
&webmin_log('rebuild', 'dbfile', $_[0]);
&sgchown($_[0]);
&sgchown("$_[0].db");
}
if (! -e $_[0]) {
`echo "$bin -C $_[0]" > /var/lib/squidguard/blacklists/ads/yyy.txt`;
}
&reload_squid();
}
#----------------------------
I am just getting burnt-out on this one. Anyone have any ideas why I can
make this work via the Perl script/command line but not via CGI/miniserv?
Thanks for any help!
--
Larry Gilson
|
|
From: Keith C. <cas...@ya...> - 2003-05-29 13:07:10
|
Just as a side note...
Could we make sure that tbings are xhtml compliant? I don't mean going
back through all the old code, but making any new contributions compliant
would be helpful for anyone who is building/considering parsers (me).
1) make sure attributes like class and header have either single or double
quotes around them
2) close all tages that are opened... most people are sloppy about "p","img",
and "br" tags to name a few
Thanks,
keith
--- Jamie Cameron <jca...@we...> wrote:
> On Thu, 2003-05-29 at 06:43, Sandro Dentella wrote:
> > print "<table class=header width=100%><tr>\n";
>
> That is quite a good idea, as it would allow the creation of themes that
> effect the standard header just by defining their own pre- and post-
> header HTML, rather than overriding the whole Perl function.
>
> I'll put this class in, along with any others that you can suggest for
> the header and footer.
>
> - Jamie
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
|
|
From: Jamie C. <jca...@we...> - 2003-05-29 02:48:55
|
On Thu, 2003-05-29 at 06:43, Sandro Dentella wrote:
> Playing around with look & themes I needed to add a class=header in the
> table of the 'header' function, could it be possible to have it in the main
> release too? it will not impact on anything adding a bit of new possibilities.
>
>
> if (defined(&theme_prebody)) {
> &theme_prebody(@_);
> }
> if (@_ > 1) {
> print "<table class=header width=100%><tr>\n";
> ^^^^^^^^^^^
> if ($gconfig{'sysinfo'} == 2 && $remote_user) {
>
>
> For the curious ones, the result, using gehroghal theme configurator is here:
> http://www.e-den.it/files/webmin.png
That is quite a good idea, as it would allow the creation of themes that
effect the standard header just by defining their own pre- and post-
header HTML, rather than overriding the whole Perl function.
I'll put this class in, along with any others that you can suggest for
the header and footer.
- Jamie
|
|
From: Sandro D. <san...@ti...> - 2003-05-28 20:43:56
|
Playing around with look & themes I needed to add a class=header in the
table of the 'header' function, could it be possible to have it in the main
release too? it will not impact on anything adding a bit of new possibilities.
if (defined(&theme_prebody)) {
&theme_prebody(@_);
}
if (@_ > 1) {
print "<table class=header width=100%><tr>\n";
^^^^^^^^^^^
if ($gconfig{'sysinfo'} == 2 && $remote_user) {
For the curious ones, the result, using gehroghal theme configurator is here:
http://www.e-den.it/files/webmin.png
thanks in advance
sandro
*:-)
--
Sandro Dentella *:-)
e-mail: san...@ti...
http://www.tksql.org TkSQL Home page - My GPL work
|
|
From: Jamie C. <jca...@we...> - 2003-05-26 00:34:19
|
ve...@gm... wrote: > hi there, > > if you noticed i have posted a message to the usual webmin list that im > writing a ircd server. > At this point im so far with developement that i think im going to > upload the first alpha release in some days. with this release > the user will be able to configure the whole unrealircd.conf config file. > i do not want to do things twice, so i just wanted to say that no one > needs to start to write a ircd module... > > another question: i'm really interested in some statistics e.g. how > many ppl actually use webmin or do download the releases, > it would be also interesting to know how many ppl have > subscribed to this dev list and to other lists, too. > > webmin is of cource not the only one linux administrating tool, > the oter polular tool is linuxconf, but its not as nice as webmin ;) > > and the most interesting thing is why does noone has written a > ircd module, yet? > i saw that some ppl on the regular list are interested, but > is it really neceserry? I can answer a few of these questions for you - there are about 1400 people on the main webmin-l mailing list, and 230 on webmin-devel and 1160 on webmin-announce. As for downloads, there are about 4000 per day - more when a release has just come out, but less at other times. - Jamie |
|
From: Jamie C. <jca...@we...> - 2003-05-25 23:25:26
|
For a few versions now, webmin has used the cache file /etc/webmin/module.infos.cache to store details of all installed modules. If you add one manually (by just creating a subdirectory) or change its module.info file, this cache will not be automatically refreshed and so your module won't appear properly. The solution is to just delete that module.infos.cache file after you make any of these changes, and it will be re-generated automatically. Of course, this is not needed when installing a module from a .wbm file, because the cache gets automatically flushed. Only module developers will run into this problem .. - Jamie konan wrote: > Hi Everybody! > I hope you'll find some time to read this letter. > I'm writing a web interface for wget-command. > The problem is that i can;t insert my module into Webmin in the > ordinary way. > > I have module.info containing: > name=webget > category=system or webmin (no effect) > depends=1.070 > version=1.070 > desc=some desc > > and also images/icon.gif > > i also edited /etc/webmin/webmin.acl - added there my module name in > order to access it > > After all of that - I couldnt find my icon at any tab. > So how did i solve that problem: > in webmin-1.070/ > at > ... > webget > 1) mv at at2 > 2) mv webget at > > Then refresh Webmin - and my Icon Appears!!!! > then > 1) mv at webget > 2) mv at2 at > And my icon is still on tab under webmin category > But NOTICE THAT: > when i change category from webmin to system for inst. > icon.gif is left at Webmin category anyway - what't the bug??? > It just says that module.info is not read for the second time!!! > > Thank you for your answer in advance!!! |
|
From: konan <so...@ra...> - 2003-05-25 22:13:39
|
Hi Everybody!
I hope you'll find some time to read this letter.
I'm writing a web interface for wget-command.
The problem is that i can;t insert my module into Webmin in the
ordinary way.
I have module.info containing:
name=webget
category=system or webmin (no effect)
depends=1.070
version=1.070
desc=some desc
and also images/icon.gif
i also edited /etc/webmin/webmin.acl - added there my module name in
order to access it
After all of that - I couldnt find my icon at any tab.
So how did i solve that problem:
in webmin-1.070/
at
...
webget
1) mv at at2
2) mv webget at
Then refresh Webmin - and my Icon Appears!!!!
then
1) mv at webget
2) mv at2 at
And my icon is still on tab under webmin category
But NOTICE THAT:
when i change category from webmin to system for inst.
icon.gif is left at Webmin category anyway - what't the bug???
It just says that module.info is not read for the second time!!!
Thank you for your answer in advance!!!
___________________
Посмотрел "Матрицу-2" - не понравилось, зато поднял 40% на акциях РАО ЕЭС:
http://www.rambler.ru/nettrader/
|