]>
src.bluestatic.org Git - viewsvn.git/blob - global.php
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 require_once('./includes/init.php');
24 require_once('./includes/functions.php');
25 require_once('./includes/class_revision.php');
27 // ###################################################################
28 // define the path variables
29 $atpos = strpos($input->in
['path'], '@');
30 $input->in
['rev'] = $input->clean(substr($input->in
['path'], $atpos +
1), TYPE_UINT
);
33 $input->in
['path'] = substr($input->in
['path'], 0, strpos($input->in
['path'], '@'));
36 // ###################################################################
37 // setup the SVN library
38 require_once('./includes/class_libsvn.php');
39 BSRegister
::Register('lib', $lib = new LibSVN($conf['paths']['svn']));
41 $fetchtemplates[] = 'header';
42 $fetchtemplates[] = 'footer';
43 $fetchtemplates[] = 'doctype';
44 $fetchtemplates[] = 'headinclude';
46 $show['reposchooser'] = false;
48 if ($repos->container
AND !$hideChooser)
50 $show['reposchooser'] = true;
51 $fetchtemplates[] = 'select_option';
54 $template->cache((array)$fetchtemplates);
57 if ($show['reposchooser'])
60 $options = $repos->fetchList();
61 foreach ($options AS $option)
65 $selected = ($controller->repos
== $option ? true : false);
66 eval('$html .= "' . $template->fetch('select_option') . '";');
73 eval('$header = "' . $template->fetch('header') . '";');
74 eval('$footer = "' . $template->fetch('footer') . '";');
75 eval('$doctype = "' . $template->fetch('doctype') . '";');
76 eval('$headinclude = "' . $template->fetch('headinclude') . '";');
78 /*=====================================================================*\
79 || ###################################################################
82 || ###################################################################
83 \*=====================================================================*/