ldir Changelog Version 1.8.1 Improved the automatic $_GET parameter code. Added a HTML comment to display the microtime it took to generate the output. Version 1.8.0 Deprecating the $GET parameter as it can be found via the $_SERVER superglobal. Modified the method that ldir detects it's own script name. Version 1.7.11 Shamelessly Added a Link Back (use CSS to hide .ldir_link) Version 1.7.10 Speed optimisations Rewrote icon checking Added supported common icons list Suppressed header() / ob_flush() calls Fixed 'parent folder' link not working Version 1.7.9 Speed Optimisations Removed/Condensed more code (9% smaller compared to previous version) Removed icon host check. Version 1.7.8 Added better support for styling - Removed inline width CSS & Added CSS styles for each column Removed some linebreaks. Removed/Condensed some code (upto 7% smaller) Custom UserAgent in CURL Opts. Version 1.7.7 Changed the Update URL Version 1.7.6 Rewrote the PHP4 scandir support and made it tidier. Rewrote the file/folder check Added support to move the lister icons to another host Icons migrated to dropbox (as its faster). Version 1.7.5 Removed More Legacy CSS Capitalised the first Character of the visible download location Change the folder refresh method so it didn't reload all the icon's in the cache. Version 1.7.4 Changed strripos and stripos to strpos & stripos to make it PHP4 compatible (again) (See 1.7.3-1) Added a class to update text and refresh div so they can be hidden. Removed some legacy CSS forcing elements to be blue Version 1.7.3-1 Issued Bug-Fix (0.0.3) for Versions 1.6.5 - 1.7.3 (PHP4 Only) Usage: Just require_once before you require/include ldir. KB: http://www.aboutcher.co.uk/2011/05/ldir-bug/ Version 1.7.3 Fixed a bug where file extensions with capital letters weren't displaying the correct filetype image Version 1.7.2 Fixed a bug where the anti-injection was killing any access to dot files/folders Tweaked the way it handles folders Improved the anti-injection code Can now handle folders with double dots (i.e. ..folder) Allows using ./ in the folder request (i.e. HTTP GET f=folder/./) as it now shouldn't do any harm Suppressed warning from filesize() as it was complaining about not being able to stat while inside a double dot folder (will re-asses this later) Added the GET variable to the error output Function File size is now just under 9KBytes Version 1.7.1 Fixed a problem where the redirect wasn't using the passed on GET Version 1.7.0 Allows GET variables to be passed. Version 1.6.7 Input ".?" into the array for the hidden file type to hide ALL dot files/folders (hidden files/folders in *nix). Version 1.6.6 Removed the hacky checks on the hidden files/types arguments and fixed the argument declaration at the start (Silly me!) Added some License info, GNU GPLv3 Function File size is now just about 8KBytes Version 1.6.5 Modified the version checking code. Edited update available notifications slightly. Change the way the file extensions were Checks to see if Hidden Filename/Types are empty as it was E_WARNING if they were NULL. Version 1.6.4 Added a version checking mechanism. Function File Size was shrunk (YAY!) to 6.7Kbytes Version 1.6.3 The generated code is now HTML5 valid (Includes XHTML 1.1 and XHTML 1.0 Strict) Function File Size was shrunk (YAY!) to 7.2Kbytes Version 1.6.2 Added some fatal checks upon major problem Added return value for suspected injection attacks Version 1.6.1 Added some return codes More Documentation Snuffed errors from functions called up in the script and replaced with custom returns Checks to see if the icons are available Version 1.6 Officially (re-)named ldir() Added come crappy self awareness instead of the definition Configurable Hidden Files Styled the documentation like php.net Version 1.5 Ability to define the page the script is running on Turned into a sexy function Added HTML author comment Hides self by default (or anything named similar) Some minimal documentation added Prettied up the HTML source Version 1.4.2 Fixed the 'anti-injection' check Added version numbering