3
* © Copyright 2007, 2008 IntraHealth International, Inc.
5
* This File is part of iHRIS
7
* iHRIS is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 3 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
* This page loads the main HTML template for the home page of the site.
25
* @subpackage DemoManage
27
* @author Carl Leitner <litlfred@ibiblio.org>
28
* @copyright Copyright © 2007, 2008 IntraHealth International, Inc.
34
$i2ce_site_user_access_init = null;
35
require_once( dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.values.php');
37
$local_config = dirname(__FILE__) . DIRECTORY_SEPARATOR .
38
'local' . DIRECTORY_SEPARATOR . 'config.values.php';
39
if (file_exists($local_config)) {
40
require_once($local_config);
43
if(!isset($i2ce_site_i2ce_path) || !is_dir($i2ce_site_i2ce_path)) {
44
echo "Please set the \$i2ce_site_i2ce_path in $local_config";
48
require_once ($i2ce_site_i2ce_path . DIRECTORY_SEPARATOR . 'I2CE_config.inc.php');
49
@I2CE::initializeDSN($i2ce_site_dsn, $i2ce_site_user_access_init, $i2ce_site_module_config);
52
unset($i2ce_site_user_access_init);
53
unset($i2ce_site_dsn);
54
unset($i2ce_site_i2ce_path);
55
unset($i2ce_site_module_config);
59
@$page = new I2CE_Wrangler();
65
# c-default-style: "bsd"
66
# indent-tabs-mode: nil