print "</td>"; print "</tr>"; print "<tr>"; print "<td valign='top' colspan=2>"; print "<center><br />"; if (is_file($home_directory . $wp_fileman_path . $filename) && wp_fileman_is_viewable_file($filename)) { $image_info = GetImageSize($home_directory . $wp_fileman_path . $filename); $size = $_GET['size']; $zoom_in = $ZoomArray[wp_fileman_get_current_zoom_level($size, 1)]; $zoom_out = $ZoomArray[wp_fileman_get_current_zoom_level($size, -1)]; $width = $image_info[0] * $size / 100; $height = $image_info[1] * $size / 100; $files = array(); if ($open = @opendir($home_directory . $wp_fileman_path)) { while ($file = @readdir($open)) { if (is_file($home_directory . $wp_fileman_path . $file) && wp_fileman_is_viewable_file($file)) { $files[] = $file; } } closedir($open); sort($files); if (count($files) > 1) { for ($i = 0; $files[$i] != $filename; $i++) { } if ($i == 0) { $prev = $files[$i + count($files) - 1]; } else { $prev = $files[$i - 1]; } if ($i == count($files) - 1) { $next = $files[$i - count($files) + 1];
print "<td width=20><img src='" . WP_CONTENT_URL . "/plugins/wp-filemanager/icon/" . $file['icon'] . "' width=20 height=22 border=0 alt='{$StrFile}'></td>"; /* if ($ShowExtension) print "<td> ".htmlentities($file['filename'])."</td>"; else { $f_nm = explode('.',htmlentities($file['filename'])); print "<td><a title='" . $f_nm[0] . "'> " . $f_nm[0] . "</a></td>"; }*/ $f_nm = explode('.', htmlentities($file['filename'])); //print $f_nm[1]; print "<td> " . $f_nm[0]; if ($ShowExtension) { print "." . $f_nm[1]; } print "</td>"; print "<td width=60 align='right'>" . $file['filesize'] . "</td>"; if ($AllowView && wp_fileman_is_viewable_file($file['filename'])) { print "<td width=20><a href='{$base_url}&path=" . htmlentities(rawurlencode($wp_fileman_path)) . "&filename=" . htmlentities(rawurlencode($file['filename'])) . "&action=view&size=100'><img src='" . WP_CONTENT_URL . "/plugins/wp-filemanager/icon/view.gif' width=20 height=22 alt='{$StrViewFile}' border=0></a></td>"; } else { if ($AllowView) { print "<td width=20> </td>"; } } // 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 "<td width=20><a href='{$base_url}&path=" . htmlentities(rawurlencode($wp_fileman_path)) . "&filename=" . htmlentities(rawurlencode($file['filename'])) . "&action=edit'><img src='" . WP_CONTENT_URL . "/plugins/wp-filemanager/icon/edit.gif' width=20 height=22 alt='{$StrEditFile}' border=0></a></td>"; } else { if ($AllowEdit) { print "<td width=20> </td>"; } } if ($AllowRename) {