read())) { if (ereg('^tableData.*$', $entry) || ereg('^FOO.*', $entry) || ereg('^tableLog.*', $entry) || ereg('^tableTemp.*', $entry)) { $entry = $dirfname.DIRECTORY_SEPARATOR.$entry; $logger->info("Delete ".$entry); unlink($entry); } } $d->close(); $sql = ("SELECT * FROM qb_config"); $param = ''; if (count($_SERVER['argv'])>1) { foreach ($_SERVER['argv'] as $k => $v) { if ($k > 0) { if ($param) $param .= ","; $param .= "'".$v."'"; } } } if ($param) $sql .= " WHERE tableid IN (".$param.")"; $rs = $adodb->Execute($sql); while (!$rs->EOF) { if ($s === date('s')) sleep(1); $s = date('s'); //$adodb->Execute("DELETE FROM ".$rs->fields['tableid']); //crcTable($rs->fields); $ausgabe = importTable($rs->fields); if ( $ausgabe == 1 ) { if($rs->fields['history_mode'] == 2) updateTable($rs->fields); else if($rs->fields['history_mode'] == 1) replaceTable($rs->fields); else if($rs->fields['history_mode'] == 0) diffTable($rs->fields); } else { $logger->error("Fehler beim Import, Mails werden verschickt..."); $logger->error($adodb->ErrorMsg()); //include('smtpconnection/smtpconnection.class.php'); ini_set('SMTP', 'mail.group-net.de'); ini_set('smtp_port', 25); $msg = '
Folgender Fehler war verantwortlich: ' . $adodb->ErrorMsg() . ' |
Die Ausgabe des Scripts war wie folgt: ' . $ausgabe . ' |