PHP 8.0.30
Preview: elFinderVolumeTrashMySQL.class.php Size: 1.54 KB
/home/certprox/template.certproxywizard.com/wp-content/plugins/wp-file-manager/lib/php/elFinderVolumeTrashMySQL.class.php

<?php

/**
 * elFinder driver for trash bin at MySQL Database
 *
 * @author NaokiSawada
 **/
class elFinderVolumeTrashMySQL extends elFinderVolumeMySQL
{
    /**
     * Driver id
     * Must be started from letter and contains [a-z0-9]
     * Used as part of volume id.
     *
     * @var string
     **/
    protected $driverId = 'tm';

    public function __construct()
    {
        parent::__construct();
        // original option of the Trash
        $this->options['lockEverything'] = false; // Lock all items in the trash to disable delete, move, rename.

        // common options as the volume driver
        $this->options['alias'] = 'Trash';
        $this->options['quarantine'] = '';
        $this->options['rootCssClass'] = 'elfinder-navbar-root-trash';
        $this->options['copyOverwrite'] = false;
        $this->options['uiCmdMap'] = array('paste' => 'hidden', 'mkdir' => 'hidden', 'copy' => 'restore');
        $this->options['disabled'] = array('archive', 'duplicate', 'edit', 'extract', 'mkfile', 'places', 'put', 'rename', 'resize', 'upload');
    }

    public function mount(array $opts)
    {
        if ($this->options['lockEverything']) {
            if (!is_array($opts['attributes'])) {
                $opts['attributes'] = array();
            }
            $attr = array(
                'pattern' => '/./',
                'locked' => true,
            );
            array_unshift($opts['attributes'], $attr);
        }
        // force set `copyJoin` to true
        $opts['copyJoin'] = true;

        return parent::mount($opts);
    }
}

Directory Contents

Dirs: 4 × Files: 20

Name Size Perms Modified Actions
editors DIR
- drwxr-xr-x 2026-07-27 05:53:10
Edit Download
libs DIR
- drwxr-xr-x 2026-07-27 05:53:11
Edit Download
plugins DIR
- drwxr-xr-x 2026-07-27 05:52:54
Edit Download
resources DIR
- drwxr-xr-x 2026-07-27 05:53:11
Edit Download
2.62 KB lrw-r--r-- 2026-07-27 05:53:10
Edit Download
184.68 KB lrw-r--r-- 2026-07-27 05:53:10
Edit Download
12.47 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
14.83 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
3.25 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
8.56 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
1.07 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
60.32 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
257.00 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
46.30 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
57.18 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
69.59 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
5.25 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
47.41 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
29.73 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
65.68 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
27.11 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
1.55 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
1.54 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download
24.28 KB lrw-r--r-- 2026-07-27 05:53:11
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).