-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.inc.php
executable file
·92 lines (81 loc) · 3.35 KB
/
config.inc.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
<?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 info@os4ed.com.
#
# 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('Redirect_root.php');
if(CONFIG_INC==0)
{
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("database.inc.php");
include("upgrade.inc.php");
# Set Build Date and Version Number here.
$b_date_sql = "select value from app where name='date'";
$b_date_res = mysql_query($b_date_sql);
$b_date_row = mysql_fetch_array($b_date_res);
$version_sql = "select value from app where name='version'";
$version_res = mysql_query($version_sql);
$version_row = mysql_fetch_array($version_res);
# $openSISVersion = '4.6';
# $builddate = 'February 11, 2010';
$openSISVersion = $version_row[0];
$builddate = $b_date_row[0];
$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 = '';
$openSISModules = array(
'School_Setup'=>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;
}
?>