* @revision 01 * @license http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution-Share Alike 2.0 Germany * @homepage http://oss.tiggerswelt.net/svn_browse * @copyright Copyright © 2008 tiggersWelt.net */ ?> " . basename ($URL) . "\n"; // Get directory-listing from SVN if ($Directory = ($Path [strlen ($Path) - 1] == "/")) { $Contents = svn_ls ($URL . $Path); print "

Contents of $Path

\n" . "\n" . "" . "" . "" . "" . "" . "" . "\n" . "\n"; if ($Path != "/") print "" . "" . "" . ""; foreach ($Contents as $Item) { print "" . "" . "" . "" . "" . "" . "" . "\n"; } print "
" . "NameRevisionAuthorLast modificationSize

\"[DIR]\"..
\"[DIR]\"";" . $Item ["name"] . "" . $Item ["created_rev"] . "" . $Item ["last_author"] . "" . $Item ["time"] . "" . ($Item ["type"] == "dir" ? "" : $Item ["size"]) . "
\n"; } else { print "

Parent directory

\n"; // Show contents of file if (isset ($_REQUEST ["Revision"])) print "

Contents of $Path

\n" . "
" . htmlspecialchars (svn_cat ($URL . $Path, $_REQUEST ["Revision"])) . "
\n"; } // Read SVN History of current item print "

SVN History" . ($Directory ? "" : " of $Path") . "

\n"; $History = svn_log ($URL . $Path); $Action = array ( "M" => "Modified", "A" => "Added", "R" => "Replaced", "D" => "Removed", ); $l = strlen ($Path); foreach ($History as $Item) { print "

Revision " . $Item ["rev"] . "

\n" . "

" . $Item ["author"] . " / " . $Item ["date"] . "" . ($Directory ? "" : " [View contents]") . "

\n" . "

" . htmlspecialchars ($Item ["msg"]) . "

\n" . "

Affected files:

\n" . "\n" . "
\n"; } print "
svnBrowse 0.1 / SVN_Client " . svn_client_version () . " on " . $_SERVER ["SERVER_NAME"] . "
\n"; ?>