Subversion Repositories eFlore/Applications.cel

Rev

Rev 2448 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2448 Rev 2459
Line 10... Line 10...
10
function __autoload($classe) {
10
function __autoload($classe) {
11
	if (class_exists($classe)) {
11
	if (class_exists($classe)) {
12
		return null;
12
		return null;
13
	}
13
	}
Line 14... Line 14...
14
 
14
 
15
	$chemins = array('', 'services/', 'lib/');
15
	$chemins = array('', 'services/', 'bibliotheque/', 'lib/');
16
	foreach ($chemins as $chemin) {
16
	foreach ($chemins as $chemin) {
17
		$chemin = $chemin.$classe.'.php';
17
		$chemin = $chemin.$classe.'.php';
18
		if (file_exists($chemin)) {
18
		if (file_exists($chemin)) {
19
			require_once $chemin;
19
			require_once $chemin;