Blame | Last modification | View Log | RSS feed
<?php/** Basic Site Settings and API Configuration*/// Base URL of the application$baseURL = (isset($_SERVER["HTTPS"]) ? "https://" : "http://").$_SERVER["HTTP_HOST"];$baseURL .= str_replace(basename($_SERVER["SCRIPT_NAME"]), "", $_SERVER["SCRIPT_NAME"]);define('BASE_URL', $baseURL);// Assets URLdefine('PUBLIC_URL', $baseURL.'assets/');// File upload URLdefine('UPLOAD_URL', $baseURL.'uploads/');define('UPLOAD_PATH', 'uploads/');// Social redirect URLdefine('SOCIAL_REDIRECT_URL', BASE_URL);// Site infodefine('SITE_NAME', 'CodexWorld');define('SITE_TITLE', 'PHP Login System with Social Account by CodexWorld');// Database configurationdefine('DB_HOST', 'MySQL_Database_Host');define('DB_USERNAME', 'MySQL_Database_Username');define('DB_PASSWORD', 'MySQL_Database_Password');define('DB_NAME', 'MySQL_Database_Name');define('DB_USER_TBL', 'Database_Users_Table_Name');// Email settingsdefine('SENDER_NAME', 'CodexWorld');define('SENDER_EMAIL', 'sender@codex.com');// SMTP configurationdefine('SMTP', FALSE); // Set TRUE if want to use SMTP server to send emaildefine('SMTP_HOST', 'smtp.gmail.com');define('SMTP_USERNAME', 'codex@gmail.com');define('SMTP_PASSWORD', 'my_gmail_pass');define('SMTP_SECURE', 'tls');define('SMTP_PORT', 587);// Facebook API configurationdefine('FB_APP_ID', 'Insert_Facebook_App_ID');define('FB_APP_SECRET', 'Insert_Facebook_App_Secret');// Google API configurationdefine('GP_CLIENT_ID', 'Insert_Google_Client_ID');define('GP_CLIENT_SECRET', 'Insert_Google_Client_Secret');// Twitter API configurationdefine('TW_CONSUMER_KEY', 'Insert_Twitter_Consumer_Key');define('TW_CONSUMER_SECRET', 'Insert_Twitter_Consumer_Secret');