###CONTENT###

Universität Würzburg     Sanderring 2     97070 Würzburg     Tel. 0931/31-0

EOF; function href($name,$url) { return "$name\n"; } function head($rubrik,$mytitle,$lang='de') { global $rzuwtitle; $rzuwtitle = $mytitle; ob_start(); } function foot($d1='',$d2='',$d3='',$d4='',$encoding='ISO-8859-1',$find_replace='') { global $self, $rzuwtitle, $domain, $vorlage, $rootpath, $fullbase; # sammle die Ausgabe in $content $content = ob_get_contents(); ob_end_clean(); if(!preg_match("/\/$/",$self)) { $rootpath = $self; } elseif(!preg_match("/\/$/",$rootpath)) { $rootpath .= '/'; } if(!isset($domain)) { $domain = $_SERVER['SERVER_NAME']; } if(!isset($rootpath)) { $rootpath = '/'; } if($fullbase) { $base = $fullbase; } else { $base = "http://".$domain.$rootpath; } # entferne zunächst alles vor und nach den body-tags der umzubauenden Seite $find = array('/^.*]*>/is','/<\/BODY>.*$/is'); $replace = array("\n\n","\n\n"); $content = preg_replace($find,$replace,$content); # und ersetze marker in der Vorlage $find = array('/###UNIWUE###/','/###BASE###/','/###TITLE###/','/###CONTENT###/','/###ENCODING###/'); $replace = array("http://www.uni-wuerzburg.de",$base,$rzuwtitle,$content,$encoding); if($find_replace) { foreach($find_replace as $key=>$value) { $find[] = $key; $replace[] = $value; } } print preg_replace($find,$replace,$vorlage); } function button() { #print "