From f32e7df86ae13cab50a2701907568d1023501c2d Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 2 Mar 2013 12:49:30 +0000 Subject: [PATCH] Only do DIV if location, tweak perms & slice fix We don't want to have the DIV tag as part of the nest, so tuck the start & end tags into the if $_GET location statements, so they only appear with get-branch and never get injected into the tree Instead of not showing perms span tags, show them with blank content Due to format changes, we need to change the slice range to 28 and -7 --- lib/get-branch.php | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/lib/get-branch.php b/lib/get-branch.php index 6ff0112..7167d4c 100644 --- a/lib/get-branch.php +++ b/lib/get-branch.php @@ -10,13 +10,12 @@ $lastPath=""; $fileCount=0; $fileBytes=0; $dirCount=0; -?> -
-'; $location = str_replace("|","/",$_GET['location']); } @@ -55,22 +54,19 @@ for ($i=0;$i\n"; } } - $fileAtts = ""; - if ($serverType=="Linux") { - $chmodInfo = substr(sprintf('%o', fileperms($docRoot.$iceRoot.$fileFolderName)), -3); - $fileAtts = ''.$chmodInfo.''; - } $type == "folder" ? $class = 'pft-directory' : $class = 'pft-file '.strtolower($ext); $loadParam = $type == "folder" ? "true" : "false"; - echo "
  •         ".basename($fileFolderName)." ".$fileAtts."\n"; + echo "
  •         ".basename($fileFolderName)." "; + echo ''; + echo $serverType=="Linux" ? substr(sprintf('%o', fileperms($docRoot.$iceRoot.$fileFolderName)), -3) : ''; + echo "\n"; if ($i\n";} $lastPath = $fileFolderName; } -?> -
  • - +