Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
Divers
/
system
/
views
/
thumbnails
:
files.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /*************************************************************** * Copyright notice * * (c) 2003-2004 Tobias Bender (tobias@phpXplorer.org) * All rights reserved * * This script is part of the phpXplorer project. The phpXplorer project is * free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * The GNU General Public License can be found at * http://www.gnu.org/copyleft/gpl.html. * A copy is found in the textfile GPL.txt distributed with these scripts. * * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ $colCounter = 0; if($thumbnailCols == "") $thumbnailCols = 5; $possibleFormats = Array("jpeg", "png"); if(function_exists("gd_info")){ $gdInfo = gd_info(); if(isset($gdInfo["GIF Create Support"])) if($gdInfo["GIF Create Support"] == true) array_push($possibleFormats, "gif"); } echo '</table><table cellspacing="0" cellpadding="0" border="0">'; foreach($arrFile as $fileName){ if($colCounter == 0) echo '<tr>'; $pInfo = checkFilePermissions($fileName); if(!$pInfo["allowOpen"]) continue; $extKey = $pInfo["extKey"]; echo '<td valign="top" align="center" class="thumbnailMenu" onMouseOver="this.childNodes[3].style.display=\'\'" onMouseOut="this.childNodes[3].style.display=\'none\'">'; echo '<input type="checkbox" name="fileSelection[]" value="' . $fileName . '"><br><br>'; echo '<div style="display:none">'; if($pInfo["allowEdit"]){ if($TP_possibleActions[$extKey]["delete"]) echo '<a href="javascript:deleteFile(\'' . $extKey . '\',\'' . $fileName . '\')"><img src="' . $PXP_url . '/styles/' . $PXP_style . '/delete.png" alt="' . $PXP_languages[$PXP_language]["deleteFile"] . '" title="' . $PXP_languages[$PXP_language]["deleteFile"] . '" border="0"></a><br>'; if($TP_possibleActions[$extKey]["edit"]) echo '<a href="javascript:editFile(\'' . $extKey . '\',\'' . $fileName . '\')"><img src="' . $PXP_url .'/styles/' . $PXP_style . '/edit.png" alt="' . $PXP_languages[$PXP_language]["editFile"] . '" title="' . $PXP_languages[$PXP_language]["editFile"] . '" border="0"></a><br>'; } if($allowSelection and (in_array($extension, $selectionFilter) or sizeof($selectionFilter) == 0)) echo '<a href="javascript:selectFile(\'' . $extension . '\',\'' . $fileName . '\')"><img src="' . $PXP_url . '/styles/' . $PXP_style . '/select.png" alt="' . $PXP_languages[$PXP_language]["selectFile"] . '" title="' . $PXP_languages[$PXP_language]["selectFile"] . '" border="0"></a>'; echo '</div>'; echo '</td>'; echo '<td' . (($fileName == $currentFile) ? ' id="selectedItem"' : '') . ' align="center" class="thumbnail" title="' . $fileName . '" onMouseOver="this.previousSibling.childNodes[3].style.display=\'\'" onMouseOut="this.previousSibling.childNodes[3].style.display=\'none\'">'; if($TP_possibleActions[$extKey]["open"]) echo '<a href="javascript:openFile(\'' . $extKey . '\',\'' . $fileName . '\')">'; if(in_array($extKey, $possibleFormats)){ echo '<img src="' . $GC_ImageEditor_URL . '/image.php?path=' . urlencode($currentDir) . '/' . urlencode($fileName) . '&maxLen=100" alt="' . $fileName . '" title="' . $fileName . '" border="0">'; }else{ echo '<img src="' . $PXP_url . '/filetypes/' . $extKey . '/icon.png" alt="' . $fileName . '" title="' . $fileName . '" border="0">'; } if($TP_possibleActions[$extKey]["open"]){ echo '</a>'; } echo '<br><div style="width:105;overflow:hidden">'; if($TP_possibleActions[$extKey]["open"]) echo '<a href="javascript:openFile(\'' . $extKey . '\',\'' . $fileName . '\')">'; echo $fileName; if($TP_possibleActions[$extKey]["open"]) echo '</a>'; echo '</div>'; echo '</td>'; $colCounter++; if($colCounter == $thumbnailCols){ echo '</tr>'; $colCounter=0; } } if($colCounter != 0){ for($t = $colCounter; $t < $thumbnailCols; $t++){ echo '<td> </td><td> </td>'; } echo '</tr>'; } echo '</table>'; ?>