Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
25 - 1
<?php
2
/*
3
 * Basic Site Settings and API Configuration
4
 */
5
 
6
// Base URL of the application
7
$baseURL = (isset($_SERVER["HTTPS"]) ? "https://" : "http://").$_SERVER["HTTP_HOST"];
8
$baseURL .= str_replace(basename($_SERVER["SCRIPT_NAME"]), "", $_SERVER["SCRIPT_NAME"]);
9
define('BASE_URL', $baseURL);
10
 
11
// Assets URL
12
define('PUBLIC_URL', $baseURL.'assets/');
13
 
14
// File upload URL
15
define('UPLOAD_URL', $baseURL.'uploads/');
16
define('UPLOAD_PATH', 'uploads/');
17
 
18
// Social redirect URL
19
define('SOCIAL_REDIRECT_URL', BASE_URL);
20
 
21
// Site info
22
define('SITE_NAME', 'CodexWorld');
23
define('SITE_TITLE', 'PHP Login System with Social Account by CodexWorld');
24
 
25
// Database configuration
26
define('DB_HOST', 'MySQL_Database_Host');
27
define('DB_USERNAME', 'MySQL_Database_Username');
28
define('DB_PASSWORD', 'MySQL_Database_Password');
29
define('DB_NAME', 'MySQL_Database_Name');
30
define('DB_USER_TBL', 'Database_Users_Table_Name');
31
 
32
// Email settings
33
define('SENDER_NAME', 'CodexWorld');
34
define('SENDER_EMAIL', 'sender@codex.com');
35
 
36
// SMTP configuration
37
define('SMTP', FALSE); // Set TRUE if want to use SMTP server to send email
38
define('SMTP_HOST', 'smtp.gmail.com');
39
define('SMTP_USERNAME', 'codex@gmail.com');
40
define('SMTP_PASSWORD', 'my_gmail_pass');
41
define('SMTP_SECURE', 'tls');
42
define('SMTP_PORT', 587);
43
 
44
// Facebook API configuration
45
define('FB_APP_ID', 'Insert_Facebook_App_ID');
46
define('FB_APP_SECRET', 'Insert_Facebook_App_Secret');
47
 
48
// Google API configuration
49
define('GP_CLIENT_ID', 'Insert_Google_Client_ID');
50
define('GP_CLIENT_SECRET', 'Insert_Google_Client_Secret');
51
 
52
// Twitter API configuration
53
define('TW_CONSUMER_KEY', 'Insert_Twitter_Consumer_Key');
54
define('TW_CONSUMER_SECRET', 'Insert_Twitter_Consumer_Secret');