switch ($para4)
{
case 1:
if (ereg ("([0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4})", $para1, $regs))
{
$heute = time();
$tsstamp = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
$heute = date("d.m.Y", $tsstamp);
$tstamp = mktime(0, 0, 0, date("m"), date("d")-1, date("Y"));
$gestern = date("d.m.Y", $tstamp);
//Unixtimestamp umsetzten der Differenz Zeit
$diftime001 = "24"; //variable setzen
$prueftime = mktime($diftime001,0,0,0,0,0); // Unixtimestamp generieren
// Unixtimestamp setzten der File/DateiZeit
$filetime001 = explode(":", $para5);
$tstamp = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
$filetime = mktime($filetime001[0], $filetime001[1]);
//Unixtimestamp jetzt
$jetzt = date("H:i", time()); //jetzt formatieren
$diftime1 = $heute- $tstamp; // Differenz berechnen
$diftime20 = date("H:i", $diftime1);// formtieren
$time01 = date("H:i", $filetime);
$time1 = date("H:i", $diftime);
$dasi = "$regs[1]" . "_______$para2" . "______$para5";
if ($regs[1] == $gestern && $heute >= $diftime|| $regs[1] == $heute)
{
$i = $i + 1;
/////////////////////////////////////////////////
include ('./db_connect.tpl.inc');
$sql = "SELECT namehost FROM dasi";
echo " befehl: $sql</BR>";
$result = mysql_query($sql) or die(mysql_error());
while($row = mysql_fetch_assoc($result))
{
if(!in_array($row['namehost'], $dasi))
{
echo "Der Name ".$row['namehost']." steht nicht in der Textdatei!</br>";
}
}
////////////////////////////////////////////////////
}
}
break;
case 2:
if (ereg ("([0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4})", $para1, $regs1))
{
echo "$regs1[1]_________$para2";
echo "$dasi<br />";
$i = $i + 1;
break;
}
}
}