function processSyncEntry($ID, $logItem, $verbose = 1) { echo "Processing entry " . ($logItem['transactionID'] + 0) . " ... "; if ($verbose) { flush2Browser(); } // print_r($logItem); // return 1; list($result, $message) = logReplicator::processEntry($ID, $logItem, $this->data['sync_type']); if ($result < -10) { echo "<div class='error'>ERROR </div>: {$message} <BR>"; return 0; } else { // update the pointer // BUT only if it is > than the last one if ($logItem['transactionID'] > $this->lastPullUpdateID) { $this->lastPullUpdateID = $logItem['transactionID'] + 0; $this->putToDB(1); } echo "<div class='ok'>OK</div>: {$message}<BR>"; return 1; } }