Adding language settings to config.php so that people can control the language output...
[viewsvn.git] / index.php
index 31e235a6e09995c2cddacdf4f81b2548366cd549..f186fd2b11ad14248c2807b085b6cb14ee20f946 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,29 +1,47 @@
 <?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
+|| ###################################################################
 \*=====================================================================*/
 
 define('PATH_OVERRIDE', 1);
 
+$fetchtemplates = array(
+       'index_node',
+       'index'
+);
+
+define('SVN', '$Id$');
+
 require_once('./global.php');
 
-echo '<ul>';
-echo "\n";
+// ###################################################################
+
+$nodes = '';
 
-foreach ($viewsvn->repos->fetch_list() AS $repos)
+foreach ($repos->fetchList() AS $repos)
 {
-       echo '<li><a href="' . $viewsvn->paths->out('browse.php', $repos . '/') . '">' . $repos . '</a></li>';
-       echo "\n";
+       eval('$nodes .= "' . $template->fetch('index_node') . '";');
 }
 
-echo '</ul>';
+// ###################################################################
+
+eval('$template->flush("' . $template->fetch('index') . '");');
 
 /*=====================================================================*\
 || ###################################################################