2 /*=====================================================================*\
3 || ###################################################################
4 || # ViewSVN [#]version[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
7 || # This program 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; version [#]gpl[#] of the License.
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
22 error_reporting(E_ALL
& ~E_NOTICE
);
23 // error_reporting(E_ALL);
25 define('ISSO_MT_START', microtime());
27 // ###################################################################
29 if (!file_exists('./includes/config.php'))
31 echo 'includes/config.php needs to be present!';
35 require_once('./includes/config.php');
37 // ###################################################################
40 ini_set('include_path', ini_get('include_path') . ':' . dirname(dirname(__FILE__
)) . '/framework');
42 require_once('ISSO/Register.php');
43 require_once('ISSO/Functions.php');
44 require_once('ISSO/Xml.php');
46 BSRegister
::SetDebug($debug);
48 BSRegister
::Register('db', $db = BSRegister
::LoadModule('DbMySql'));
49 $db->connect($conf['db']['server'], $conf['db']['user'], $conf['db']['pass'], $conf['db']['name'], 0);
51 BSRegister
::Register('input', $input = BSRegister
::LoadModule('Input'));
53 // ###################################################################
54 // handle template system
56 BSRegister
::Register('template', $template = BSRegister
::LoadModule('Template'));
58 $template->setTemplateDirectory('./templates/' . $conf['paths']['templateset']);
59 $template->setExtension('tpl');
61 // ###################################################################
63 BSRegister
::Register('svnpath', $conf['paths']['svn']);
65 require_once('./includes/svncommon.php');
67 // ###################################################################
69 require_once('./includes/imaginary.php');
70 $viewsvn->trigger
=& new Imaginary();
72 // ###################################################################
74 require_once('./includes/repository.php');
75 BSRegister
::Register('repos', $repos = new Repository($conf['repository']['path'], $conf['repository']['iscontainer']));
77 // ###################################################################
79 BSRegister
::Register('webpath', $conf['paths']['web']);
81 /*=====================================================================*\
82 || ###################################################################
85 || ###################################################################
86 \*=====================================================================*/