require_once('./includes/init.php');
+$dochooser = false;
if (!defined('PATH_OVERRIDE') OR PATH_OVERRIDE != 1)
{
$path = $viewsvn->paths->parse();
$repos = $viewsvn->paths->fetch_repos($path);
$relpath = $viewsvn->paths->fetch_path($path);
+
+ $dochooser = true;
}
$fetchtemplates[] = 'header';
$fetchtemplates[] = 'doctype';
$fetchtemplates[] = 'headinclude';
+$show['reposchooser'] = false;
+if ($viewsvn->repos->container AND $dochooser)
+{
+ $show['reposchooser'] = true;
+ $fetchtemplates[] = 'select_option';
+}
+
$template->cache((array)$fetchtemplates);
+$options = '';
+if ($show['reposchooser'])
+{
+ $html = '';
+ $options = $viewsvn->repos->fetch_list();
+ foreach ($options AS $option)
+ {
+ $value = $option;
+ $display = $option;
+ $selected = ($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') . '";');
--- /dev/null
+<?php
+/*=====================================================================*\
+|| ###################################################################
+|| # ViewSVN [#]version[#]
+|| # Copyright ©2002-[#]year[#] Iris Studios, Inc.
+|| #
+|| # 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
+|| ###################################################################
+\*=====================================================================*/
+
+define('PATH_OVERRIDE', 1);
+
+require_once('./global.php');
+
+// ###################################################################
+
+if ($viewsvn->in['repository'])
+{
+ if (in_array($viewsvn->in['repository'], $viewsvn->repos->fetch_list()))
+ {
+ header('Location: ' . $viewsvn->path . '/' . $viewsvn->paths->out('browse.php', $viewsvn->in['repository'] . '/'));
+ exit;
+ }
+}
+
+header('Location: ' . $viewsvn->path . '/index.php');
+
+/*=====================================================================*\
+|| ###################################################################
+|| # $HeadURL$
+|| # $Id$
+|| ###################################################################
+\*=====================================================================*/
+?>
\ No newline at end of file