PluginProbe ʕ •ᴥ•ʔ
File Manager Pro – Filester / 1.6.1
File Manager Pro – Filester v1.6.1
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 5 years ago editors 5 years ago libs 5 years ago plugins 5 years ago resources 5 years ago MySQLStorage.sql 5 years ago autoload.php 5 years ago elFinder.class.php 5 years ago elFinderConnector.class.php 5 years ago elFinderFlysystemGoogleDriveNetmount.php 5 years ago elFinderPlugin.php 5 years ago elFinderSession.php 5 years ago elFinderSessionInterface.php 5 years ago elFinderVolumeBox.class.php 5 years ago elFinderVolumeDriver.class.php 5 years ago elFinderVolumeDropbox.class.php 5 years ago elFinderVolumeDropbox2.class.php 5 years ago elFinderVolumeFTP.class.php 5 years ago elFinderVolumeGoogleDrive.class.php 5 years ago elFinderVolumeGroup.class.php 5 years ago elFinderVolumeLocalFileSystem.class.php 5 years ago elFinderVolumeMySQL.class.php 5 years ago elFinderVolumeOneDrive.class.php 5 years ago elFinderVolumeTrash.class.php 5 years ago elFinderVolumeTrashMySQL.class.php 5 years ago index.php 5 years ago mime.types 5 years ago
autoload.php
56 lines
1 <?php
2
3 define('NJT_FS_ELFINDER_PHP_ROOT_PATH', dirname(__FILE__));
4
5 function njt_fs_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 'elFinderVolumeTrash' => 'elFinderVolumeTrash.class.php',
30 );
31 if (isset($map[$name])) {
32 return include_once(NJT_FS_ELFINDER_PHP_ROOT_PATH . '/' . $map[$name]);
33 }
34 $prefix = substr($name, 0, 14);
35 if (substr($prefix, 0, 8) === 'elFinder') {
36 if ($prefix === 'elFinderVolume') {
37 $file = NJT_FS_ELFINDER_PHP_ROOT_PATH . '/' . $name . '.class.php';
38 return (is_file($file) && include_once($file));
39 } else if ($prefix === 'elFinderPlugin') {
40 $file = NJT_FS_ELFINDER_PHP_ROOT_PATH . '/plugins/' . substr($name, 14) . '/plugin.php';
41 return (is_file($file) && include_once($file));
42 } else if ($prefix === 'elFinderEditor') {
43 $file = NJT_FS_ELFINDER_PHP_ROOT_PATH . '/editors/' . substr($name, 14) . '/editor.php';
44 return (is_file($file) && include_once($file));
45 }
46 }
47 return false;
48 }
49
50 if (version_compare(PHP_VERSION, '5.3', '<')) {
51 spl_autoload_register('njt_fs_elFinderAutoloader');
52 } else {
53 spl_autoload_register('njt_fs_elFinderAutoloader', true, true);
54 }
55
56