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: elFinderVolumeTrash.class.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* elFinder driver for trash bin at local filesystem.
[3] Fix | Delete
*
[4] Fix | Delete
* @author NaokiSawada
[5] Fix | Delete
**/
[6] Fix | Delete
class elFinderVolumeTrash extends elFinderVolumeLocalFileSystem
[7] Fix | Delete
{
[8] Fix | Delete
/**
[9] Fix | Delete
* Driver id
[10] Fix | Delete
* Must be started from letter and contains [a-z0-9]
[11] Fix | Delete
* Used as part of volume id.
[12] Fix | Delete
*
[13] Fix | Delete
* @var string
[14] Fix | Delete
**/
[15] Fix | Delete
protected $driverId = 't';
[16] Fix | Delete
[17] Fix | Delete
public function __construct()
[18] Fix | Delete
{
[19] Fix | Delete
parent::__construct();
[20] Fix | Delete
// original option of the Trash
[21] Fix | Delete
$this->options['lockEverything'] = false; // Lock all items in the trash to disable delete, move, rename.
[22] Fix | Delete
[23] Fix | Delete
// common options as the volume driver
[24] Fix | Delete
$this->options['alias'] = 'Trash';
[25] Fix | Delete
$this->options['quarantine'] = '';
[26] Fix | Delete
$this->options['rootCssClass'] = 'elfinder-navbar-root-trash';
[27] Fix | Delete
$this->options['copyOverwrite'] = false;
[28] Fix | Delete
$this->options['uiCmdMap'] = array('paste' => 'hidden', 'mkdir' => 'hidden', 'copy' => 'restore');
[29] Fix | Delete
$this->options['disabled'] = array('archive', 'duplicate', 'edit', 'extract', 'mkfile', 'places', 'put', 'rename', 'resize', 'upload');
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
public function mount(array $opts)
[33] Fix | Delete
{
[34] Fix | Delete
if ($this->options['lockEverything']) {
[35] Fix | Delete
if (!is_array($opts['attributes'])) {
[36] Fix | Delete
$opts['attributes'] = array();
[37] Fix | Delete
}
[38] Fix | Delete
$attr = array(
[39] Fix | Delete
'pattern' => '/./',
[40] Fix | Delete
'locked' => true,
[41] Fix | Delete
);
[42] Fix | Delete
array_unshift($opts['attributes'], $attr);
[43] Fix | Delete
}
[44] Fix | Delete
// force set `copyJoin` to true
[45] Fix | Delete
$opts['copyJoin'] = true;
[46] Fix | Delete
[47] Fix | Delete
return parent::mount($opts);
[48] Fix | Delete
}
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function