PHP Classes

File: synDirectory.txt

Recommend this page to a friend!
  Classes of Olafur Waage   synDirectory   synDirectory.txt   Download  
File: synDirectory.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: synDirectory
Retrieve and sort the current directory files
Author: By
Last change: Priority change
Date: 16 years ago
Size: 2,790 bytes
 

Contents

Class file image Download
synDirectory (Simple yet nifty) Author: Ólafur Waage Email: olafurw@gmail.com This is a collection of php files (with images included) that enable you to display contents of a directory. It has added features like turning on and off displays for things like directories, files, file extensions and more. You can also select what filetypes you want only to see within your directory. It has some support for skinning (with css class names for most elements) And the index file is small (only 4 lines of actual code), so its very easy to have the index file generated by another program. There is also support for translation via the lang.php and config.php files. If you have any questions or have added features you made or just wanna chat, hit me up on my email. If you want further info on what has changed, check out the Changelog here below. -#- Changelog v0.1 - 14.01.2008 - waage # New features - index.php shrunk in size to allow for autogereation - config.php created and added support in the main class for its elements Ability to show files or not To show directories or not To show file extensions or not To show only certain filetypes (ie. only mp3 and wmv files) - lang.php created, it contains an array element with the language as a key and the correct output as a value. The key to use is changed within the config.php file Added the english language Added the icelandic language # Improvments - Streamlined the code so the overall display proccess of the directory is much faster than the previous version. (by about 5 seconds on a 700 file directory) - Added a new byteConvert function so converting the filesize is faster and more accurate (thanks php.net) # Bugs fixed - Fixed a bug with sorting dates where one file for each day would have the wrong date v0.02 Fixed bugs while running under PHP 5 v0.01 Initial release, code functional under current setup Copyright © 2007 Ólafur Waage Distributed under the terms of the GNU General Public License This program 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. This program 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. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA