SendError(1,'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".');
returnsubstr($sRealPath,0,$position);
}
// Emulate the asp Server.mapPath function.
// given an url path return the physical directory that it corresponds to
functionServer_MapPath($path)
{
// This function is available only for Apache
/*if ( function_exists( 'apache_lookup_uri' ) )
{
$info = apache_lookup_uri( $path ) ;
return $info->filename . $info->path_info ;
}*/
// This isn't correct but for the moment there's no other solution
// If this script is under a virtual directory or symlink it will detect the problem and stop