'; $html_output_top = ''; $html_output_main = ''; $ulist = false; $ok = 0; $err = 1; global $zeile_nr; global $act_nr; global $act_tag; global $act_htmltag; global $act_endtag; $zeile_nr = 0; $href_top = '
'; while (!feof ($lfile)){ $line = trim(fgets ($lfile, 4096)); $zeile_nr++; // Kommentare überlesen if ($noprt) { if ((strpos($line,"*/") !== false )){ $noprt = false; $line = substr($line,strpos($line,"*/")+2); if ($line == ''){ continue; } } else { continue; } } if ($line == ''){ // $line = '';
}
if (strchr($tag_param,'f') !== false ){ // Fett
$tag_c .= '';
$html_text .= '';
}
if (strchr($tag_param,'u') !== false ){ // Unterstrichen
$tag_c .= '';
$html_text .= '';
$x4 = str_replace('u','',$x4);
}
if (strchr($tag_param,'i') !== false ){ // Kursiv Italic
$tag_c .= '';
$html_text .= '';
}
if (strchr($tag_param,'g') !== false ){ // Grosser Text
$tag_c .= '';
$html_text .= '';
}
if (strchr($tag_param,'k') !== false ){ // Klein
$tag_c .= '';
$html_text .= '';
}
if (strchr($tag_param,'t') !== false ){ // Terminal Text
$tag_c .= '';
$html_text .= '';
}
if (strchr($tag_param,'c') !== false ){ // Center
$tag_c .= '';
$html_text .= '
\n";
echo "Zeilentext:".$line."
\n";
exit; // Notaustieg bei falschem tag
}
$line = substr($line,0,strpos($line,'§>')).$tag_c.substr($line,strpos($line,'§>')+2);
}
}
}
}
// Zeilenübergreifende Tags beenden
while(strpos($line,'§>') !== false ){
$tag_c = array_pop($tag_close);
if ($tag_c == ''){
echo "ACHTUNG TAGFEHLER STELLE 4 Zeile ".$zeile_nr."
\n";
echo "Zeilentext:".$line."
\n";
exit; // Notaustieg bei falschem tag
}
$line = substr($line,0,strpos($line,'§>')).$tag_c.substr($line,strpos($line,'§>')+2);
}
//
SetActTag('');
while (strpos($line,'';
$line = GetNewTag($param_block,$htmlcode,$line);
}
//
SetActTag('');
while (strpos($line,''
,''
,'
'
,''
);
$line = GetNewTag($param_block,$htmlcode,$line);
}
// Links
SetActTag('link');
while (strpos($line,$act_htmltag) !== false ) {
$param_block = GetParamBlock($line); // Inhalt des Tags holen
list($npos,$n_anker) = split('#',$param_block);
$alt_text = 'LINK'; // Alternativtext falls Button nicht da ist
// Generiert einen Anker und Button, der zu HTML_EDIT führt bei $sys_admin
$html_eingabe = GetEditButton($ufile, // Filname des Files, das geändert werden soll
$alt_text, // Alternativer Buttontext
$sys_link_load_button, // Buttongrafik
$sys_link_load_err_button, // Buttongrafik
$npos, // Parm1
$n_anker); // Parm2
list($ntxt,$nhtml,$ninfo,$nfun,$nmenu) = $navigation[$npos];
$htmlcode = '';
if ($ntxt == '' or ($npos[0] == '*' and $nmenu != 'hauptmenu')){
if ($n_anker == ''){
$htmlcode = $html_eingabe['err'].
str_replace($sys_sonderzeichen_suche_href,
$sys_sonderzeichen_ersetze_href,
''.$npos.'');
}
else{
$htmlcode = $html_eingabe['err'].
str_replace($sys_sonderzeichen_suche_href,
$sys_sonderzeichen_ersetze_href,
''.$n_anker.'');
}
}
else{
if ($n_anker == ''){
$htmlcode = $html_eingabe['ok'].
str_replace($sys_sonderzeichen_suche_href,
$sys_sonderzeichen_ersetze_href,
''.$ntxt.'');
}
else{
if ($xfile = fopen($verz_html."/".$nhtml, 'r')){
$buffer = fread($xfile,filesize($verz_html."/".$nhtml));
fclose($xfile);
$k = 0;
$found = false;
while (++$k<=$sys_anz_ueberschriften){
$anker_position = strpos($buffer,'',$zusatztext);
$htmlcode = $html_eingabe['ok'].
str_replace($sys_sonderzeichen_suche_href,
$sys_sonderzeichen_ersetze_href,
''.
$n_anker.'');
$found = true;
break;
}
}
if (!$found){
$htmlcode = $html_eingabe['err'].
str_replace($sys_sonderzeichen_suche_href,
$sys_sonderzeichen_ersetze_href,
''.$n_anker.'');
}
}
else{
$htmlcode = $html_eingabe['err'].
str_replace($sys_sonderzeichen_suche_href,
$sys_sonderzeichen_ersetze_href,
''.$n_anker.'');
}
}
}
$line = GetNewTag($param_block,$htmlcode,$line);
}
}
if (strpos($line,''
,' '
,''
,''
,' '
,''
,''
,'
') !== false ){
$pre_tag = '';
}
if (strpos($line,'
') !== false ){
$pre_tag = '
';
}
$html_output_main .= str_replace($sys_sonderzeichen_suche, $sys_sonderzeichen_ersetze, $line) . $pre_tag."\n";
if ($ii++ > 299){
exit; // Notaustieg bei falschem tag
}
}
echo "\n";
return str_replace('', "\n".$html_output_top.'
', $html_output_main) . $pre_tag."\n";
}
}
?>