1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-09 19:16:18 +02:00

ready for test of remote images #43

This commit is contained in:
Mikael Roos
2015-01-14 19:31:39 +01:00
parent be98ae8979
commit 61afe445f1
3 changed files with 64 additions and 40 deletions

23
autoload.php Normal file
View File

@ -0,0 +1,23 @@
<?php
/**
* Autoloader for CImage and related class files.
*
*/
//include __DIR__ . "/../CHttpGet.php";
//include __DIR__ . "/../CRemoteImage.php";
//include __DIR__ . "/../CImage.php";
/**
* Autoloader for classes.
*
* @param string $class the fully-qualified class name.
*
* @return void
*/
spl_autoload_register(function ($class) {
//$path = CIMAGE_SOURCE_PATH . "/{$class}.php";
$path = __DIR__ . "/{$class}.php";
if(is_file($path)) {
require($path);
}
});