/indexer.php

Description

yaIndexer - yet another index generator tool simple and easy to use.

This script allows you to create simple and well looking indexes for directories when this future is disabled by server or you just can't stand this ulgy Apache/Lighttpd/whatever index look.

To install script just copy it to directory of your choice and type in browser http://server.name/path/to/script/indexer.php. You can change the name of script to index.php and then you can just type http://server.name/path/to/script/

I've been using a great set of mini icons created by Mark James, you can find realted information on his page

Configuration
There is only two things, that you may/want to configure, first is if you want hide hidden files (in *nix way, starting by a dot), then set a HIDE_HIDDEN static and if you want to see a short summary of curent directory under the tables of files.

Contact with me:
mail: alkemic7 (at) gmail (dot) com
jid: alkemic7 (at) gmail (dot) com

Constants
BASE_URL = $tmp[0] (line 250)

String that shows current

HIDE_HIDDEN = false (line 36)

Do you want to hide hidden files in directories (hidden in *nix way, started with a dot)

Value: true or false

INDEXER_NAME = pathinfo($_SERVER["PHP_SELF"],PATHINFO_BASENAME) (line 242)
SHOW_SUMMARY = true (line 41)

Do you want to see short summary under the main table with index

Value: true or false

YAI_VERSION = "1.0" (line 49)

Script version.

Variables
array $content (line 364)

Array caontains data about curent directory.

integer $count_dirs (line 374)

How many we have directories.

integer $count_files (line 369)

How many we have files.

array $icons (line 61)

Array containing base64 coded icons.

Those icons are created by Mark James.

Functions
generateDirContent (line 312)

Return an array with information about $dir

array generateDirContent (name $dir)
  • name $dir: of dir relative
roundSize (line 285)

return rounded up size + prefix

string roundSize (integer $value)
  • integer $value

Documentation generated on Fri, 25 Jul 2008 14:34:15 +0200 by phpDocumentor 1.4.1