PluginProbe ʕ •ᴥ•ʔ
File Manager Pro – Filester / 1.8
File Manager Pro – Filester v1.8
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 2 years ago editors 2 years ago libs 2 years ago plugins 2 years ago resources 2 years ago MySQLStorage.sql 2 years ago autoload.php 2 years ago elFinder.class.php 2 years ago elFinderConnector.class.php 2 years ago elFinderFlysystemGoogleDriveNetmount.php 2 years ago elFinderPlugin.php 2 years ago elFinderSession.php 2 years ago elFinderSessionInterface.php 2 years ago elFinderVolumeBox.class.php 2 years ago elFinderVolumeDriver.class.php 2 years ago elFinderVolumeDropbox.class.php 2 years ago elFinderVolumeDropbox2.class.php 2 years ago elFinderVolumeFTP.class.php 2 years ago elFinderVolumeGoogleDrive.class.php 2 years ago elFinderVolumeGroup.class.php 2 years ago elFinderVolumeLocalFileSystem.class.php 2 years ago elFinderVolumeMySQL.class.php 2 years ago elFinderVolumeOneDrive.class.php 2 years ago elFinderVolumeSFTPphpseclib.class.php 2 years ago elFinderVolumeTrash.class.php 2 years ago elFinderVolumeTrashMySQL.class.php 2 years ago index.php 2 years ago mime.types 2 years ago
autoload.php
57 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 'elFinderVolumeSFTPphpseclib' => 'elFinderVolumeSFTPphpseclib.class.php',
30 'elFinderVolumeTrash' => 'elFinderVolumeTrash.class.php',
31 );
32 if (isset($map[$name])) {
33 return include_once(NJT_FS_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 = NJT_FS_ELFINDER_PHP_ROOT_PATH . '/' . $name . '.class.php';
39 return (is_file($file) && include_once($file));
40 } else if ($prefix === 'elFinderPlugin') {
41 $file = NJT_FS_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 = NJT_FS_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('njt_fs_elFinderAutoloader');
53 } else {
54 spl_autoload_register('njt_fs_elFinderAutoloader', true, true);
55 }
56
57