Added path management
[viewsvn.git] / includes / init.php
1 <?php
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # ViewSVN [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
12
13 error_reporting(E_ALL);
14
15 define('ISSO_MT_START', microtime());
16
17 // ###################################################################
18 // configuration file
19 if (!file_exists('./includes/config.php'))
20 {
21 echo 'includes/config.php needs to be present!';
22 exit;
23 }
24
25 require_once('./includes/config.php');
26
27 // ###################################################################
28 // init isso
29 define('ISSO_ESCAPE_STRINGS', 1);
30 define('ISSO_CHECK_POST_REFERER', 1);
31
32 require_once($issopath . 'kernel.php');
33 $viewsvn =& $_isso;
34 $viewsvn->application = 'ViewSVN';
35 $viewsvn->apppath = $viewsvn->fetch_sourcepath(getcwd());
36 $viewsvn->appversion = '[#]version[#]';
37 $viewsvn->debug = $debug;
38 $viewsvn->sourcepath = $viewsvn->fetch_sourcepath($issopath);
39
40 $viewsvn->load('functions');
41 $viewsvn->exec_sanitize_data();
42
43 // ###################################################################
44 // imaginary reporter
45 require_once('./includes/imaginary.php');
46 $viewsvn->trigger =& new Imaginary();
47
48 // ###################################################################
49 // load shell subsystem
50 require_once('./includes/shellcmd.php');
51 $viewsvn->shell =& new Shell();
52
53 // ###################################################################
54 // setup repository
55 require_once('./includes/repository.php');
56 $viewsvn->repos =& new Repository($repository, $iscontainer);
57
58 // ###################################################################
59 // path manager
60 require_once('./includes/paths.php');
61 $viewsvn->paths =& new Paths($pathtype);
62
63 /*=====================================================================*\
64 || ###################################################################
65 || # $HeadURL$
66 || # $Id$
67 || ###################################################################
68 \*=====================================================================*/
69 ?>