PHP Classes
Icontem

File: index.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Olafur Waage  >  synDirectory  >  index.php  
File: index.php
Role: Sample output
Content type: text/plain
Description: synDirectory's index file
Class: synDirectory
Retrieve and sort the current directory files
 

Contents

Class file image Download
<?php

/**
 * @name SYN Directory Listing (Simple Yet Nifty)
 * @desc Directory Listing Class
 * 
 *  With this file and the original wd_class.php that came with the package you can make
 *  a nice simple listing of what is in that directory.
 *  
 *  You can also sort by name, filesize and filetype (both ascending and descending)
 *  by clicking on the Topmost icon, "Filename" or "Size"
 *   
 * @author Olafur Waage, sinai@simnet.is 
 * @created 14.June 2007 
 * @updated 15.December 2007
 * 
 * @credits, Icons made by Mark James ( http://www.famfamfam.com/lab/icons/silk/ ) 
 * 
 * Copyright © 2007 Ólafur Waage
 * Distributed under the terms of the GNU General Public License 
 */

/**
 * This includes the class files
 *  
 * You can put the config file in another directory, then you'd only need to point
 * this 1st include to that directory, ie. include("../config.php"); if its in the
 * parent directory or include("class/config.php"); if its in the class directory
 */
include("config.php");
include($config["class_root"]."syn_class.php");

/**
 * The main class call, this is and the includes above are the only thing needed
 * to display the directory listing.
 */
$output = new synDirectory;
$output->mainTable($output->synDir());

?>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products