+
+
+
+ |
+ ".utf8_convert($dir_entry['namet'])." |
+ ".utf8_convert($dir_entry['linkt'])." |
+
+
+ | ";
+ $dir_out[$dir_count][] = "".$dir_entry['p']." | ";
+ if (!$is_windows) {
+ $dir_out[$dir_count][] = "".$dir_entry['u']." | ";
+ $dir_out[$dir_count][] = "".$dir_entry['g']." | ";
+ }
+ $dir_out[$dir_count][] = "".$dir_entry['sizet']." | ";
+ $dir_out[$dir_count][] = "".$dir_entry['datet']." | ";
+ if ($has_files) $dir_out[$dir_count][] = "Folder | ";
+ // Directory Actions
+ if ( is_writable($fm_current_dir.$file) ) $dir_out[$dir_count][] = "
+ ".et('Rem')." | ";
+ else $dir_out[$dir_count][] = " | ";
+ if ( is_writable($fm_current_dir.$file) ) $dir_out[$dir_count][] = "
+ ".et('Ren')." | ";
+ else $dir_out[$dir_count][] = " | ";
+ if ( count($dir_out[$dir_count]) > $max_cells ){
+ $max_cells = count($dir_out[$dir_count]);
+ }
+ $dir_count++;
+ } elseif ($dir_entry['type'] == "file") {
+ $file_out[$file_count] = array();
+ $file_out[$file_count][] = "
+
+
+
+
+ |
+ ".utf8_convert($dir_entry['namet'])." |
+ ".utf8_convert($dir_entry['linkt'])." |
+
+
+ | ";
+ $file_out[$file_count][] = "".$dir_entry['p']." | ";
+ if (!$is_windows) {
+ $file_out[$file_count][] = "".$dir_entry['u']." | ";
+ $file_out[$file_count][] = "".$dir_entry['g']." | ";
+ }
+ $file_out[$file_count][] = "".$dir_entry['sizet']." | ";
+ $file_out[$file_count][] = "".$dir_entry['datet']." | ";
+ $file_out[$file_count][] = "".$dir_entry['extt']." | ";
+ // File Actions
+ if ( is_writable($fm_current_dir.$file) ) $file_out[$file_count][] = "
+ ".et('Rem')." | ";
+ else $file_out[$file_count][] = " | ";
+ if ( is_writable($fm_current_dir.$file) ) $file_out[$file_count][] = "
+ ".et('Ren')." | ";
+ else $file_out[$file_count][] = " | ";
+ if ( is_readable($fm_current_dir.$file) ) $file_out[$file_count][] = "
+ ".et('Edit')." | ";
+ else $file_out[$file_count][] = " | ";
+ if ( is_readable($fm_current_dir.$file) ) $file_out[$file_count][] = "
+ ".et('View')." | ";
+ else $file_out[$file_count][] = " | ";
+ if ( is_readable($fm_current_dir.$file) && strlen($dir_entry['ext']) && (strpos(".tar#.zip#.bz2#.tbz2#.bz#.tbz#.bzip#.gzip#.gz#.tgz#", $dir_entry['ext']."#" ) !== false) ) $file_out[$file_count][] = "
+ ".et('Decompress')." | ";
+ else $file_out[$file_count][] = " | ";
+ if ( is_executable($fm_current_dir.$file) || (strlen($dir_entry['ext']) && (strpos(".exe#.com#.bat#.sh#.py#.pl", $dir_entry['ext']."#" ) !== false)) ) $file_out[$file_count][] = "
+ ".et('Exec')." | ";
+ else $file_out[$file_count][] = " | ";
+ //$file_out[$file_count][] = "".(is_readable_phpfm($fm_current_dir.$file)?'R':'R').(is_writable_phpfm($fm_current_dir.$file)?'W':'W').(is_executable_phpfm($fm_current_dir.$file)?'X':'X')." | ";
+ if (count($file_out[$file_count])>$max_cells){
+ $max_cells = count($file_out[$file_count]);
+ }
+ $file_count++;
+ } elseif ($dir_entry['type'] == "broken_link") {
+ $file_out[$file_count] = array();
+ $file_out[$file_count][] = "
+
+
+
+
+ |
+ ".utf8_convert($dir_entry['namet'])." |
+ ".utf8_convert($dir_entry['linkt'])." |
+
+
+ | ";
+ $file_out[$file_count][] = "".$dir_entry['p']." | ";
+ if (!$is_windows) {
+ $file_out[$file_count][] = "".$dir_entry['u']." | ";
+ $file_out[$file_count][] = "".$dir_entry['g']." | ";
+ }
+ $file_out[$file_count][] = "".$dir_entry['sizet']." | ";
+ $file_out[$file_count][] = "".$dir_entry['datet']." | ";
+ $file_out[$file_count][] = "".$dir_entry['extt']." | ";
+ // File Actions
+ $file_out[$file_count][] = "
+ ".et('Rem')." | ";
+ $file_out[$file_count][] = "
+ ".et('Ren')." | ";
+ if (count($file_out[$file_count])>$max_cells){
+ $max_cells = count($file_out[$file_count]);
+ }
+ $file_count++;
+ }
+ }
+ $out .= "
+