<?php
// Set the global array for loaded classes
global $lcs_loadedClass;
$GLOBALS['lcs_loadedClass'] = array();
// Load the error class
include_once 'error.class.php';
// Load the directory class in advance to make the looping more simple
include_once 'dir.class.php';
///////////////////////////////////////////////////////////////////////////
// Eventualy a loop will exist to load all the classes the user requires //
// Currently it will simply include all files ending in .class.php //
///////////////////////////////////////////////////////////////////////////
// Load the directory class
$dir = new lcs_dir('class');
foreach ( $dir->arrayAll as $num => $fileArray ) {
if ( preg_match("/\.class\.php/i", $fileArray['name']) ) {
if ( @!$GLOBALS['lcs_loadedClass'][$fileArray['name']] == 1 ) {
include_once $fileArray['name'];
}
}
}
unset($dir);
?>