- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
707 B
PHP
Executable File
23 lines
707 B
PHP
Executable File
<?php
|
|
// public_html/buscar-apus/clk.php
|
|
$cfg = require __DIR__ . '/config.php';
|
|
require __DIR__ . '/app/Db.php';
|
|
require __DIR__ . '/app/Analytics.php';
|
|
|
|
$searchId = isset($_GET['sid']) ? (int)$_GET['sid'] : 0;
|
|
$postId = isset($_GET['pid']) ? (int)$_GET['pid'] : 0;
|
|
$pos = isset($_GET['pos']) ? (int)$_GET['pos'] : 0;
|
|
$page = isset($_GET['page']) ? (int)$_GET['page'] : 1;
|
|
|
|
$dest = '/?p=' . $postId; // válido sin WP cargado
|
|
|
|
try {
|
|
$pdo = Db::pdo($cfg);
|
|
Analytics::logClick(
|
|
$pdo, $cfg['db']['prefix'], $cfg['analytics'] ?? [],
|
|
$searchId, $postId, max(1,$pos), max(1,$page), $dest
|
|
);
|
|
} catch (\Throwable $e) {}
|
|
|
|
header('Location: ' . $dest, true, 302);
|
|
exit; |