19,11 → 19,12 |
function GetUrlFromPath( $resourceType, $folderPath ) |
{ |
if ( $resourceType == '' ) |
return RemoveFromEnd( $GLOBALS["UserFilesPath"], '/' ) . $folderPath ; |
return RemoveFromEnd( $GLOBALS['UrlPrefix'].$GLOBALS["UserFilesPath"], '/' ) . $folderPath ; |
else |
return $GLOBALS["UserFilesPath"] . $resourceType . $folderPath ; |
return $GLOBALS['UrlPrefix'].$GLOBALS["UserFilesPath"] . $resourceType . $folderPath ; |
} |
|
|
function RemoveExtension( $fileName ) |
{ |
return substr( $fileName, 0, strrpos( $fileName, '.' ) ) ; |