-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-template.php
48 lines (43 loc) · 1.68 KB
/
config-template.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
<?php
/**
* This file is part of student-sen-info.
*
* student-sen-info is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* student-sen-info is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with student-sen-info. If not, see <http://www.gnu.org/licenses/>.
*
* @author Jonathan Hart
*/
/*
* This config file holds the configuration information for this site to run.
* Make sure that all needed information is filled in, and is renamed to config.php
*/
// Seeing if the script is being called from another webpage, or directly
defined('RUNNING_FROM') || die('<h2>You cannot access this page directly.</h2>');
// Database related information
$CFG['DBHost'] = '';
$CFG['DBPort'] = '';
$CFG['DBUser'] = '';
$CFG['DBPass'] = '';
$CFG['DBName'] = '';
// LDAP server logon information
$CFG['LDAP_Enabled'] = false;
$CFG['LDAP_Server'] = 'dc.example.com';
$CFG['LDAP_UPN'] = 'example.com';
$CFG['LDAP_DN'] = 'DC=example,DC=com';
$CFG['LDAP_StaffGroups'] = ['All Staff', 'Staff Full Access'];
// Student meta details (year group ranges, forms, houses)
$CFG['StudentMeta_YearGroupStart'] = 7;
$CFG['StudentMeta_YearGroupEnd'] = 11;
$CFG['StudentMeta_Houses'] = ['Purple', 'Red', 'Green', 'Yellow'];
$CFG['StudentMeta_Forms'] = ['Purple', 'Red', 'Green', 'Yellow'];
?>