/* ---------------- honeypot field injected into every CF7 form ---------------- */
add_filter('wpcf7_form_elements', function($html){
return $html.''
.''
.'';
});
function wgs_ip(){
$k = array('HTTP_CF_CONNECTING_IP','HTTP_X_REAL_IP','HTTP_X_FORWARDED_FOR','REMOTE_ADDR');
foreach($k as $x){ if(!empty($_SERVER[$x])){ $v=explode(',',$_SERVER[$x]); return trim($v[0]); } }
return '0.0.0.0';
}
function wgs_blob(){
$o='';
foreach($_POST as $k=>$v){ if(strpos($k,'_wpcf7')===0||$k==='wg_hp'||$k==='wg_ts') continue; if(is_string($v)) $o.=' '.$v; }
return $o;
}
/* ---------------- the gate ---------------- */
add_filter('wpcf7_spam', function($spam, $submission){
if ($spam) return $spam;
$why = '';
// 1. honeypot filled
if (!empty($_POST['wg_hp'])) $why = 'honeypot';
if ($mode === 'days') {
$rows = $wpdb->get_results($wpdb->prepare(
"SELECT DATE(form_date) d, COUNT(*) c FROM $t WHERE form_id=%d GROUP BY d ORDER BY c DESC", $fid));
$tot = 0; $o = ''; $buckets = array('1-5'=>0,'6-20'=>0,'21-40'=>0,'41-100'=>0,'101-500'=>0,'500+'=>0);
$rowsIn = array('1-5'=>0,'6-20'=>0,'21-40'=>0,'41-100'=>0,'101-500'=>0,'500+'=>0);
foreach ($rows as $r) {
$c = (int)$r->c; $tot += $c;
$b = $c<=5?'1-5':($c<=20?'6-20':($c<=40?'21-40':($c<=100?'41-100':($c<=500?'101-500':'500+'))));
$buckets[$b]++; $rowsIn[$b] += $c;
}
$o .= "form_id=$fid total_rows=$tot distinct_days=".count($rows)."\n\n";
$o .= sprintf("%-10s %8s %12s\n", 'per-day', 'days', 'rows');
foreach ($buckets as $b=>$n) $o .= sprintf("%-10s %8d %12d\n", $b, $n, $rowsIn[$b]);
$o .= "\nTop 25 days:\n";
$i=0; foreach ($rows as $r) { if($i++>=25) break; $o .= sprintf(" %s %6d\n", $r->d, $r->c); }
wp_die('
'.esc_html($o).'
');
}
if ($mode === 'purge') {
$min = isset($_GET['min']) ? (int)$_GET['min'] : 0;
if ($min < 10) wp_die('Refusing: min must be >= 10.');
$bak = $wpdb->prefix.'db7_forms_sbak_20261111';
$wpdb->query("CREATE TABLE IF NOT EXISTS $bak LIKE $t");
$sql = $wpdb->prepare(
"INSERT INTO $bak SELECT f.* FROM $t f
JOIN (SELECT DATE(form_date) d FROM $t WHERE form_id=%d GROUP BY d HAVING COUNT(*)>=%d) x
ON DATE(f.form_date)=x.d
WHERE f.form_id=%d", $fid, $min, $fid);
$ins = $wpdb->query($sql);
$del = $wpdb->query($wpdb->prepare(
"DELETE f FROM $t f
JOIN (SELECT DATE(form_date) d FROM $bak WHERE form_id=%d GROUP BY d) x
ON DATE(f.form_date)=x.d
WHERE f.form_id=%d", $fid, $fid));
$left = (int)$wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM $t WHERE form_id=%d", $fid));
wp_die('
Freight Forwarding & Global LogisticsBy wigmoretradingFebruary 16, 2025
Talk to us about this service
Trade, import, logistics, sourcing — whatever you're planning, the fastest way to a quote is a WhatsApp message. Our team replies during Lagos business hours.
Efficient Logistics Solutions at Nigeria’s Leading Oil & Gas Port
The Onne Port Complex is one of Nigeria’s most important deep-sea ports, playing a vital role in oil & gas logistics, containerized cargo, and bulk shipments. If you need reliable freight forwarding and customs clearing services at Onne Port, Wigmore Trading is your trusted partner.
With extensive expertise in international shipping, cargo handling, and customs brokerage, we ensure seamless cargo movement, fast clearance, and full compliance with Nigerian trade regulations.
Why Choose Wigmore Trading at Onne Port?
1. Comprehensive Freight Forwarding Services
We provide end-to-end logistics solutions, including: ✅ Sea Freight – FCL (Full Container Load) & LCL (Less than Container Load) shipping ✅ Air Freight – Fast and secure transport for urgent shipments ✅ Road Transport – Reliable trucking across Nigeria and West Africa ✅ Warehousing & Distribution – Secure storage and last-mile delivery solutions
With a strong logistics network, we ensure your cargo reaches its destination on time and within budget.
Navigating Nigeria’s customs procedures can be complex, but Wigmore Trading simplifies the process. Our services include: ✅ Import & Export Documentation Handling ✅ Duties & Tax Calculation ✅ HS Code Classification & Compliance ✅ Clearance for Specialized Goods (e.g., Oil & Gas Equipment, Industrial Machinery, and Consumer Goods)
We work closely with Nigerian Customs Service (NCS) to ensure quick clearance, avoid penalties, and minimize costs.
3. Industry-Specific Logistics Expertise
We specialize in freight forwarding and customs solutions for industries such as: ✔️ Oil & Gas Equipment & Supplies ✔️ Heavy Machinery & Industrial Equipment ✔️ Agricultural & Food Products ✔️ Pharmaceuticals & Medical Supplies ✔️ Automotive & Spare Parts
Why Onne Port is Crucial for Trade in Nigeria
As Nigeria’s leading oil & gas port, Onne Port offers: 🚢 Specialized Terminals for Oil & Gas Logistics – Designed for offshore energy projects 🚛 Strategic Location in the Niger Delta – Easy access to key industrial zones 📉 Less Congestion Compared to Lagos Ports – Faster clearance and improved logistics efficiency
Partner with Wigmore Trading for Seamless Freight & Customs Solutions in Nigeria
If you’re an importer, exporter, or manufacturer looking for reliable freight forwarding and customs clearance at Onne Port, Wigmore Trading is ready to assist.
📞 Contact us today for professional and efficient logistics solutions in Nigeria!
From trade and import to logistics and wholesale supply, one WhatsApp message puts you in touch with the Wigmore Trading team. Tell us what you need and where it's going — we'll handle the rest.
Comments are closed.