> 3) % 51))."%, ";
$css .= (50 + (($number >> 5) % 51))."%);";
return $css;
}
//header("refresh: 28");
header("Cache-Control: no-cache, no-store, must-revalidate");
if (array_key_exists("submitted", $_REQUEST)) {
$word = urldecode($_REQUEST["submitted"]);
//print("Jemand schreibt ".$word."
");
$sentences = fopen("./data/sentences.txt", "a") or die("unable to open sentences file");
$content = "";
$ends_of_sentence = ['.', '!', '?'];
if (preg_match("/\p{L}/", $word[0])) { // check if first character is letter (including ä, ê, ß stuff)
$content .= " ";
}
$content .= htmlentities($word);
$content .= "";
if (in_array($word[-1], $ends_of_sentence)) {
$content .= "
\n";
}
fwrite($sentences, $content);
fclose($sentences);
header("location: ".htmlentities($_SERVER['PHP_SELF']));
}
?>
![]() |
One Word Each Seite |