libs/helpers/SystemHelper.php
public static function relative($path)
    {
        // windows fix :/
        $path = str_replace('\\', '/', $path);

        // standard working directory
        if (strpos($path, WWW_DIR) !== false) {
            return str_replace(WWW_DIR, '', $path);
        }

        // symlink
        $pos = strpos($path, 'upload/');

        return substr($path, $pos - 1);
    }
public static function relative($path)
    {
        // windows fix :/
        $path = str_replace('\\', '/', $path);

        // standard working directory
        if (strpos($path, WWW_DIR) !== false) {
            return str_replace(WWW_DIR, '', $path);
        }

        // symlink
        $pos = strpos($path, 'upload/');

        return substr($path, $pos - 1);
    }
public static function relative ( $ path ) { // windows fix :/ $ path = str_replace ( '\\' , '/' , $ path ) ; // standard working directory if ( strpos ( $ path , WWW_DIR ) !== false ) { return str_replace ( WWW_DIR , '' , $ path ) ; } // symlink $ pos = strpos ( $ path , 'upload/' ) ; return substr ( $ path , $ pos - 1 ) ; }
Create relative path from an absolute path.
@param string $path absolute path
Create relative path from an absolute path .