Esempio n. 1
0
<TR>
	<?php 
    echo freshports_PageBannerText($Title, 3);
    ?>
</TR>

<?php 
    $numrows = $MaxNumberOfPorts;
    $database = $db;
    if ($database) {
        if (!empty($revision) && count($message_id_array)) {
            // we have multiple messages for that commit
            echo '<tr><TD VALIGN="top">';
            echo "We have multiple emails for that revision: ";
            $Commit->FetchNth(0);
            $clean_revision = htmlentities($Commit->svn_revision);
            // e.g. http://svnweb.freebsd.org/base?view=revision&revision=177821
            echo '<a href="http://' . htmlentities($Commit->svn_hostname) . htmlentities($Commit->path_to_repo) . '?view=revision&amp;revision=' . $clean_revision . '">' . $clean_revision . '</a>';
            echo "<ol>\n";
            foreach ($message_id_array as $i => $message_id) {
                $Commit->FetchNth($i);
                $clean_message_id = htmlentities($Commit->message_id);
                echo '<li><a href="/commit.php?message_id=' . $clean_message_id . '">' . htmlentities($clean_message_id) . '</a></li>' . "\n";
            }
            echo "</ol></TD></tr>";
        } else {
            #
            # we limit the select to recent things by using a date
            # otherwise, it joins the whole table and that takes quite a while
            #