PluginProbe ʕ •ᴥ•ʔ
File Manager Pro – Filester / 2.1.3
File Manager Pro – Filester v2.1.3
2.1.3 2.1.2 2.1.1 trunk 1.6.1 1.7.6 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 2.0 2.0.1 2.0.2 2.1.0
filester / includes / File_manager / lib / php / autoload.php
filester / includes / File_manager / lib / php Last commit date
.tmp 18 hours ago editors 18 hours ago libs 18 hours ago plugins 18 hours ago resources 18 hours ago MySQLStorage.sql 18 hours ago autoload.php 18 hours ago elFinder.class.php 18 hours ago elFinderConnector.class.php 18 hours ago elFinderFlysystemGoogleDriveNetmount.php 18 hours ago elFinderPlugin.php 18 hours ago elFinderSession.php 18 hours ago elFinderSessionInterface.php 18 hours ago elFinderVolumeBox.class.php 18 hours ago elFinderVolumeDriver.class.php 18 hours ago elFinderVolumeDropbox.class.php 18 hours ago elFinderVolumeDropbox2.class.php 18 hours ago elFinderVolumeFTP.class.php 18 hours ago elFinderVolumeGoogleDrive.class.php 18 hours ago elFinderVolumeGroup.class.php 18 hours ago elFinderVolumeLocalFileSystem.class.php 18 hours ago elFinderVolumeMySQL.class.php 18 hours ago elFinderVolumeOneDrive.class.php 18 hours ago elFinderVolumeSFTPphpseclib.class.php 18 hours ago elFinderVolumeTrash.class.php 18 hours ago elFinderVolumeTrashMySQL.class.php 18 hours ago mime.types 18 hours ago
autoload.php
57 lines
1 <?php
2
3 define('ELFINDER_PHP_ROOT_PATH', dirname(__FILE__));
4
5 function elFinderAutoloader($name)
6 {
7 $map = array(
8 'elFinder' => 'elFinder.class.php',
9 'elFinderConnector' => 'elFinderConnector.class.php',
10 'elFinderEditor' => 'editors/editor.php',
11 'elFinderLibGdBmp' => 'libs/GdBmp.php',
12 'elFinderPlugin' => 'elFinderPlugin.php',
13 'elFinderPluginAutoResize' => 'plugins/AutoResize/plugin.php',
14 'elFinderPluginAutoRotate' => 'plugins/AutoRotate/plugin.php',
15 'elFinderPluginNormalizer' => 'plugins/Normalizer/plugin.php',
16 'elFinderPluginSanitizer' => 'plugins/Sanitizer/plugin.php',
17 'elFinderPluginWatermark' => 'plugins/Watermark/plugin.php',
18 'elFinderSession' => 'elFinderSession.php',
19 'elFinderSessionInterface' => 'elFinderSessionInterface.php',
20 'elFinderVolumeDriver' => 'elFinderVolumeDriver.class.php',
21 'elFinderVolumeDropbox2' => 'elFinderVolumeDropbox2.class.php',
22 'elFinderVolumeFTP' => 'elFinderVolumeFTP.class.php',
23 'elFinderVolumeFlysystemGoogleDriveCache' => 'elFinderFlysystemGoogleDriveNetmount.php',
24 'elFinderVolumeFlysystemGoogleDriveNetmount' => 'elFinderFlysystemGoogleDriveNetmount.php',
25 'elFinderVolumeGoogleDrive' => 'elFinderVolumeGoogleDrive.class.php',
26 'elFinderVolumeGroup' => 'elFinderVolumeGroup.class.php',
27 'elFinderVolumeLocalFileSystem' => 'elFinderVolumeLocalFileSystem.class.php',
28 'elFinderVolumeMySQL' => 'elFinderVolumeMySQL.class.php',
29 'elFinderVolumeSFTPphpseclib' => 'elFinderVolumeSFTPphpseclib.class.php',
30 'elFinderVolumeTrash' => 'elFinderVolumeTrash.class.php',
31 );
32 if (isset($map[$name])) {
33 return include_once(ELFINDER_PHP_ROOT_PATH . '/' . $map[$name]);
34 }
35 $prefix = substr($name, 0, 14);
36 if (substr($prefix, 0, 8) === 'elFinder') {
37 if ($prefix === 'elFinderVolume') {
38 $file = ELFINDER_PHP_ROOT_PATH . '/' . $name . '.class.php';
39 return (is_file($file) && include_once($file));
40 } else if ($prefix === 'elFinderPlugin') {
41 $file = ELFINDER_PHP_ROOT_PATH . '/plugins/' . substr($name, 14) . '/plugin.php';
42 return (is_file($file) && include_once($file));
43 } else if ($prefix === 'elFinderEditor') {
44 $file = ELFINDER_PHP_ROOT_PATH . '/editors/' . substr($name, 14) . '/editor.php';
45 return (is_file($file) && include_once($file));
46 }
47 }
48 return false;
49 }
50
51 if (version_compare(PHP_VERSION, '5.3', '<')) {
52 spl_autoload_register('elFinderAutoloader');
53 } else {
54 spl_autoload_register('elFinderAutoloader', true, true);
55 }
56
57