| @@ 1021-1023 (lines=3) @@ | ||
| 1018 | ||
| 1019 | if ($entry["type"]==="dir") { |
|
| 1020 | $data.="d"; |
|
| 1021 | if ($file[strlen($file)-1]==='/') { |
|
| 1022 | $file=substr($file, 0, -1); |
|
| 1023 | } |
|
| 1024 | } else if ($entry["type"]==="shortcut") { |
|
| 1025 | $data.="l"; |
|
| 1026 | if ($file[strlen($file)-1]==='/') { |
|
| @@ 1026-1028 (lines=3) @@ | ||
| 1023 | } |
|
| 1024 | } else if ($entry["type"]==="shortcut") { |
|
| 1025 | $data.="l"; |
|
| 1026 | if ($file[strlen($file)-1]==='/') { |
|
| 1027 | $file=substr($file, 0, -1); |
|
| 1028 | } |
|
| 1029 | $file=$file." -> "; |
|
| 1030 | $file.=$entry["target"]; |
|
| 1031 | } else if ($entry["type"]==="template") { |
|
| @@ 44-46 (lines=3) @@ | ||
| 41 | $parentpaths = $targetob->parents($target, 'system.get.path.phtml', '', $root); |
|
| 42 | $path = array_pop($parentpaths); |
|
| 43 | ||
| 44 | if ( strpos( $path, $root ) === 0 ) { |
|
| 45 | $path = substr( $path, strlen($root)-1 ); |
|
| 46 | } |
|
| 47 | ||
| 48 | array_pop($parents); //remove current item from the list. |
|
| 49 | array_shift( $parents ); // remove site root from the list. |
|
| @@ 103-105 (lines=3) @@ | ||
| 100 | $parentpaths = $sourceob->parents($sourceob->path, 'system.get.path.phtml', '', $jail); |
|
| 101 | $path = array_pop($parentpaths); |
|
| 102 | ||
| 103 | if ( strpos( $path, $jail ) === 0 ) { |
|
| 104 | $path = substr( $path, strlen($jail)-1 ); |
|
| 105 | } |
|
| 106 | ||
| 107 | array_pop($parents); //remove current item from the list. |
|
| 108 | array_shift( $parents ); // remove site jail from the list. |
|