Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-file-.../lib/php
File: autoload.php
<?php
[0] Fix | Delete
[1] Fix | Delete
define('ELFINDER_PHP_ROOT_PATH', dirname(__FILE__));
[2] Fix | Delete
[3] Fix | Delete
function elFinderAutoloader($name)
[4] Fix | Delete
{
[5] Fix | Delete
$map = array(
[6] Fix | Delete
'elFinder' => 'elFinder.class.php',
[7] Fix | Delete
'elFinderConnector' => 'elFinderConnector.class.php',
[8] Fix | Delete
'elFinderEditor' => 'editors/editor.php',
[9] Fix | Delete
'elFinderLibGdBmp' => 'libs/GdBmp.php',
[10] Fix | Delete
'elFinderPlugin' => 'elFinderPlugin.php',
[11] Fix | Delete
'elFinderPluginAutoResize' => 'plugins/AutoResize/plugin.php',
[12] Fix | Delete
'elFinderPluginAutoRotate' => 'plugins/AutoRotate/plugin.php',
[13] Fix | Delete
'elFinderPluginNormalizer' => 'plugins/Normalizer/plugin.php',
[14] Fix | Delete
'elFinderPluginSanitizer' => 'plugins/Sanitizer/plugin.php',
[15] Fix | Delete
'elFinderPluginWatermark' => 'plugins/Watermark/plugin.php',
[16] Fix | Delete
'elFinderSession' => 'elFinderSession.php',
[17] Fix | Delete
'elFinderSessionInterface' => 'elFinderSessionInterface.php',
[18] Fix | Delete
'elFinderVolumeDriver' => 'elFinderVolumeDriver.class.php',
[19] Fix | Delete
'elFinderVolumeDropbox2' => 'elFinderVolumeDropbox2.class.php',
[20] Fix | Delete
'elFinderVolumeFTP' => 'elFinderVolumeFTP.class.php',
[21] Fix | Delete
'elFinderVolumeFlysystemGoogleDriveCache' => 'elFinderFlysystemGoogleDriveNetmount.php',
[22] Fix | Delete
'elFinderVolumeFlysystemGoogleDriveNetmount' => 'elFinderFlysystemGoogleDriveNetmount.php',
[23] Fix | Delete
'elFinderVolumeGoogleDrive' => 'elFinderVolumeGoogleDrive.class.php',
[24] Fix | Delete
'elFinderVolumeGroup' => 'elFinderVolumeGroup.class.php',
[25] Fix | Delete
'elFinderVolumeLocalFileSystem' => 'elFinderVolumeLocalFileSystem.class.php',
[26] Fix | Delete
'elFinderVolumeMySQL' => 'elFinderVolumeMySQL.class.php',
[27] Fix | Delete
'elFinderVolumeSFTPphpseclib' => 'elFinderVolumeSFTPphpseclib.class.php',
[28] Fix | Delete
'elFinderVolumeTrash' => 'elFinderVolumeTrash.class.php',
[29] Fix | Delete
);
[30] Fix | Delete
if (isset($map[$name])) {
[31] Fix | Delete
return include_once(ELFINDER_PHP_ROOT_PATH . '/' . $map[$name]);
[32] Fix | Delete
}
[33] Fix | Delete
$prefix = substr($name, 0, 14);
[34] Fix | Delete
if (substr($prefix, 0, 8) === 'elFinder') {
[35] Fix | Delete
if ($prefix === 'elFinderVolume') {
[36] Fix | Delete
$file = ELFINDER_PHP_ROOT_PATH . '/' . $name . '.class.php';
[37] Fix | Delete
return (is_file($file) && include_once($file));
[38] Fix | Delete
} else if ($prefix === 'elFinderPlugin') {
[39] Fix | Delete
$file = ELFINDER_PHP_ROOT_PATH . '/plugins/' . substr($name, 14) . '/plugin.php';
[40] Fix | Delete
return (is_file($file) && include_once($file));
[41] Fix | Delete
} else if ($prefix === 'elFinderEditor') {
[42] Fix | Delete
$file = ELFINDER_PHP_ROOT_PATH . '/editors/' . substr($name, 14) . '/editor.php';
[43] Fix | Delete
return (is_file($file) && include_once($file));
[44] Fix | Delete
}
[45] Fix | Delete
}
[46] Fix | Delete
return false;
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
if (version_compare(PHP_VERSION, '5.3', '<')) {
[50] Fix | Delete
spl_autoload_register('elFinderAutoloader');
[51] Fix | Delete
} else {
[52] Fix | Delete
spl_autoload_register('elFinderAutoloader', true, true);
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
[56] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function