Adding language settings to config.php so that people can control the language output...
[viewsvn.git] / index.php
index 3e0628fd1a868596d83c8d6b87f01758fa6a8822..f186fd2b11ad14248c2807b085b6cb14ee20f946 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2,7 +2,7 @@
 /*=====================================================================*\
 || ###################################################################
 || # ViewSVN [#]version[#]
-|| # Copyright ©2002-[#]year[#] Iris Studios, Inc.
+|| # 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
@@ -26,50 +26,16 @@ $fetchtemplates = array(
        'index'
 );
 
+define('SVN', '$Id$');
+
 require_once('./global.php');
 
 // ###################################################################
 
 $nodes = '';
 
-$tables = $db->query("SHOW TABLES");
-while ($table = $db->fetch_array($tables))
-{
-       $value = array_values($table);
-       $tablelist[] = $value[0];
-}
-
-foreach ($viewsvn->repos->fetch_list() AS $repos)
+foreach ($repos->fetchList() AS $repos)
 {
-       if (!in_array('c' . ($hash = md5($viewsvn->repos->fetch_path($repos))) . '_revs', $tablelist))
-       {
-               $viewsvn->debug("creating new cacheV: $repos");
-               $db->query("
-                       CREATE TABLE c{$hash}_revs
-                       (
-                               revision INT(20) UNSIGNED NOT NULL DEFAULT 0,
-                               author VARCHAR(255) NOT NULL DEFAULT '',
-                               dateline VARCHAR(100) NOT NULL DEFAULT '',
-                               files MEDIUMTEXT NOT NULL DEFAULT '',
-                               message MEDIUMTEXT NOT NULL DEFAULT '',
-                               PRIMARY KEY (revision)
-                       )"
-               );
-               
-               $db->query("
-                       CREATE TABLE c{$hash}_nodes
-                       (
-                               name VARCHAR(255) NOT NULL DEFAULT '',
-                               node VARCHAR(50) NOT NULL DEFAULT '',
-                               revision INT(20) UNSIGNED NOT NULL DEFAULT 0,
-                               history MEDIUMTEXT NOT NULL DEFAULT '',
-                               properties MEDIUMTEXT NOT NULL DEFAULT '',
-                               PRIMARY KEY (name)
-                       )"
-               );
-       }
-       
-       $link = 'browse.php/' . $repos . '/';   
        eval('$nodes .= "' . $template->fetch('index_node') . '";');
 }