<?php
require_once(__DIR__ .DIRECTORY_SEPARATOR.'shared'.DIRECTORY_SEPARATOR.'ezQueryInterface.php');
require_once(__DIR__ .DIRECTORY_SEPARATOR.'shared'.DIRECTORY_SEPARATOR.'ez_sql_core.php');
function ezsql_autoloader($class) {    
	$foldername = ltrim($class, 'ezSQL_');
    $file = __DIR__ .DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'ez_sql_'.strtolower($foldername).'.php';
    if (file_exists($file)) {
        require_once($file);
    }
}
spl_autoload_register('ezsql_autoloader');
