From bc122b2eb585326eb55354b0105264e46cb0e71c Mon Sep 17 00:00:00 2001 From: nao-pon Date: Thu, 20 Jun 2013 23:13:40 +0900 Subject: [PATCH] [driver:dropbox] add options PDO_User, PDO_Pass, PDO_Options --- php/elFinderVolumeDropbox.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/php/elFinderVolumeDropbox.class.php b/php/elFinderVolumeDropbox.class.php index cf2e7aefb..67fc43b7a 100644 --- a/php/elFinderVolumeDropbox.class.php +++ b/php/elFinderVolumeDropbox.class.php @@ -97,6 +97,9 @@ class elFinderVolumeDropbox extends elFinderVolumeDriver { 'root' => 'dropbox', 'path' => '/', 'PDO_DSN' => '', // if empty use 'sqlite:(metaCachePath|tmbPath)/elFinder_dropbox_db_(hash:dropboxUid+consumerSecret)' + 'PDO_User' => '', + 'PDO_Pass' => '', + 'PDO_Options' => array(), 'PDO_DBName' => 'dropbox', 'treeDeep' => 0, 'tmbPath' => '../files/.tmb', @@ -349,7 +352,7 @@ class elFinderVolumeDropbox extends elFinderVolumeDriver { // DataBase table name $this->DB_TableName = $this->options['PDO_DBName']; // DataBase check or make table - if ($this->DB = new PDO($pdodsn)) { + if ($this->DB = new PDO($pdodsn, $this->options['PDO_User'], $this->options['PDO_Pass'], $this->options['PDO_Options'])) { if (! $this->checkDB()) { return $this->setError('Can not make DB table'); }