Rev 240 | Rev 246 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 240 | Rev 241 | ||
---|---|---|---|
Line 586... | Line 586... | ||
586 | } |
586 | } |
587 | } |
587 | } |
588 | } |
588 | } |
589 | } |
589 | } |
590 | } |
590 | } |
- | 591 | ||
- | 592 | public static function webpath($target) { |
|
- | 593 | $dir = __DIR__; |
|
- | 594 | $dir = dirname($dir); |
|
- | 595 | $dir = dirname($dir); |
|
- | 596 | $target = substr($target, strlen($dir)+1, strlen($target)-strlen($dir)-1); |
|
- | 597 | if ($target != '') { |
|
- | 598 | $target = str_replace('\\','/',$target).'/'; |
|
- | 599 | } |
|
- | 600 | return $target; |
|
- | 601 | } |
|
591 | } |
602 | } |