";
- print " | ";
- print "";
-
-
-
- if ($open = @opendir($home_directory.$wp_fileman_path))
- {
- for($i=0;($directory = @readdir($open)) != FALSE;$i++)
- if (is_dir($home_directory.$wp_fileman_path.$directory) && $directory != "." && $directory != ".." && !wp_fileman_is_hidden_directory($home_directory.$wp_fileman_path.$directory))
- $directories[$i] = array($directory,$directory);
- closedir($open);
-
- if (isset($directories))
- {
- sort($directories);
- @reset($directories);
- }
- }
-
- print "";
- print "";
- print " | ";
- print " $StrFolderNameShort | ";
- if ($AllowRename) print "$StrRenameShort | ";
- if ($AllowDelete) print "$StrDeleteShort | ";
- print " ";
- print "";
- print " | ";
- print " . | ";
- print " | ";
- print " | ";
- print " ";
- print "";
- print " | ";
- print " .. | ";
- print " | ";
- print " | ";
- print " ";
- if (isset($directories)) foreach($directories as $directory)
- {
- print "";
- print " | ";
- print " ".htmlentities($directory[0])." | ";
- if ($AllowRename) print " | ";
- if ($AllowDelete) print " | ";
- print " ";
- }
- print " | ";
- print " ";
-
- print " | ";
- print " | ";
- print "";
-
-
-
- if ($open = @opendir($home_directory.$wp_fileman_path))
- {
- for($i=0;($file = @readdir($open)) != FALSE;$i++)
- if (is_file($home_directory.$wp_fileman_path.$file) && !wp_fileman_is_hidden_file($home_directory.$wp_fileman_path.$file))
- {
- $icon = wp_fileman_get_icon($file);
- $filesize = filesize($home_directory.$wp_fileman_path.$file);
- $permissions = decoct(fileperms($home_directory.$wp_fileman_path.$file)%01000);
- $modified = filemtime($home_directory.$wp_fileman_path.$file);
- $extension = "";
- $files[$i] = array(
- "icon" => $icon,
- "filename" => $file,
- "filesize" => $filesize,
- "permissions" => $permissions,
- "modified" => $modified,
- "extension" => $extension,
- );
- }
- closedir($open);
-
- if (isset($files))
- {
- @usort($files, "wp_fileman_compare_filedata");
- @reset($files);
- }
- }
-
- print "";
- print "";
- print " | ";
- print " $StrFileNameShort | ";
- print "$StrFileSizeShort | ";
- if ($AllowView) print "$StrViewShort | ";
- if ($AllowEdit) print "$StrEditShort | ";
- if ($AllowRename) print "$StrRenameShort | ";
- if ($AllowDownload) print "$StrDownloadShort | ";
- if ($AllowDelete) print "$StrDeleteShort | ";
- print " ";
- if (isset($files)) foreach($files as $file)
- {
- $file['filesize'] = wp_fileman_get_better_filesize($file['filesize']);
- $file['modified'] = date($ModifiedFormat, $file['modified']);
-
- print "";
- print " | ";
-/* if ($ShowExtension) print " ".htmlentities($file['filename'])." | ";
- else
- {
- $f_nm = explode('.',htmlentities($file['filename']));
- print " " . $f_nm[0] . " | ";
- }*/
- $f_nm = explode('.',htmlentities($file['filename']));
- //print $f_nm[1];
- print " ".$f_nm[0];
- if ($ShowExtension) print "." . $f_nm[1];
- print " | ";
- print "".$file['filesize']." | ";
- if ($AllowView && wp_fileman_is_viewable_file($file['filename'])) print " | ";
- else if ($AllowView) print " | ";
-// echo get_option('siteurl'); /wp-admin/admin-ajax.php?action=choice&width=150&height=100" title="Choice"
- if ($AllowEdit && wp_fileman_is_editable_file($file['filename'])) print " | ";
-// if ($AllowEdit && is_editable_file($file['filename'])) print " | ";
- else if ($AllowEdit) print " | ";
- if ($AllowRename) print " | ";
-// if ($AllowRename) print " | ";
-// if ($AllowDownload) print " | ";
-// if ($AllowDownload) print " | ";
- if ($AllowDownload) print " | ";
- if ($AllowDelete) print " | ";
- print " ";
-
- }
- print " | ";
- print " ";
-
-
- print " | ";
- print "
";
-print "