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 DemoPlan
27
* @author Carl Leitner <litlfred@ibiblio.org>
28
* @copyright Copyright © 2007, 2008 IntraHealth International, Inc.
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');
50
I2CE::initialize($i2ce_site_database_user,
51
$i2ce_site_database_password,
53
$i2ce_site_user_database,
54
$i2ce_site_module_config
57
unset($i2ce_site_user_database);
58
unset($i2ce_site_database);
59
unset($i2ce_site_database_user);
60
unset($i2ce_site_database_password);
61
unset($i2ce_site_i2ce_path);
62
unset($i2ce_site_module_config);
66
$page = new I2CE_Wrangler();
72
# c-default-style: "bsd"
73
# indent-tabs-mode: nil