This commit is contained in:
2018-10-17 11:14:36 +03:00
parent 75a35947e5
commit 04d60d7e2c
2716 changed files with 431449 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
/** This file is part of KCFinder project
*
* @desc Autoload Classes
* @package KCFinder
* @version 3.12
* @author Pavel Tzonkov <sunhater@sunhater.com>
* @copyright 2010-2014 KCFinder Project
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
* @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
* @link http://kcfinder.sunhater.com
*/
spl_autoload_register(function($path) {
$path = explode("\\", $path);
if (count($path) == 1)
return;
list($ns, $class) = $path;
if ($ns == "kcfinder") {
if (in_array($class, array("uploader", "browser", "minifier", "session")))
require "core/class/$class.php";
elseif (file_exists("core/types/$class.php"))
require "core/types/$class.php";
elseif (file_exists("lib/class_$class.php"))
require "lib/class_$class.php";
elseif (file_exists("lib/helper_$class.php"))
require "lib/helper_$class.php";
}
});