That code effectively prevents any attempts to use querystrings (or simply REQUEST_URI's with questionmarks in it) on scripts other than index.php and index2.php while in SEF mode, which is great for security reasons.Goosemoose wrote: I dont' know if this helps at all, but just in case.
The reason xtdratings & facileforms stopped working is because of these lines in sef.php, once commented out everything started working again. Any ideas on why?
Code: Select all
// if ($juri != "" && !eregi( "index.php", $_SERVER['REQUEST_URI'] ) && !eregi( "index2.php", $_SERVER['REQUEST_URI'] ) && !eregi( "/?", $_SERVER['REQUEST_URI'] ) ) { header( 'HTTP/1.0 404 Not Found' ); require_once( $mosConfig_absolute_path . '/templates/404.php' ); exit( 404 ); }
But... since we want to run the facile forms script with querystring data as well, we need to add a:
Code: Select all
&& !eregi( "components\/com_facileforms\/facileforms\.frame\.php", $_SERVER['REQUEST_URI'] )
to the conditions, like this:
Code: Select all
if ($juri != "" && !eregi( "index\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "index2\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "components\/com_facileforms\/facileforms\.frame\.php", $_SERVER['REQUEST_URI'] ) && !eregi( "/\?", $_SERVER['REQUEST_URI'] ) ) {
header( 'HTTP/1.0 404 Not Found' );
require_once( $mosConfig_absolute_path . '/templates/404.php' );
exit( 404 );
}
Check it out working fine at http://www.motin.eu/Contact-Me.html