Cache templates
[viewsvn.git] / index.php
1 <?php
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # ViewSVN [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
12
13 define('PATH_OVERRIDE', 1);
14
15 $fetchtemplates = array(
16 'index_node',
17 'index'
18 );
19
20 require_once('./global.php');
21
22 // ###################################################################
23
24 $nodes = '';
25
26 foreach ($viewsvn->repos->fetch_list() AS $repos)
27 {
28 $link = $viewsvn->paths->out('browse.php', $repos . '/');
29 eval('$nodes .= "' . $template->fetch('index_node') . '";');
30 }
31
32 // ###################################################################
33
34 eval('$template->flush("' . $template->fetch('index') . '");');
35
36 /*=====================================================================*\
37 || ###################################################################
38 || # $HeadURL$
39 || # $Id$
40 || ###################################################################
41 \*=====================================================================*/
42 ?>