-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-sample.php
34 lines (28 loc) · 959 Bytes
/
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
<?php /// Moodle Configuration File
unset($CFG);
//Website info
$CFG = new stdClass();
$CFG->sitename = 'Homework & Hangout';
$CFG->siteemail = '[email protected]';
$CFG->streetaddress = '1234 Address';
$CFG->fein = '';
$CFG->logo = 'logo.png';
//Database connection variables
$CFG->dbtype = 'mysqli'; //mysql or mysqli
$CFG->dbhost = 'localhost';
$CFG->dbname = 'mydbname';
$CFG->dbuser = 'mydbuser';
$CFG->dbpass = 'mydbpassword';
//Directory variables
$CFG->directory = 'mywebsite/folder';
$CFG->wwwroot = 'http://'.$_SERVER['SERVER_NAME'];
$CFG->wwwroot = $CFG->directory ? $CFG->wwwroot.'/'.$CFG->directory : $CFG->wwwroot;
$CFG->docroot = dirname(__FILE__);
$CFG->dirroot = $CFG->docroot;
//Userfile path
$CFG->userfilespath = substr($CFG->docroot,0,strrpos($CFG->docroot,'/'));
//Cookie variables in seconds
$CFG->timezone = 'America/Indianapolis';
$CFG->servertz = 'America/New_York';
date_default_timezone_set('UTC');
?>