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 \*=====================================================================*/
13 error_reporting(E_ALL
);
14 //error_reporting(E_ALL & ~E_NOTICE);
16 define('ISSO_MT_START', microtime());
18 // ###################################################################
20 if (!file_exists('./includes/config.php'))
22 echo 'includes/config.php needs to be present!';
26 require_once('./includes/config.php');
28 // ###################################################################
30 define('ISSO_ESCAPE_STRINGS', 1);
31 define('ISSO_CHECK_POST_REFERER', 1);
33 require_once($issopath . 'kernel.php');
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);
41 $viewsvn->load('functions');
42 $viewsvn->exec_sanitize_data();
44 // ###################################################################
45 // handle template system
46 $viewsvn->load('template_fs');
47 $template->templatedir
= $viewsvn->fetch_sourcepath('./templates/' . $templatedir);
49 // ###################################################################
51 require_once('./includes/imaginary.php');
52 $viewsvn->trigger
=& new Imaginary();
54 // ###################################################################
55 // load shell subsystem
56 require_once('./includes/shellcmd.php');
57 $viewsvn->shell
=& new Shell();
59 // ###################################################################
61 require_once('./includes/repository.php');
62 $viewsvn->repos
=& new Repository($repository, $iscontainer);
64 // ###################################################################
66 require_once('./includes/paths.php');
67 $viewsvn->paths
=& new Paths($pathtype);
69 // ###################################################################
71 require_once('./includes/svnlib.php');
72 $viewsvn->svn
=& new SVNLib($svnpath);
74 /*=====================================================================*\
75 || ###################################################################
78 || ###################################################################
79 \*=====================================================================*/