function actionDelete($aDirectories, $sType = 'module') { $oFtp = new BxDolFtp($_SERVER['HTTP_HOST'], getParam('sys_ftp_login'), getParam('sys_ftp_password'), getParam('sys_ftp_dir')); if (!$oFtp->connect()) { return '_adm_txt_modules_cannot_connect_to_ftp'; } $sDir = $this->_aTypesConfig[$sType]['folder']; foreach ($aDirectories as $sDirectory) { if (!$oFtp->delete($sDir . $sDirectory)) { return '_adm_txt_modules_cannot_remove_package'; } } return '_adm_txt_modules_success_delete'; }
function actionDelete($aDirectories) { $oFtp = new BxDolFtp($_SERVER['HTTP_HOST'], getParam('sys_ftp_login'), getParam('sys_ftp_password'), getParam('sys_ftp_dir')); if (!$oFtp->connect()) { return '_adm_txt_modules_cannot_connect_to_ftp'; } foreach ($aDirectories as $sDirectory) { if (!$oFtp->delete('modules/' . $sDirectory)) { return '_adm_txt_modules_cannot_remove_package'; } } return '_adm_txt_modules_success_delete'; }