Spoonerisms

\n"; } //--------ENDE FUNKTIONEN ----------------------------------- if ($spooner) { $dateinfo = getdate(time()); $timestamp = time(); $date = $dateinfo["mday"].".".$dateinfo["mon"].".".$dateinfo["year"]; $fp = fopen($file, "a"); if ($owner) { fputs($fp, $spooner."|".$owner."|".$date."|".$timestamp.chr(10)); } else { fputs($fp, $spooner."|unbekannt|".$date."|".$timestamp.chr(10)); } fclose($fp); mail("tomato@uni-koblenz.de", "Neuer Spooner", $spooner."\n".$owner); } $data = array(); $fp = fopen($file, "r"); $i = 0; while ($line = fgets($fp, 4096)) { $pair = split("\|", $line); $data[$i]["spooner"] = $pair[0]; $data[$i]["owner"] = $pair[1]; $data[$i]["date"] = $pair[2]; $data[$i]["timestamp"] = $pair[3]; $i++; } fclose($fp); if ($sortbyspooner) { $spooners = array(); for ($i=0; $i"; echo " Spoonerism Schöpfer Datum "; $i = 0; while ($i < count($data)) { if ($darkRow) { echo ''."\n"; $darkRow = 0; } else { echo ''."\n"; $darkRow = 1; } if ($data[$i]["owner"]) { echo " ".$data[$i]["spooner"]." ".$data[$i]["owner"]." ".$data[$i]["date"]." "; } else { echo " ".$data[$i]["spooner"]." unbekannt ".$data[$i]["date"]." "; } $i++; } echo ""; ?>