Exemple #1
0
             if (isset($config['dropbox_unlock_ext'])) {
                 $dropbox_access->setUnlockExtention($dropboxIsInGroup ? $config['dropbox_unlock_ext'] : '');
             }
         }
         $dropbox = array('driver' => 'DropboxX', 'id' => 'sh', 'consumerKey' => ELFINDER_DROPBOX_CONSUMERKEY, 'consumerSecret' => ELFINDER_DROPBOX_CONSUMERSECRET, 'alias' => trim($config['dropbox_name']), 'accessToken' => trim($config['dropbox_acc_token']), 'accessTokenSecret' => trim($config['dropbox_acc_seckey']), 'path' => '/' . trim($config['dropbox_path'], ' /'), 'defaults' => array('read' => true, 'write' => $dropboxIsInGroup ? true : false, 'hidden' => false, 'locked' => false), 'accessControl' => is_object($dropbox_access) ? array($dropbox_access, 'access') : null, 'uploadDeny' => !$isAdmin && !empty($config['dropbox_upload_mime']) ? array('all') : array(), 'uploadAllow' => !$isAdmin && !empty($config['dropbox_upload_mime']) ? array_map('trim', explode(',', $config['dropbox_upload_mime'])) : array(), 'uploadOrder' => array('deny', 'allow'));
         $rootConfig[] = array('raw' => $dropbox);
     }
     try {
         if ($serVar = @serialize($rootConfig)) {
             $_SESSION['XELFINDER_RF_' . $mydirname] = base64_encode($serVar);
             $_SESSION['XELFINDER_CFG_HASH_' . $mydirname] = $config_MD5;
         }
     } catch (Exception $e) {
     }
 }
 $rootVolumes = $xoops_elFinder->buildRootVolumes($rootConfig);
 foreach ($rootVolumes as $rootVolume) {
     if (isset($rootVolume['driverSrc'])) {
         require_once $rootVolume['driverSrc'];
     }
 }
 //var_dump($rootVolumes);exit;
 $optionsNetVolumes = array('*' => array('tmpPath' => XOOPS_MODULE_PATH . '/' . _MD_ELFINDER_MYDIRNAME . '/cache', 'tmbPath' => XOOPS_MODULE_PATH . '/' . _MD_ELFINDER_MYDIRNAME . '/cache/tmb', 'tmbURL' => _MD_XELFINDER_MODULE_URL . '/' . _MD_ELFINDER_MYDIRNAME . '/cache/tmb', 'tsPlSleep' => 15, 'syncMinMs' => 30000, 'plugin' => array('AutoResize' => array('enable' => false), 'Watermark' => array('enable' => false), 'Normalizer' => array('enable' => false), 'Sanitizer' => array('enable' => false))));
 // custom session handler
 require dirname(__FILE__) . '/class/xelFinderSession.class.php';
 // End for XOOPS
 //////////////////////////////////////////////////////
 $opts = array('isAdmin' => $isAdmin, 'locale' => 'ja_JP.UTF-8', 'optionsNetVolumes' => $optionsNetVolumes, 'session' => new xelFinderSession(array('base64encode' => $xoops_elFinder->base64encodeSessionData, 'keys' => array('default' => 'xel_' . $mydirname . '_Caches', 'netvolume' => _MD_XELFINDER_NETVOLUME_SESSION_KEY))), 'bind' => array('netmount.pre' => array($xoops_elFinder, 'netmountPreCallback'), 'netmount' => array($xoops_elFinder, 'netmountCallback'), 'mkdir mkfile put upload extract' => array($xoops_elFinder, 'notifyMail'), 'mkdir mkfile put paste upload extract resize' => array($xoops_elFinder, 'changeAddParent'), 'upload.pre mkdir.pre mkfile.pre rename.pre archive.pre' => array('Plugin.Sanitizer.cmdPreprocess', 'Plugin.Normalizer.cmdPreprocess'), 'upload.presave' => array('Plugin.Sanitizer.onUpLoadPreSave', 'Plugin.Normalizer.onUpLoadPreSave', array($xoops_elFinder, 'autoRotateOnUpLoadPreSave'), 'Plugin.AutoResize.onUpLoadPreSave', 'Plugin.Watermark.onUpLoadPreSave')), 'plugin' => array('AutoResize' => array('enable' => false), 'Watermark' => array('enable' => false)), 'debug' => $debug, 'uploadTempPath' => XOOPS_TRUST_PATH . '/cache', 'roots' => $rootVolumes, 'callbackWindowURL' => !empty($_REQUEST['myUrl']) ? $_REQUEST['myUrl'] . 'connector.php?cmd=callback' : '');
 // clear output buffer
 while (ob_get_level()) {
     if (!@ob_end_clean()) {