Adding language settings to config.php so that people can control the language output...
[viewsvn.git] / index.php
index 1e01b16ae3be1d2928e3bbb027c781719e2f9e52..f186fd2b11ad14248c2807b085b6cb14ee20f946 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,15 +1,48 @@
 <?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');
+
+// ###################################################################
+
+$nodes = '';
+
+foreach ($repos->fetchList() AS $repos)
+{
+       eval('$nodes .= "' . $template->fetch('index_node') . '";');
+}
+
+// ###################################################################
+
+eval('$template->flush("' . $template->fetch('index') . '");');
+
 /*=====================================================================*\
 || ###################################################################
 || # $HeadURL$