Posted on: 11/18/02 12:57pm
By: Anonymous (jhoke)
Posted on: 11/18/02 01:25pm
By: Dirk
Well, you almost answered your own question :-)
You could simply add a check if the current user is in the Root group and make the function return the code unaltered:
function COM_killJS( $Message )
{
if( SEC_inGroup( 'Root' )))
{
return( $Message );
}
else
{
return( preg_replace( '/(\s)+[oO][nN](\w*) ?=/', '\1in\2=', $Message ));
}
}
bye, Dirk
Posted on: 11/18/02 01:36pm
By: Anonymous (jhoke)
function COM_killJS( $Message )
{
if( SEC_inGroup( 'Root' )) //extra ')' was here ...
{
return( $Message );
}
else
{
return( preg_replace( '/(\s)+[oO][nN](\w*) ?=/', '\1in\2=', $Message ));
}
}
Thanks again!
---
--John
http://www.slapd.net
http://john.hoke.org
Posted on: 11/18/02 02:53pm
By: Dirk