diff --git a/www-ssl/inc/header.php b/www-ssl/inc/header.php index bbcf61ac..55ddbb24 100755 --- a/www-ssl/inc/header.php +++ b/www-ssl/inc/header.php @@ -35,7 +35,22 @@ echo "\n"; --- $title ---"; + +$Version = ""; + +if( is_readable( "./inc/.svn/entries")) +{ + $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 $Version ---"; ?>