0) { $urlTitleStart = strpos($line, 'title')+7; $urlTitle = substr($line, $urlTitleStart, strpos($line, '"', $urlTitleStart)-$urlTitleStart); $chapterTitle[] = $urlTitle; $chapterNum++; } } while ((!feof($file)) && ($urlTitle != $chapter)); if (!feof($file)) { // Keywords auslesen $keywordsStart = strpos($line, 'keywords')+10; $chapterKeywords = substr($line, $keywordsStart, strpos($line, '"', $keywordsStart)-$keywordsStart); $descriptionStart = strpos($line, 'description')+13; $chapterDescription = substr($line, $descriptionStart, strpos($line, '"', $descriptionStart)-$descriptionStart); $page_title = 'Projekt Abibuch: '.strtr(substr($urlTitle, strpos($urlTitle, '-')), '-', ' '); $additional_headers = array( '', '', '', ); } else { // Kapitel existiert nicht -> Auf Anfang des Artikels umleiten header('HTTP/1.0 301 Moved Permanently'); header('Location: http://'.$_SERVER['HTTP_HOST'].'/projekt-abibuch/'); exit; } // Kapitel-Inhalt in Variable speichern while ((!feof($file)) && (trim($line = fgets($file)) != '')) { $chapterContent .= $line; } // verbleibende Kapitel-Titel auslesen while (!feof($file)) { do { $line = fgets($file); } while ((!feof($file)) && (substr(trim($line), 0, 8) != ' 0) { $urlTitleStart = strpos($line, 'title')+7; $urlTitle = substr($line, $urlTitleStart, strpos($line, '"', $urlTitleStart)-$urlTitleStart); $chapterTitle[] = $urlTitle; } } include('includes/header.inc'); ?>

Projekt Abibuch

Eine Anleitung für Planung, Organisation und Produktion

Version 2.1 vom 26.2.2007
© Tilman Walther und Martin Stadler
'; } ?>