Advanced diff data is done
[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 //error_reporting(E_ALL & ~E_NOTICE);
15
16 define('ISSO_MT_START', microtime());
17
18 // ###################################################################
19 // configuration file
20 if (!file_exists('./includes/config.php'))
21 {
22 echo 'includes/config.php needs to be present!';
23 exit;
24 }
25
26 require_once('./includes/config.php');
27
28 // ###################################################################
29 // init isso
30 define('ISSO_ESCAPE_STRINGS', 1);
31 define('ISSO_CHECK_POST_REFERER', 1);
32
33 require_once($issopath . 'kernel.php');
34 $viewsvn =& $_isso;
35 $viewsvn->application = 'ViewSVN';
36 $viewsvn->apppath = $viewsvn->fetch_sourcepath(getcwd());
37 $viewsvn->appversion = '[#]version[#]';
38 $viewsvn->debug = $debug;
39 $viewsvn->sourcepath = $viewsvn->fetch_sourcepath($issopath);
40
41 $viewsvn->load('functions');
42 $viewsvn->exec_sanitize_data();
43
44 // ###################################################################
45 // imaginary reporter
46 require_once('./includes/imaginary.php');
47 $viewsvn->trigger =& new Imaginary();
48
49 // ###################################################################
50 // load shell subsystem
51 require_once('./includes/shellcmd.php');
52 $viewsvn->shell =& new Shell();
53
54 // ###################################################################
55 // setup repository
56 require_once('./includes/repository.php');
57 $viewsvn->repos =& new Repository($repository, $iscontainer);
58
59 // ###################################################################
60 // path manager
61 require_once('./includes/paths.php');
62 $viewsvn->paths =& new Paths($pathtype);
63
64 // ###################################################################
65 // initialize SVN
66 require_once('./includes/svnlib.php');
67 $viewsvn->svn =& new SVNLib($svnpath);
68
69 /*=====================================================================*\
70 || ###################################################################
71 || # $HeadURL$
72 || # $Id$
73 || ###################################################################
74 \*=====================================================================*/
75 ?>