source: lliurex-moodle/trunk/fuentes/lliurex-moodle.install-files/etc/moodle/config.php @ 1272

Last change on this file since 1272 was 1272, checked in by jrpelegrina, 4 years ago

Wip in compatibility with php5-lliurex

File size: 1.6 KB
Line 
1<?php
2 # This file has been generated by debconf
3 # You can find a commented config file in /usr/share/doc/moodle/
4 include("/etc/moodle/debian-db.php");
5 unset($CFG);
6 $CFG = new stdClass();
7
8 $CFG->dbtype = $dbtype;
9 $CFG->dbhost = 'localhost';
10 $CFG->dbname = $dbname;
11 $CFG->dbuser = $dbuser;
12 $CFG->dbpass = $dbpass;
13 $CFG->prefix = 'mdl_';
14
15 $CFG->wwwroot = 'http://moodle:800';
16 $CFG->dirroot = '/usr/share/moodle';
17 $CFG->dataroot = '/var/lib/moodle';
18 $CFG->directorypermissions = 0750;
19 $CFG->admin = 'admin';
20
21 $CFG->pathtodu = '/usr/bin/du';
22 $CFG->unzip = '/usr/bin/unzip';
23 $CFG->zip = '/usr/bin/zip';
24
25 $CFG->respectsessionsettings = true;
26
27 # For improved security, make sure html purifier is used.
28 $CFG->enablehtmlpurifier = true;
29
30        if (file_exists("$CFG->dirroot/lib/setup.php"))  {       // Do not edit
31                include_once("$CFG->dirroot/lib/setup.php");
32        } else {
33                if ($CFG->dirroot == dirname(__FILE__)) {
34                        echo "<p>Could not find this file: $CFG->dirroot/lib/setup.php</p>";
35                        echo "<p>Are you sure all your files have been uploaded?</p>";
36                } else {
37                        echo "<p>Error detected in config.php</p>";
38                        echo "<p>Error in: \$CFG->dirroot = '$CFG->dirroot';</p>";
39                        echo "<p>Try this: \$CFG->dirroot = '".dirname(__FILE__)."';</p>";
40                }
41                die;
42        }
43// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
44// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
45?>
Note: See TracBrowser for help on using the repository browser.