$value) { if (!in_array($value,array(".",".."))) { if (is_dir($dir . DIRECTORY_SEPARATOR . $value)) { $result[$value] = $this->dirToArray($dir . DIRECTORY_SEPARATOR . $value); } else { if(!is_writeable($dir . DIRECTORY_SEPARATOR . $value)) { echo '
File: '.$dir . DIRECTORY_SEPARATOR . $value.' not writable!
'; } else { echo 'File: '.$dir . DIRECTORY_SEPARATOR . $value.' OK!
'; } } } } return $result; } public function process(Vtiger_Request $request) { $this->dirToArray(vglobal('root_directory').'modules/Workflow2/'); $this->dirToArray(vglobal('root_directory').'modules/Settings/Workflow2/'); $this->dirToArray(vglobal('root_directory').'layouts/vlayout/modules/Workflow2/'); $this->dirToArray(vglobal('root_directory').'layouts/vlayout/modules/Settings/Workflow2/'); echo 'FINISHED
'; } }