svn version anzeigen gefixt

git-svn-id: svn://svn.cccv.de/engel-system@232 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
cookie 2007-08-09 16:57:20 +00:00
parent d19b5bbeda
commit 5a2b6d0735
1 changed files with 4 additions and 13 deletions

View File

@ -41,19 +41,10 @@ echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
<HEAD> <HEAD>
<?PHP <?PHP
$Version = ""; // SVN versions auswertung
exec("svnversion", $VersionArray);
if( is_readable( "./inc/.svn/entries")) if( strlen($VersionArray[0]))
{ $Version = "(r ". $VersionArray[0]. ")";
$file = fopen( "./inc/.svn/entries", "r");
while(!feof($file))
if( strpos( ($temp = fgets($file)) , "revision" ) ) $Version = $temp;
fclose( $file);
$start = strpos( $Version, "=\"")+2;
$len = strpos( $Version, "\"/") - $start;
$Version = "(r ". substr( $Version, $start, $len ). ")";
}
echo "<TITLE>--- $title $Version ---</TITLE>"; echo "<TITLE>--- $title $Version ---</TITLE>";
?> ?>