continue; } $basename = $parts[1]; $attachments[] = array('filename' => $filename, 'pathname' => "{$tempdir}/{$basename}", 'description' => ''); } if (substr($topicid, 0, 6) == 'reqmts') { $id = substr($topicid, 6); if ($username !== '' && $_REQUEST["watchproject"]) { al_createwatch("{$id}-news", $username); } while (isset($_REQUEST["subject"])) { $body = "{$_REQUEST['body']}"; $quiet = false; if ($_REQUEST["revision"]) { include_once "diff.php"; list($rc, $diff) = diffText($_REQUEST["before"], $_REQUEST["after"], intval($_REQUEST["reqversion"])); if ($rc) { break; } if ($diff !== '') { $body .= "\n/-/-/-/-/-begin-diff-/-/-/-/-/\n{$diff}"; } // If this user is the project lead then we will suppress all // notifications about this post, then we will automatically // accept the change proposal. list($rc, $projinfo) = ff_getprojectinfo($id); if ($rc == 0 && $projinfo['lead'] !== '' && $projinfo['lead'] === $username) { $quiet = true; } } list($rc, $postid) = ff_createpost("{$topicid}", "{$_REQUEST['subject']}", $body, $parent, $_REQUEST["anonymous"] ? '' : $username, '', $attachments, $_REQUEST["watchthread"] ? 1 : 0, projurl($id), $quiet);
it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Fossfactory-src is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with Fossfactory-src. If not, see <http://www.gnu.org/licenses/>. */ $id = scrub($_REQUEST['id']); if (isset($_REQUEST["orig"])) { include_once "diff.php"; list($rc, $patch) = diffText($_REQUEST["reverted"], $_REQUEST["orig"]); if (!$rc) { ff_resolvemergeconflict($id, $GLOBALS['username'], $patch); } header("Location: dispute.php?id={$id}"); exit; } if (isset($_REQUEST["op"])) { if ($_REQUEST["op"] === 'reply') { ff_addargument($id, $GLOBALS['username'], $_REQUEST['body']); } else { if ($_REQUEST["op"] === 'cancel') { ff_canceldispute($id, $GLOBALS['username']); } else { if ($_REQUEST["op"] === 'conclude') { ff_concludedispute($id, $GLOBALS['username']);