<?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
|| ###################################################################
\*=====================================================================*/
require_once('./includes/init.php');
require_once('./includes/controller.php');
$dochooser = ((defined('PATH_OVERRIDE') AND PATH_OVERRIDE == 1) ? false : true);
if ($dochooser)
{
$controller = new Controller(Paths::init());
if (isset($viewsvn->in['rebuild']) AND $viewsvn->in['rebuild'] == 1 AND $viewsvn->get('debug') == true)
{
$controller->cachev->build(null);
}
else
{
if ($controller->cachev->exec_build())
{
unset($controller);
$controller = new Controller(Paths::init());
}
}
$viewsvn->maincontrol =& $controller;
}
$fetchtemplates[] = 'header';
$fetchtemplates[] = 'footer';
$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 = ($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') . '";');
eval('$headinclude = "' . $template->fetch('headinclude') . '";');
/*=====================================================================*\
|| ###################################################################
|| # $HeadURL$
|| # $Id$
|| ###################################################################
\*=====================================================================*/
?>