-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
146 lines (118 loc) · 3.6 KB
/
config.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
/**
* Name of your institution
* replace [Catholic University Of Health And Allied Sciences] with your own.
*/
define('INSTITUTION_NAME', 'Catholic University Of Health And Allied Sciences');
/**
* Short form of INSTITUTION_NAME.
* replace [CUHAS] with your own.
* Smaller length the better.
*/
define('INSTITUTION_ABBREVIATION_NAME', 'CUHAS');
/**
* This is represent your college/university.
* uuid v4 (32 characters length you get on dashboard)
* This should be kept private.
* Replace with your own uuid.
*/
define('CLIENT_ID', '5d94c158-569e-4530-adfd-b5e4a70bbb87');
/**
* (64 characters length you get on dashboard).
* This should be kept private.
* Replace with your own secret.
*/
define('CLIENT_SECRET', 'd850ce512508a5150a4984c679bd0a0fa04333caf37f4036a8f9dfd41806c430');
/**
* full URL where this app will be hosted.
* eg https://amazing-university.org/nyererefy_bridge.
*/
define('BASE_URL', 'http://localhost/bridge');
/**
* The hostname of your database server. Often this is ‘localhost’.
*/
define('DB_HOST', 'localhost');
/**
* The username used to connect to the database.
*/
define('DB_USERNAME', 'root');
/**
* The password used to connect to the database.
*/
define('DB_PASSWORD', '');
/**
* Database driver.
* Change it only if you are using different database. Default driver is for Mysql.
* Possible values are : mysqli, postgre, odbc, etc. Must be specified in lower case.
*/
define('DB_DRIVER', 'mysqli');
/**
* Database name were university/college/students data are stored.
* replace [registrar] with your database name
*/
define('DB_NAME', 'registrar');
/**
* N
*/
define('STUDENT_TABLE_NAME', 'students');
/**
* Column/Field name which is holding student unique login, This should match exactly with
* table field.
* This is must.
*/
define('TABLE_LOGIN_FIELD_ONE', 'email');
/**
* Some systems allow users to use email or phone or registration number as login
* so if you have extra one too specify it here. default is empty and should be left empty if you don't have.
* So this is optional.
*/
define('TABLE_LOGIN_FIELD_TWO', 'reg_no');
/**
* Column/Field name which is holding student password
*/
define('TABLE_PASSWORD_FIELD', 'password');
/**
* Table primary key name
*/
define('TABLE_PRIMARY_KEY', 'id');
/**
* Name of Column/Field which is holding student reg_no. Replace [reg_no] with that.
*/
define('TABLE_REG_NO_FIELD', 'reg_no');
/**
* Name of Column/Field which is holding student year. Replace [year] with that.
*/
define('TABLE_YEAR_FIELD', 'year');
/**
* Name of Column/Field which is holding program identifier. Replace [programId] with that.
*/
define('TABLE_PROGRAM_IDENTIFIER_FIELD', 'programId');
/**
* Name of Column/Field which is holding student email. Replace [email] with that.
*/
define('TABLE_EMAIL_FIELD', 'email');
/**
* If your system stores password as plain text (which is unlikely!) then make this false
*/
define('IS_PASSWORD_HASHED', true);
/**
* This is shown on login form to indicate what student should enter.
* Can be [Registration number] or [Email] or [Registration number/Email] depending on the table.
* Don't type [Enter email or Type Email] instruction
*/
define('LOGIN_HINT', 'Email');
/**
* If you would like to run login test change these values
*/
define('TEST_LOGIN', '[email protected]');
define('TEST_PASSWORD', 'test1234');
/**
* In case you don't have fake data and you want to insert some make this true
* Browse faker in browser.
* Be careful this may behave miserably.
*/
define('ENABLE_FAKER', false);
/**
* URL of Nyererefy's server
*/
define('NYEREREFY_SERVER_URL', 'https://nyererefy.com');