<?php

spl_autoload_register(function($class_name){ 
		if(file_exists('../../core/Models/'.$class_name.'.php')){
			require_once '../../core/Models/'.$class_name.'.php';
		}
		elseif(file_exists('../../../core/Models/'.$class_name.'.php')){
			require_once '../../../core/Models/'.$class_name.'.php';
		}
		elseif (file_exists('../../core/Controllers/'.$class_name.'.php')) {
			require_once '../../core/Controllers/'.$class_name.'.php';
		}
		elseif (file_exists('../../../core/Controllers/'.$class_name.'.php')) {
			require_once '../../../core/Controllers/'.$class_name.'.php';
		}
});

if(file_exists('../../core/helpers/vendor/site.php')){require_once '../../core/helpers/vendor/site.php';}
if(file_exists('../core/helpers/vendor/site.php')){require_once '../core/helpers/vendor/site.php';}
if(file_exists('../../core/helpers/vendor/manifest.php')){require_once '../../core/helpers/vendor/manifest.php';}
if(file_exists('../core/helpers/vendor/manifest.php')){require_once '../core/helpers/vendor/manifest.php';}
if(file_exists('../../core/helpers/vendor/autoload.php')){require_once '../../core/helpers/vendor/autoload.php';}
if(file_exists('../core/helpers/vendor/autoload.php')){require_once '../core/helpers/vendor/autoload.php';}

?>