summaryrefslogtreecommitdiff
path: root/www-ssl
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2007-08-09 16:57:20 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2007-08-09 16:57:20 +0000
commit5a2b6d0735a38ec353ea8b8020396a27ddd4fba3 (patch)
tree3be12330b3048a81e489b762478ff38c875b8b29 /www-ssl
parentd19b5bbeda9eb4a7e003dd7411dd96184f834e96 (diff)
svn version anzeigen gefixt
git-svn-id: svn://svn.cccv.de/engel-system@232 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl')
-rwxr-xr-xwww-ssl/inc/header.php17
1 files changed, 4 insertions, 13 deletions
diff --git a/www-ssl/inc/header.php b/www-ssl/inc/header.php
index 55459c3a..0e435ab0 100755
--- a/www-ssl/inc/header.php
+++ b/www-ssl/inc/header.php
@@ -41,19 +41,10 @@ echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
<HEAD>
<?PHP
-$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 ). ")";
-}
+// SVN versions auswertung
+exec("svnversion", $VersionArray);
+if( strlen($VersionArray[0]))
+ $Version = "(r ". $VersionArray[0]. ")";
echo "<TITLE>--- $title $Version ---</TITLE>";
?>