-
Notifications
You must be signed in to change notification settings - Fork 207
/
ConfigInc.php
83 lines (78 loc) · 3.3 KB
/
ConfigInc.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
<?php
#**************************************************************************
# openSIS is a free student information system for public and non-public
# schools from Open Solutions for Education, Inc. web: www.os4ed.com
#
# openSIS is web-based, open source, and comes packed with features that
# include student demographic info, scheduling, grade book, attendance,
# report cards, eligibility, transcripts, parent portal,
# student portal and more.
#
# Visit the openSIS web site at http://www.opensis.com to learn more.
# If you have question regarding this system or the license, please send
# an email to [email protected].
#
# This program is released under the terms of the GNU General Public License as
# published by the Free Software Foundation, version 2 of the License.
# See license.txt.
#
# This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
#
#***************************************************************************************
include('RedirectRootInc.php');
if (!defined('CONFIG_INC')) {
define('CONFIG_INC', 1);
// IgnoreFiles should contain any names of files or folders
// which should be ignored by the function inclusion system.
$IgnoreFiles = array('.DS_Store', 'CVS', '.svn');
$openSISPath = dirname(__FILE__) . '/';
if (file_exists($openSISPath . "Data.php")) {
include($openSISPath . "Data.php");
}
include("DatabaseInc.php");
include("UpgradeInc.php");
include('functions/DbGetFnc.php');
# Set Build Date and Version Number here.
$b_date_sql = "select value from app where name='date'";
$b_date_res = DBQuery($b_date_sql);
$b_date_row = DBGet($b_date_res);
$version_sql = "select value from app where name='version'";
$version_res = DBQuery($version_sql);
$version_row = DBGet($version_res);
$openSISVersion = $version_row[1]['VALUE'];
$builddate = $b_date_row[1]['VALUE'];
$htmldocPath = "";
$OutputType = "HTML"; //options are HTML or PDF
$htmldocPath = '';
$htmldocAssetsPath = ''; // way htmldoc accesses the assets/ directory, possibly different than user - empty string means no translation
// $StudentPicturesPath = 'assets/studentphotos/';
// $UserPicturesPath = 'assets/userphotos/';
$openSISTitle = "openSIS Student Information System";
$openSISAdmins = '1'; // can be list such as '1,23,50' - note, these should be id's in the DefaultSyear, otherwise they can't login anyway
$openSISNotifyAddress = '';
$msgFlag = '';
$openSISModules = array(
'schoolsetup' => true,
'students' => true,
'users' => true,
'scheduling' => true,
'grades' => true,
'attendance' => true,
'eligibility' => true,
'Discipline' => true,
'Billing' => true,
'EasyCom' => true,
'Library' => true,
'messaging' => true,
'tools' => true,
);
// If session isn't started, start it.
if (!isset($SessionStart))
$SessionStart = 1;
}