Files
wevads-platform/s89-health.php
WEVAL Bot 6417e88aaa SECURITY FIX: auth bypass on port 5821 + logo fix dashboard [13-mars-2026]
- wevads-prepend.php: added arsenal-auth.php inclusion (FPM ignores .htaccess php_value)
- All non-API pages on port 5821 now require auth (was publicly accessible)
- Whitelist: tracking endpoints, login, assets, ethica-inscription
- master.html: logo href changed from base_url to dashboard/main.html
- GOLD backups: wevads-prepend.php.gold.13mar2026, master.html.gold.13mar2026
2026-03-13 12:20:51 +01:00

19 lines
1.3 KiB
PHP

<?php
header('Content-Type: application/json');
try {
$p = new PDO('pgsql:host=127.0.0.1;dbname=adx_system','admin','admin123');
$r = [
'tracking' => ['status'=>(int)@file_get_contents('http://127.0.0.1/o/test',false,stream_context_create(['http'=>['timeout'=>2]]))!==false?'up':'down'],
's3' => ['configs'=>(int)$p->query('SELECT count(*) FROM admin.s3_config')->fetchColumn()],
'db_tables' => (int)$p->query("SELECT count(*) FROM pg_tables WHERE schemaname='admin'")->fetchColumn(),
'campaigns' => (int)$p->query('SELECT count(*) FROM admin.campaigns')->fetchColumn(),
'memcells' => (int)$p->query('SELECT count(*) FROM admin.memcells')->fetchColumn(),
'seed_tracking' => (int)$p->query('SELECT count(*) FROM admin.seed_tracking')->fetchColumn(),
'email_templates' => (int)$p->query('SELECT count(*) FROM admin.email_templates')->fetchColumn(),
'conversations' => (int)$p->query('SELECT count(*) FROM admin.conversations')->fetchColumn(),
'messages' => (int)$p->query('SELECT count(*) FROM admin.messages')->fetchColumn(),
'servers' => (int)$p->query('SELECT count(*) FROM admin.servers')->fetchColumn(),
];
echo json_encode($r);
} catch(Exception $e) { echo json_encode(['error'=>$e->getMessage()]); }