📄 Source: config.php
<?php
// Configuration file
session_start();
// Base URL - change for production
// For local development:
define('BASE_URL', 'http://localhost/applications/');
// For production:
// define('BASE_URL', 'https://createcraftweb.playit.gg/applications/');
define('SITE_NAME', 'Application Platform');
// Data directories
define('DATA_DIR', __DIR__ . '/../data/');
define('APPS_DIR', DATA_DIR . 'applications/');
// Create directories if they don't exist
if (!file_exists(DATA_DIR)) mkdir(DATA_DIR, 0777, true);
if (!file_exists(APPS_DIR)) mkdir(APPS_DIR, 0777, true);
// Session timeout (1 hour)
define('SESSION_TIMEOUT', 3600);
// Default time limit for applications (in minutes)
define('DEFAULT_TIME_LIMIT', 60);
// ============ DISCORD OAUTH ============
define('DISCORD_CLIENT_ID', '1536047294816723077');
define('DISCORD_CLIENT_SECRET', 'c4xLGLoor2sapsRTfBr3_urz-0AUa6Qh');
define('DISCORD_REDIRECT_URI', BASE_URL . 'oauth-callback.php?provider=discord');
// ============ GOOGLE OAUTH ============
define('GOOGLE_CLIENT_ID', '1021383159148-a9rjgd1fhufpop4vkf43k4mvic0flen8.apps.googleusercontent.com');
define('GOOGLE_CLIENT_SECRET', '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');
define('GOOGLE_REDIRECT_URI', BASE_URL . 'oauth-callback.php?provider=google');
// Error reporting for development
error_reporting(E_ALL);
ini_set('display_errors', 1);
?>
← Back