2) {return; } IF (ereg ("[^0-9\.]", $teile[0])) { return; } IF (ereg ("[^0-9:]", $teile[1])) { return; } $datumsteil=explode(".", $teile[0]); IF (count($datumsteil)>3) {return; } $tag=$datumsteil[0]; $monat=$datumsteil[1]; $jahr=$datumsteil[2]; IF ($jahr<1000) { $jahr = $jahr + 2000;} IF ($jahr=="") {$jahr=strftime("%Y", time());} IF ($monat=="") {$monat=strftime("%m", time());} IF (! checkdate($monat, $tag, $jahr)) { return; } IF ($teile[1]<>"") { $zeitteil=explode(":", $teile[1]); $num_zeitteile=count($zeitteil); IF ($num_zeitteile>3) { return; } IF (($zeitteil[0]<0) OR ($zeitteil[0]>24)) { $stunde=strftime("%H", time());} else { $stunde=$zeitteil[0]; } IF (($zeitteil[1]<0) OR ($zeitteil[1]>60)) { $minute=strftime("%M", time());} else { $minute=$zeitteil[1]; } IF (($zeitteil[2]<0) OR ($zeitteil[2]>60)) { $sekunde=strftime("%S", time());} else { $sekunde=$zeitteil[2]; } } $returnwert = mktime($stunde, $minute, $sekunde, $monat, $tag, $jahr); return $returnwert; } function monatsname($monat) { IF (($monat<1) OR ($monat>12)) { return FALSE; } $monatsliste=array("Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", ) } ?>