-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-sample.php
113 lines (103 loc) · 3.74 KB
/
config-sample.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php // SyxtonCMS Configuration File
// Unset any existing configuration and user variables
unset($CFG);
unset($USER);
// Initialize configuration as an empty object
$CFG = new \stdClass;
/**
* Downtime Configuration
* @var bool $downtime Indicates if the site is in downtime
* @var string $alternatepage Path to the alternate page during downtime
* @var string $safeip Comma-separated list of safe IP addresses
*/
$CFG->downtime = false;
$CFG->alternatepage = 'down.html';
$CFG->safeip = ',192.168.0.1,192.186.0.2,'; // Must have a comma on both sides of IP address
/**
* Website Information
* @var string $sitename Name of the site
* @var string $siteowner Owner of the site
* @var string $siteemail Contact email of the site
* @var string $sitefooter Footer text of the site
* @var string $logofile Path to the site logo inside {userfilesfolder}/branding/logos/
* @var string $mobilelogofile Path to the mobile site logo inside {userfilesfolder}/branding/logos/
*/
$CFG->sitename = 'Website Name';
$CFG->siteowner = 'Your Name';
$CFG->siteemail = '[email protected]';
$CFG->sitefooter = '1234 My Address';
$CFG->logofile = 'logo.png';
$CFG->mobilelogofile = 'mobilelogo.png';
/**
* Database Connection Variables
* @var string $dbtype Type of database (mysql or mysqli)
* @var string $dbhost Database host
* @var string $dbname Database name
* @var string $dbuser Database user
* @var string $dbpass Database password
*/
$CFG->dbtype = 'mysqli'; // mysql or mysqli
$CFG->dbhost = 'localhost';
$CFG->dbname = 'mydbname';
$CFG->dbuser = 'mydbuser';
$CFG->dbpass = 'mydbpassword';
/**
* SMTP Server Configuration
* @var string $smtppath Path to SMTP server
* @var bool $smtp Enable or disable SMTP
* @var bool $smtpauth Enable or disable SMTP authentication
* @var string $smtpuser SMTP username
* @var string $smtppass SMTP password
*/
$CFG->smtppath = '';
$CFG->smtp = false;
$CFG->smtpauth = true;
$CFG->smtpuser = '';
$CFG->smtppass = '';
/**
* Directory Variables
* @var string $directory Directory path for the CMS
* @var string $wwwroot Web root URL
* @var string $docroot Document root directory
* @var string $dirroot Directory root
*/
$CFG->directory = 'mywebsites/syxtoncms'; // Points to http://localhost/mywebsites/syxtoncms
$CFG->wwwroot = '//' . $_SERVER['SERVER_NAME'];
$CFG->wwwroot = $CFG->directory ? $CFG->wwwroot . '/' . $CFG->directory : $CFG->wwwroot;
$CFG->docroot = dirname(__FILE__);
$CFG->dirroot = $CFG->docroot;
/**
* Userfile Path Configuration
* @var string $userfilesfolder Folder for user files
* @var string $userfilespath Path to the user files folder
* @var string $userfilesurl URL to access user files
*/
$CFG->userfilesfolder = 'userfiles';
$CFG->userfilespath = $CFG->docroot . '\\' . $CFG->userfilesfolder;
$CFG->userfilesurl = $CFG->wwwroot . '/' . $CFG->userfilesfolder;
/**
* Miscellaneous Configuration
* @var int $SITEID Home site ID
* @var bool $paypal Enable or disable PayPal
* @var string $paypal_merchant_account PayPal merchant account email
* @var string $paypal_auth PayPal authentication token
* @var int $cookietimeout Cookie timeout in seconds
* @var string $timezone Default timezone
* @var string $defaultaddress Default address
* @var string $googleapikey Google Maps API site key
* @var string $geolocationkey Geolocation API key
* @var string $analytics Google Analytics ID
* @var int $debug Debug level (0 no errors, 1 log errors, 2 log and print, 3 log and print with extra debug)
*/
$CFG->SITEID = 1;
$CFG->paypal = true;
$CFG->paypal_merchant_account = '[email protected]';
$CFG->paypal_auth = '';
$CFG->cookietimeout = 600;
$CFG->timezone = "America/Indiana/Indianapolis";
$CFG->defaultaddress = "My City, IL";
$CFG->googleapikey = "";
$CFG->geolocationkey = "";
$CFG->analytics = '';
$CFG->debug = 0;
?>