if ( isset( $_SERVER['REQUEST_METHOD'] ) )
{
// this script is not meant to be accessed via the web!
// note: ezscript class later does the same check, but after intializing a lot of stuff
die();
}
// try to move to eZ Publish root dir if called in different dirs
if ( !file_exists( getcwd() . '/autoload.php' ) )
{
$dir = dirname( __FILE__ );
chdir( $dir . '/ezpublish_root' );
}
Principal Consultant International Business
Member of the Community Project Board