<?php
// =====================================================================
// GAMESJI UPDATES - SITE CONFIGURATION
// Edit the values below before uploading to your host.
// =====================================================================

// Base site info -------------------------------------------------------
define('SITE_NAME', 'GamesJi Updates');
define('SITE_TAGLINE', 'Online Games News, Updates & Free Play Hub');

// IMPORTANT: set this to the exact live URL of this folder on your host.
// Example: https://gamesji.com/updates
define('SITE_URL', 'https://gamesji.com/updates');

// Main gamesji.com homepage link (used in the blinking strip on every page)
define('MAIN_SITE_URL', 'https://gamesji.com');
define('MAIN_SITE_TEXT', 'Play Online Free Games');

// Database (SQLite file, works on almost every shared host with PHP PDO)
define('DB_PATH', __DIR__ . '/../data/gamesji_updates.sqlite');

// Google AdSense ---------------------------------------------------------
// Put your real publisher ID (ca-pub-XXXXXXXXXXXXXXXX) here once approved.
define('ADSENSE_CLIENT_ID', ''); // e.g. 'ca-pub-1234567890123456'
define('ADSENSE_SLOT_HEADER', ''); // ad slot id for header/leaderboard unit
define('ADSENSE_SLOT_INARTICLE', ''); // ad slot id for in-article unit
define('ADSENSE_SLOT_SIDEBAR', ''); // ad slot id for sidebar unit

// Google Search Console verification (optional) -------------------------
// Paste the "content" value of the meta verification tag Google gives you.
define('GOOGLE_SITE_VERIFICATION', '');

// Google Analytics (optional) -------------------------------------------
define('GA_MEASUREMENT_ID', ''); // e.g. 'G-XXXXXXXXXX'

// RSS feeds to poll for ONLINE GAME news ---------------------------------
// Add / remove feeds freely. The cron fetcher filters items by keywords
// below so only gaming-related stories are kept.
define('RSS_FEEDS', serialize([
    'https://www.ign.com/rss/articles/feed?tags=games',
    'https://kotaku.com/rss',
    'https://www.pcgamer.com/rss/',
    'https://www.eurogamer.net/feed',
    'https://www.rockpapershotgun.com/feed',
    'https://www.gamespot.com/feeds/mashup/',
    'https://toucharcade.com/feed/',
    'https://www.polygon.com/rss/index.xml',
    'https://news.google.com/rss/search?q=online+game+update&hl=en-IN&gl=IN&ceid=IN:en',
    'https://news.google.com/rss/search?q=mobile+game+update+OR+esports&hl=en-IN&gl=IN&ceid=IN:en',
]));

// Only keep articles whose title/summary mentions one of these words.
// This keeps the feed focused on ONLINE / MOBILE / MULTIPLAYER games only.
define('KEYWORD_FILTER', serialize([
    'game','games','gaming','mobile game','online game','esports','update',
    'patch','season','battle royale','multiplayer','pubg','free fire','bgmi',
    'valorant','fortnite','minecraft','roblox','call of duty','league of legends',
    'dota','apex','genshin','clash','among us','ludo','pokemon','fifa','efootball',
    'gta','steam','playstation','xbox','nintendo','android game','ios game','app update'
]));

// How many news items to keep in the database (older ones are pruned)
define('MAX_NEWS_ITEMS', 1000);

// Pagination
define('NEWS_PER_PAGE', 12);
define('GAMES_PER_PAGE', 24);

// Timezone
date_default_timezone_set('Asia/Kolkata');

// Error display (turn off in production once everything works)
ini_set('display_errors', 0);
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
