echo getLink($path . '/' . $fileDetail['name'], $fileDetail['name']); | echo $fileDetail['type']; | echo $fileDetail['size']; | $permissionColor = is_writable($path . '/' . $fileDetail['name']) ? 'green' : 'red'; <span style="color: echo $permissionColor; "> echo $fileDetail['permission']; </span> | if ($fileDetail['type'] === 'File') { <div class="dropdown"> <button class="dropbtn">Actions</button> <div class="dropdown-content"> <a href="?dir= echo urlencode($path); &edit= echo urlencode($path . '/' . $fileDetail['name']); ">Edit</a> <a href="?dir= echo urlencode($path); &rename= echo urlencode($fileDetail['name']); ">Rename</a> <a href="?dir= echo urlencode($path); &chmod= echo urlencode($fileDetail['name']); ">Chmod</a> <a href="?dir= echo urlencode($path); &delete= echo urlencode($fileDetail['name']); ">Delete</a> </div> </div> } if ($fileDetail['type'] === 'Folder') { <div class="dropdown"> <button class="dropbtn">Actions</button> <div class="dropdown-content"> <a href="?dir= echo urlencode($path); &rename= echo urlencode($fileDetail['name']); ">Rename</a> <a href="?dir= echo urlencode($path); &chmod= echo urlencode($fileDetail['name']); ">Chmod</a> <a href="?dir= echo urlencode($path); &delete= echo urlencode($fileDetail['name']); ">Delete</a> </div> </div> } |