You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.5 KiB
PHP
85 lines
2.5 KiB
PHP
<?php
|
|
include( 'rtf/rtfparser.php' );
|
|
|
|
/**********************************************************
|
|
/* Title der mit printf("Titleformat%s", basename(php_self)
|
|
/* gebildet wird.
|
|
***********************************************************/
|
|
function Print_Title($navtext)
|
|
{
|
|
global $sys_titelformat;
|
|
global $sys_dokutitel;
|
|
global $sys_admin;
|
|
global $sys_doku_gen;
|
|
echo $sys_dokutitel.'"';
|
|
if ($sys_admin && $sys_doku_gen){
|
|
echo HtmlText(sprintf( $sys_titelformat,$navtext.' - Anzeige aus Generierten Files wenn möglich'));
|
|
}
|
|
else{
|
|
echo HtmlText(sprintf( $sys_titelformat,$navtext));;
|
|
}
|
|
echo '"';
|
|
}
|
|
|
|
/**********************************************************
|
|
/* Liefert Author
|
|
***********************************************************/
|
|
function Print_Author()
|
|
{
|
|
global $sys_author;
|
|
echo '"';
|
|
echo HtmlText($sys_author);
|
|
echo '"';
|
|
}
|
|
|
|
/**********************************************************
|
|
/* Gibt eine komplette Errorseite mit
|
|
/* Text aus
|
|
/* der Text muss in Htmlformat sein - also vorher formatieren
|
|
***********************************************************/
|
|
function Print_Errorpage($utext){
|
|
?>
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
|
|
<title> <?php Print_Title('Errorpage'); ?> </title>
|
|
</head>
|
|
<body>
|
|
<?php echo $utext;?>
|
|
<p>
|
|
<a href="http://validator.w3.org/check?uri=referer"><img
|
|
src="http://www.w3.org/Icons/valid-html32"
|
|
height="31" width="88"></a>
|
|
</p>
|
|
</body>
|
|
</html>
|
|
<?php
|
|
exit;
|
|
}
|
|
|
|
/**********************************************************
|
|
/* Gibt den Text in HtmlRefkonform zurück
|
|
/* es wird nicht alles konvertiert,
|
|
/* nur das, was für den Href benötigt wird
|
|
***********************************************************/
|
|
function HtmlHref($utext){
|
|
global $sys_sonderzeichen_suche_href;
|
|
global $sys_sonderzeichen_ersetze_href;
|
|
return str_replace($sys_sonderzeichen_suche_href,
|
|
$sys_sonderzeichen_ersetze_href,
|
|
$utext);
|
|
}
|
|
/**********************************************************
|
|
/* Gibt den Text in Htmlkonform zurück
|
|
/* es wird nicht alles konvertiert, (auch mögliche Htmltags !! '<' => '≶')
|
|
***********************************************************/
|
|
function HtmlText($utext){
|
|
global $sys_sonderzeichen_suche_full;
|
|
global $sys_sonderzeichen_ersetze_full;
|
|
return str_replace($sys_sonderzeichen_suche_full,
|
|
$sys_sonderzeichen_ersetze_full,
|
|
$utext);
|
|
}
|
|
|
|
?>
|