summaryrefslogtreecommitdiff
path: root/www-ssl/inc/header.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-08-31 05:22:05 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-08-31 05:22:05 +0000
commit215bab4d4a7ebbfa41f566c2f7d4fb05c45979ca (patch)
treefac2262973ed3477ee6eab585a9bfb1fc185858d /www-ssl/inc/header.php
parent6dd3e7e17ec151ea523f5b99cf0bd30dc441b030 (diff)
anzeige detr svn version im titel
git-svn-id: svn://svn.cccv.de/engel-system@148 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/inc/header.php')
-rwxr-xr-xwww-ssl/inc/header.php17
1 files changed, 16 insertions, 1 deletions
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 "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
<HTML>
<HEAD>
<?PHP
-echo "<TITLE>--- $title ---</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>--- $title $Version ---</TITLE>";
?>
<meta name="keywords" content="Engel, Himmelsverwaltung">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">