diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-04-01 13:27:57 +0200 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-04-01 13:27:57 +0200 |
| commit | 6caad3280121866fd2102798b53e0fd60068c66a (patch) | |
| tree | 12dbe8cc842639bab9ba323fbe6df7ca1b58ca93 | |
| parent | 30a3a504d9cfbb5d9159749608bdcdbac5243bbf (diff) | |
Add debug to commission hoenypot
| -rw-r--r-- | src/Pages/commissions/commissions.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Pages/commissions/commissions.php b/src/Pages/commissions/commissions.php index bb607e0..4884369 100644 --- a/src/Pages/commissions/commissions.php +++ b/src/Pages/commissions/commissions.php @@ -1,3 +1,8 @@ +<?php +// Debug - enable error reporting +ini_set('display_errors', 1); +error_reporting(E_ALL); +?> <!DOCTYPE html> <html lang="en"> <head> @@ -347,10 +352,18 @@ $success = false; $error = ''; + // DEBUG - remove after testing + if ($_SERVER['REQUEST_METHOD'] === 'POST') { + echo "<pre style='background:#333;color:#0f0;padding:10px;'>DEBUG POST:\n"; + print_r($_POST); + echo "</pre>"; + } + if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Honeypot check if (!empty($_POST['website'])) { // Bot detected, silently ignore + echo "<p style='color:red;'>DEBUG: Honeypot triggered!</p>"; $success = true; } else { $name = trim($_POST['name'] ?? ''); |
