',$param_start_pos); // kompletten block bis abschliessendem '>' ausschneiden $param_block = substr($line, $param_start_pos, $param_ende_pos - $param_start_pos); $line = str_replace("", '', $line); // Parameter splitten list($xml_filename, $xsl_filename) = split(',',$param_block); // Parameter 1 = Filename zum XML file, extension wird geadded wenn fehlt if( strpos($xml_filename,".xml") == FALSE ) $xml_filename .= ".xml"; // Parameter 2 = Filename XSL File, wenn fehlt, dann aus XML Filenamen generieren if ($xsl_filename == ''){ $xsl_filename = str_replace( ".xml", "xsl", $xml_filename); } // Extention test , für xsl if( strpos($xsl_filename,".xsl") == FALSE ) $xsl_filename .= ".xsl"; // style="width: 50%;" if (!file_exists("../".$verz_xml.'/'.$xml_filename)){ PrintFehler("xml_file: " . $xml_filename ." nicht vorhanden - Fehler in ".$uf); } if (!file_exists("../".$verz_xml.'/'.$xsl_filename)){ PrintFehler("xsl_file: " . $xsl_filename ." nicht vorhanden - Fehler in ".$uf); } $line = str_replace("", '', $line); if ($i++ > 10){ PrintFehler("Fehlerhaftes xml Tag " . $line ." Tag ist nicht in Orndung - Syntax Fehler in ".$uf); exit; // Notaustieg bei falschem tag } } // // RTF PARSEN // $i = 0; while ((strpos($line,'',$param_start_pos); // kompletten block bis abschliessendem '>' ausschneiden $param_block = substr($line, $param_start_pos, $param_ende_pos - $param_start_pos); $rtf_filename = $verz_rtf.'/'.$param_block; if( strpos($rtf_filename,".rtf") == FALSE ) $rtf_filename .= ".rtf"; if (!file_exists("../".$rtf_filename)){ PrintFehler("rtf_file: " . $rtf_filename ." nicht vorhanden - Fehler in ".$uf); } $line = str_replace("", '', $line); if ($i++ > 10){ echo "ACHTUNG TAGFEHLER STELLE rtf\n"; exit; // Notaustieg bei falschem tag } } // Img $i = 0; while (!(strpos($line,"")+1); // Fehlerhaftes Tag führt sonst zum loop if ($tag == "") { PrintFehler("Fehlerhaftes Tag " . $line ." Tag ist nicht in Orndung - Syntax Fehler in ".$uf); break; } else { $ttag = strpos($tag,","); if ($ttag === false){ $ttag = strpos($tag,">"); $titel = ""; } else{ $titel = substr($tag,$ttag + 1,strlen($tag) - $ttag - 2); } $lstart = strpos($tag,"=")+1; $link = substr($tag,$lstart,$ttag - $lstart); $class = substr( $tag,2,strpos($tag,"=")-2); // Klammern weg für Ausdruck $prtag = substr($tag,1,strlen($tag)-2); if (!file_exists("../".$verz_img."/".$link)){ PrintFehler("Image " . $link . " existiert nicht in " . $prtag); } if ($titel == ""){ PrintFehler("Image - Titel existiert nicht in " . $prtag); } $line = str_replace($tag,'',$line); } if ($i++ > 10){ // Notaustieg bei falschem tag PrintFehler("Img " . $tag . " ist nicht in Orndung - Syntax Fehler in ".$uf); break; // Notaustieg bei falschem tag } } // $i = 0; while (!(strpos($line,"")+1); // Fehlerhaftes Tag führt sonst zum loop if ($tag == ""){ PrintFehler("Fehlerhaftes Tag " . $line ." Tag ist nicht in Orndung - Syntax Fehler in ".$uf); break; } else { $ttag = strpos($tag,","); if ($ttag === false) { $ttag = strpos($tag,">"); $titel = ""; } else { $titel = substr($tag,$ttag + 1,strlen($tag) - $ttag - 2); } $lstart = strpos($tag,"=")+1; $link = $verz_video."/".substr($tag,$lstart,$ttag - $lstart); if (!file_exists('../'.$link.".html")){ PrintFehler("Info - Video-Html " . $link . ".html existiert nicht in " . $uf); } if (!file_exists('../'.$link.".swf")){ PrintFehler("Info - Video-Swf " . $link . ".swf existiert nicht in " . $uf); } if (!file_exists('../'.$link . ".jpg") and !file_exists('../'.$link . ".gif")){ PrintFehler("Info - Thumbnail " . $link . ".jpg / .gif existiert nicht in " . $uf); } $line = str_replace($tag,'',$line); } if ($i++ > 10){ PrintFehler("Video " . $tag . " ist nicht in Orndung - Syntax Fehler in ".$uf); break; // Notaustieg bei falschem tag } } // Link $i = 0; while(!(strpos($line,"',$posa); list($navpos,$nav_anker) = split('#',substr($line,$posa7,$pose-$posa7)); if ($navpos[0] == "*"){ PrintFehler("Link " . $navpos . " verweißt auf einen Label in " . $uf); } else { list($navtxt,$navhtml,$navinfo) = $navigation[$navpos]; if ($navtxt == ""){ PrintFehler("Link " . $navpos . " existiert nicht in " . $uf); } else if($nav_anker != '') { if ($xfile = fopen("../".$verz_html."/".$navhtml, 'r')){ $buffer = fread($xfile,filesize("../".$verz_html."/".$navhtml)); fclose($xfile); $k = 0; $found = false; while (++$k<=$sys_anz_ueberschriften){ if (strpos($buffer,' 10){ PrintFehler("Link " . $navpos . " ist nicht in Orndung - Syntax Fehler in ".$uf); break; // Notaustieg bei falschem tag } } } fclose($lfile); } else{ echo "Internal Error\n"; exit; } } // // -- Menü überprüfen // function Check_Menu($sys_sprache){ include "include/navigation_data.php"; $sonderfuktionen = array('$dummy','$link','$htmlfile','$infofile'); while (list ($nKey,list($navtxt,$navhtml,$navinfo,$navfunkt,$navmenu)) = each ($navigation)) { if (in_array($navinfo, $sonderfuktionen) === false){ PrintEcho("Überprufe Menüpunkt :".$nKey." , ".$navtxt." , ".$navhtml." , ".$navinfo); if ($navtxt == ""){ PrintFehler("Bei " . $nKey . " gibt es keinen NAVTXT"); } if (($nKey[0] == "*" or $nKey[0] == "$") and $navfunkt == '' and ($navhtml != "" or $navinfo != "")) { PrintFehler("Bei " . $nKey . " gibt es NAVHTML und/oder NAVINFO"); } if (($nKey[0] != "*" and $nKey[0] != "$") and $navfunkt == '' and $navhtml == "") { PrintFehler("Bei " . $nKey . " gibt es kein NAVHTML"); } if ($navhtml != "" and $navfunkt == '' ) { $f = $verz_html . "/" . $navhtml; if (!file_exists("../".$f)){ PrintFehler("Bei " . $nKey . " exisitiert das File " . $f . " nicht"); } else { PrintEcho("Überprufe Dokuhtml :".$f); Check_Html("../".$f); } } if ($navinfo != "" and $navfunkt == '') { $f = $verz_info . "/" . $navinfo; if (!file_exists("../".$f)){ PrintFehler("Bei " . $nKey . " exisitiert das File " . $f . " nicht"); } else { PrintEcho("Überprufe Infohtml :".$f); Check_Html("../".$f); } } PrintEcho(""); } } } ?> Check
"); PrintEcho("Check Menu Deutsch"); PrintEcho(""); Check_Menu("deu"); PrintEcho("

"); PrintEcho("Check Browser"); PrintEcho(""); $sys_admin = true; include "include/geteditor_inc.php"; if ($sys_path_editor == ''){ PrintFehler("Kein Editor gefunden !!!!"); } else{ PrintEcho("Editor gefunden: ".$sys_path_editor); } PrintEcho("

"); // Fehlerauswertung if ($err){ PrintFehler("Es sind " . $ierr . " Fehler aufgetreten - Bitte beheben"); } else { PrintEcho("Prüfung Deutsch erfolgreich beendet"); } PrintEcho("

"); echo "
"; echo "
"; echo "
\n"; echo "Restart Check
\n"; echo "
\n"; echo "Session Restart\n"; ?>