$version = $_POST['version']; if ($oIntegrity->init($version)) { $oIntegrity->checkIntegrity(); $aTasksConstructive = $oIntegrity->aTasksConstructiveAll; $aTasksDestructive = $oIntegrity->aTasksDestructiveAll; $aMessages = $oIntegrity->getMessages(); $file_schema = $oIntegrity->getFileSchema(); $file_changes = $oIntegrity->getFileChanges(); } } else { if (array_key_exists('btn_integ_exec', $_POST)) { $version = $_POST['changes_version']; if ($oIntegrity->init($version)) { $oIntegrity->aTasksConstructiveSelected = isset($_POST['constructive']) ? $_POST['constructive'] : array(); $oIntegrity->aTasksDestructiveSelected = isset($_POST['destructive']) ? $_POST['destructive'] : array(); $oIntegrity->compileExecuteTasklist('prune', 'execute'); } if ($oIntegrity->init($version)) { $oIntegrity->checkIntegrity(); $aTasksConstructive = $oIntegrity->aTasksConstructiveAll; $aTasksDestructive = $oIntegrity->aTasksDestructiveAll; $aMessages = $oIntegrity->getMessages(); $file_schema = $oIntegrity->getFileSchema(); $file_changes = $oIntegrity->getFileChanges(); } } } $options = getChangesetOptions($version); function getChangesetOptions($selected) { $aFiles = array();