[ previous ] [ next ] [ threads ]
 
 From:  "Jonathan De Graeve" <Jonathan dot DeGraeve at imelda dot be>
 To:  "sil" <silverjp1 at gazeta dot pl>, <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  RE: [m0n0wall-dev] fix for system_do_extensions() in system.inc
 Date:  Fri, 8 Sep 2006 23:55:14 +0200
Ah, now I get it :)

I must have missed something in your first mail. But then again, I'm
already working for more then 20hours on migrations...

J.

--
Jonathan De Graeve
Network/System Engineer
Imelda vzw
Informatica Dienst
015/50.52.98
Jonathan dot de dot graeve at imelda dot be 
> -----Oorspronkelijk bericht-----
> Van: sil [mailto:silverjp1 at gazeta dot pl]
> Verzonden: vrijdag 8 september 2006 23:41
> Aan: m0n0wall dash dev at lists dot m0n0 dot ch
> Onderwerp: Re: [m0n0wall-dev] fix for system_do_extensions() in
system.inc
> 
> > if (=1
> > !is_dir(=2' "{$g['etc_path']}/inc/ext")=2'
> > || is_dir(=3"{$g['www_path']}/ext")=3'
> >
> >
> >
> >
> > )=1'
> 
> 
> you say
> if
> (=1
>   !is_dir(=2' "{$g['etc_path']}/inc/ext")=2'
>   || is_dir(=3"{$g['www_path']}/ext")=3'
> )=1
> return;
> with this if condition as long there is an ext dir in the www root all
the
> rest of the function is skipped.
> 
> I say
> if
> (=1
>   !
>    (=2
>    is_dir (=3 "{$g['etc_path']}/inc/ext")=3
>    ||
>    is_dir(=4 "{$g['www_path']}/ext")=4
>    )=2
> =1)
> return;
> 
> You want to return from the function in the case there are no /inc/ext
and
> /ext,
> so you could have an extension that have only an rc part or only a web
> part or both rc and web.
> If you prefer you could write ( !isdir && !isdir )
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash dev dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash dev dash help at lists dot m0n0 dot ch
> 
>