UNIX_TIMESTAMP()', array(':client' => $ip)); if ($row !== false && $row['cnt'] > 250) { exit(0); } Database::exec('INSERT INTO clientlog (dateline, logtypeid, clientip, machineuuid, description, extra) VALUES (UNIX_TIMESTAMP(), :type, :client, :uuid, :description, :longdesc)', array( 'type' => $type, 'client' => $ip, 'description' => $description, 'longdesc' => $longdesc, 'uuid' => $uuid, )); } echo "OK.\n";