-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
82 lines (61 loc) · 2.99 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/*
This config.php file should be located at /{application}/config.php. This file ONLY affects configurations for the
application that it is stored in. If you want to change configurations across your entire server, you need to edit
the /global-config.php file one level up.
If you have different configurations that apply depending on which environment you're currently using (such as your
localhost environment vs. your production environment), you can set those configurations in the corresponding
"local" and "production" sections.
You can also override any configurations that were set by global-config.php here.
*/
/**********************************************
****** Global Application Configurations ******
**********************************************/
// Set a Site-Wide Salt between 60 and 68 characters
// NOTE: Only change this value ONCE after installing a new copy. It will affect all passwords created in the meantime.
define("SITE_SALT", "(_rRqK#sops-N,)3d0W*6vCCoq4A;WSf@MGu-=Ld=+Uu.4E,Ty!!q.US,B#674B1Qy");
// | 5 10 15 20 25 30 35 40 45 50 55 60 65 |
// Set a unique 10 to 22 character keycode (alphanumeric) to prevent code overlap on databases & shared servers
// For example, you don't want sessions to transfer between multiple sites on a server (e.g. $_SESSION['user'])
// This key will allow each value to be unique (e.g. $_SESSION['siteCode_user'] vs. $_SESSION['otherSite_user'])
define("SITE_HANDLE", "blogfrog");
// Set the Application Path (in most cases, this is the same as CONF_PATH)
define("APP_PATH", CONF_PATH);
// Site-Wide Configurations
$config['site-name'] = "BlogFrog";
$config['database']['name'] = "blogfrog";
/***********************************
****** Production Environment ******
***********************************/
if(ENVIRONMENT == "production") {
// Set Important URLs
define("SITE_URL", "http://blogfrog.social");
define("CDN", "http://cdn.unifaction.com");
// Important Configurations
$config['site-domain'] = "blogfrog.social"; #production
$config['admin-email'] = "info@unifaction.com";
}
/************************************
****** Development Environment ******
************************************/
else if(ENVIRONMENT == "development") {
// Set Important URLs
define("SITE_URL", "http://blogfrog.social.phptesla.com");
define("CDN", "http://cdn.phptesla.com");
// Important Configurations
$config['site-domain'] = "blogfrog.social.phptesla.com"; #development
$config['admin-email'] = "info@phptesla.com";
}
/******************************
****** Local Environment ******
******************************/
else if(ENVIRONMENT == "local") {
// Set Important URLs
define("SITE_URL", "http://blogfrog.social.test");
define("CDN", "http://cdn.test");
// Important Configurations
$config['site-domain'] = "blogfrog.social.test";
$config['admin-email'] = "info@unifaction.com.test";
}
// Base style sheet for this site
Metadata::addHeader('<link rel="stylesheet" href="' . CDN . '/css/unifaction-2col.css" />');