} if (isset($_GET['revision'])) { $revision = pg_escape_string($_GET['revision']); } # I'm quite sure we use only message_id, and never commit_id. if ($message_id != '') { require_once $_SERVER['DOCUMENT_ROOT'] . '/../classes/commit.php'; $Commit = new Commit($db); $Commit->FetchByMessageId($message_id); freshports_ConditionalGet($Commit->last_modified); } else { if ($revision != '') { require_once $_SERVER['DOCUMENT_ROOT'] . '/../classes/commit.php'; $Commit = new Commit($db); // Get the message IDs for this revision $message_id_array = $Commit->FetchByRevision($revision); if (count($message_id_array) == 1) { header('Location: /commit.php?message_id=' . $message_id_array[0]); exit; } freshports_ConditionalGet($Commit->last_modified); if ($Debug) { echo 'oh... got something back there: <pre>' . print_r($message_id_array, true) . '</pre>'; } } } if (isset($_REQUEST['page'])) { $PageNo = $_REQUEST['page']; } if (isset($_REQUEST['page_size'])) { $PageSize = $_REQUEST['page_size'];