Ejemplo n.º 1
0
 function ftpAccessDriver($driverName, $filePath, $repository, $optOptions = NULL)
 {
     $this->user = $optOptions ? $optOptions["user"] : $this->getUserName($repository);
     $this->password = $optOptions ? $optOptions["password"] : $this->getPassword($repository);
     parent::AbstractAccessDriver($driverName, INSTALL_PATH . "/plugins/access.fs/fsActions.xml", $repository);
     unset($this->actions["upload"]);
     // DISABLE NON-IMPLEMENTED FUNCTIONS FOR THE MOMENT
     //unset($this->actions["copy"]);
     $this->initXmlActionsFile(INSTALL_PATH . "/plugins/access.remote_fs/additionalActions.xml");
     $this->xmlFilePath = INSTALL_PATH . "/plugins/access.fs/fsActions.xml";
 }
 function remote_fsAccessDriver($driverName, $filePath, $repository, $optOptions = NULL)
 {
     parent::AbstractAccessDriver($driverName, INSTALL_PATH . "/plugins/access.fs/fsActions.xml", $repository);
     unset($this->actions["upload"]);
     // ADD additional actions
     /*
     $this->xmlFilePath = INSTALL_PATH."/plugins/access.remote_fs/additionalActions.xml";
     $this->parseXMLActions();
     */
     $this->initXmlActionsFile(INSTALL_PATH . "/plugins/access.remote_fs/additionalActions.xml");
     $this->xmlFilePath = INSTALL_PATH . "/plugins/access.fs/fsActions.xml";
 }
Ejemplo n.º 3
0
 function sshAccessDriver($driverName, $filePath, $repository, $optOption = NULL)
 {
     $repositoryPath = $repository->getOption("PATH");
     $accountLimit = strpos($repositoryPath, "@");
     if ($accountLimit !== false) {
         $account = substr($repositoryPath, 0, $accountLimit);
         $repositoryPath = substr($repositoryPath, $accountLimit + 1);
         $repository->setOption("PATH", $repositoryPath);
     }
     // Set the password from a per user specific config
     $account = $optOption ? $optOption["account"] : $this->getUserName($repository);
     $password = $optOption ? $optOption["password"] : $this->getPassword($repository);
     $this->SSHOperation = new SSHOperations($repositoryPath, $account, $password);
     parent::AbstractAccessDriver($driverName, $filePath, $repository);
 }
Ejemplo n.º 4
0
 function ajxp_confAccessDriver($driverName)
 {
     parent::AbstractAccessDriver($driverName, INSTALL_PATH . "/plugins/access.ajxp_conf/ajxp_confActions.xml", null);
 }
Ejemplo n.º 5
0
 function fsAccessDriver($driverName, $filePath, $repository, $optOptions = NULL)
 {
     parent::AbstractAccessDriver($driverName, $filePath, $repository);
 }
Ejemplo n.º 6
0
 function mysqlAccessDriver($driverName, $filePath, $repository, $optOptions = NULL)
 {
     $this->user = $optOptions ? $optOptions["user"] : $repository->getOption("DB_USER");
     $this->password = $optOptions ? $optOptions["password"] : $repository->getOption("DB_PASS");
     parent::AbstractAccessDriver($driverName, $filePath, $repository);
 }