]> src.bluestatic.org Git - viewsvn.git/blob - includes/init.php
Did the log message parser
[viewsvn.git] / includes / init.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # ViewSVN [#]version[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
6 || #
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.
10 || #
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
14 || # more details.
15 || #
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 \*=====================================================================*/
21
22 //error_reporting(E_ALL);
23 error_reporting(E_ALL & ~E_NOTICE);
24
25 define('ISSO_MT_START', microtime());
26
27 // ###################################################################
28 // configuration file
29 if (!file_exists('./includes/config.php'))
30 {
31 echo 'includes/config.php needs to be present!';
32 exit;
33 }
34
35 require_once('./includes/config.php');
36
37 // ###################################################################
38 // init isso
39 define('ISSO_ESCAPE_STRINGS', 1);
40 define('ISSO_CHECK_POST_REFERER', 1);
41
42 require_once($issopath . 'kernel.php');
43 $viewsvn = new Shared_Object_Framework();
44 $viewsvn->application = 'ViewSVN';
45 $viewsvn->apppath = $viewsvn->fetch_sourcepath(getcwd());
46 $viewsvn->appversion = '[#]version[#]';
47 $viewsvn->debug = $debug;
48 $viewsvn->sourcepath = $viewsvn->fetch_sourcepath($issopath);
49
50 $viewsvn->load('functions', 'funct', true);
51 $viewsvn->exec_sanitize_data();
52
53 // ###################################################################
54 // localization stystem
55 $viewsvn->load('localize', 'lang', true);
56
57 // ###################################################################
58 // handle template system
59 $viewsvn->load('template_fs', 'template', true);
60 $template->templatedir = $viewsvn->fetch_sourcepath('./templates/' . $templatedir);
61
62 // ###################################################################
63 // imaginary reporter
64 require_once('./includes/imaginary.php');
65 $viewsvn->trigger =& new Imaginary();
66
67 // ###################################################################
68 // load shell subsystem
69 require_once('./includes/shellcmd.php');
70 $viewsvn->shell =& new Shell();
71
72 // ###################################################################
73 // setup repository
74 require_once('./includes/repository.php');
75 $viewsvn->repos =& new Repository($repository, $iscontainer);
76
77 // ###################################################################
78 // path manager
79 require_once('./includes/paths.php');
80 $viewsvn->path = $webpath;
81 $viewsvn->paths =& new Paths($pathtype);
82 $viewsvn->paths->enscript = $enscript;
83
84 // ###################################################################
85 // initialize SVN
86 require_once('./includes/svnlib.php');
87 $viewsvn->svn =& new SVNLib($svnpath);
88
89 /*=====================================================================*\
90 || ###################################################################
91 || # $HeadURL$
92 || # $Id$
93 || ###################################################################
94 \*=====================================================================*/
95 ?>