<?php
/*=====================================================================*\
-|| ################################################################### ||
+|| ###################################################################
|| # ViewSVN [#]version[#]
-|| # --------------------------------------------------------------- # ||
-|| # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
-|| # This file may not be reproduced in any way without permission. # ||
-|| # --------------------------------------------------------------- # ||
-|| # User License Agreement at http://www.iris-studios.com/license/ # ||
-|| ################################################################### ||
+|| # Copyright ©2002-[#]year[#] Blue Static
+|| #
+|| # This program is free software; you can redistribute it and/or modify
+|| # it under the terms of the GNU General Public License as published by
+|| # the Free Software Foundation; version [#]gpl[#] of the License.
+|| #
+|| # This program is distributed in the hope that it will be useful, but
+|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+|| # more details.
+|| #
+|| # You should have received a copy of the GNU General Public License along
+|| # with this program; if not, write to the Free Software Foundation, Inc.,
+|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+|| ###################################################################
\*=====================================================================*/
require_once('./includes/init.php');
-if (!defined('PATH_OVERRIDE') OR PATH_OVERRIDE != 1)
+require_once('./includes/functions.php');
+require_once('./includes/class_revision.php');
+
+// ###################################################################
+// define the path variables
+$atpos = strpos($input->in['path'], '@');
+$input->in['rev'] = $input->clean(substr($input->in['path'], $atpos + 1), TYPE_UINT);
+if ($atpos !== false)
{
- $path = $viewsvn->paths->parse();
- $repos = $viewsvn->paths->fetch_repos($path);
- $relpath = $viewsvn->paths->fetch_path($path);
+ $input->in['path'] = substr($input->in['path'], 0, strpos($input->in['path'], '@'));
}
+// ###################################################################
+// setup the SVN library
+require_once('./includes/class_libsvn.php');
+BSRegister::Register('lib', $lib = new LibSVN($conf['paths']['svn']));
+
$fetchtemplates[] = 'header';
$fetchtemplates[] = 'footer';
$fetchtemplates[] = 'doctype';
$fetchtemplates[] = 'headinclude';
+$show['reposchooser'] = false;
+
+if ($repos->container AND !$hideChooser)
+{
+ $show['reposchooser'] = true;
+ $fetchtemplates[] = 'select_option';
+}
+
$template->cache((array)$fetchtemplates);
+$options = '';
+if ($show['reposchooser'])
+{
+ $html = '';
+ $options = $repos->fetchList();
+ foreach ($options AS $option)
+ {
+ $value = $option;
+ $display = $option;
+ $selected = ($controller->repos == $option ? true : false);
+ eval('$html .= "' . $template->fetch('select_option') . '";');
+ }
+ $options = $html;
+}
+
+$year = date('Y');
+
eval('$header = "' . $template->fetch('header') . '";');
eval('$footer = "' . $template->fetch('footer') . '";');
eval('$doctype = "' . $template->fetch('doctype') . '";');