Пример #1
0
		FreshPorts has dealt with the old commits.  This may take a few hours.

	<P><a name="deleted"><?php 
echo freshports_Deleted_Icon();
?>
</a> Deleted:  This port has been removed from the ports tree.</P>

	<P><?php 
echo freshports_Mail_Icon();
?>
		Commit message: This link will take you to the original cvs-all message in the FreeBSD mailing list archives.
		Note that it can take a few minutes for the message to appear in the archives.  This link will not appear
		for commit messages before 3 March 2002 (which is the date FreshPorts started to store the message-id).</P>

	<P><?php 
echo freshports_Commit_Icon();
?>
 FreshPorts commit message: This will take you to the FreshPorts commit
		message and allow you to see all other ports which were affected by this commit.   This link will not appear
        for commit messages before 3 March 2002 (which is the date FreshPorts started to store the message-id).
        <br>
        <br>
        NOTE: This link has been made redundant by recent advances in the Files link.  See next icon.
        </P>

	<P><?php 
echo freshports_Files_Icon();
?>
		Files: If you click on this graphic, you will be taken to the list of files
		touched by the commit in question.</P>
Пример #2
0
function freshports_Commit_Link($message_id, $LinkText = '')
{
    #
    # produce a link to the commit.  by default, we provide the graphic link.
    #
    $HTML = '<a href="/commit.php?message_id=' . $message_id . '">';
    if ($LinkText == '') {
        $HTML .= freshports_Commit_Icon();
    } else {
        $HTML .= $LinkText;
    }
    $HTML .= '</a>';
    return $HTML;
}