-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.php
More file actions
48 lines (31 loc) · 1.05 KB
/
config.php
File metadata and controls
48 lines (31 loc) · 1.05 KB
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
<?php
define('DEBUG', true);
define('APP_NAME', 'ThunderPHP');
define('APP_DESCRIPTION', 'An Plugin Based PHP Framework, Everything here is an Plugin.');
if((empty($_SERVER['SERVER_NAME']) && strpos(PHP_SAPI, 'cgi') !== 0) || (!empty($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'localhost'))
{
/** The name of your database */
define( 'DB_NAME', 'thunderphp_db');
/** Database username */
define( 'DB_USER', 'root');
/** Database password */
define( 'DB_PASSWORD', '');
/** Database hostname */
define( 'DB_HOST', 'localhost');
/** Database driver */
define( 'DB_DRIVER', 'mysql');
define('ROOT', 'http://localhost/pluginphp');
}else
{
/** The name of your database */
define( 'DB_NAME', 'thunderphp_db');
/** Database username */
define( 'DB_USER', 'root');
/** Database password */
define( 'DB_PASSWORD', '');
/** Database hostname */
define( 'DB_HOST', 'localhost');
/** Database driver */
define( 'DB_DRIVER', 'mysql');
define('ROOT', 'http://yourwebsite.com');
}