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 \*=====================================================================*/
14 * Class that manages repositories and can produce lists of
21 * Repository class that can list repositories and prepare
30 * Constructor: prepare for repository
32 * @param string Path to repository or container
33 * @param bool Whether the path is a container
35 function Repository($path, $iscontainer)
41 $path = $viewsvn->fetch_sourcepath($path);
45 if ($dir = @opendir($path))
47 while (($file = readdir($dir)) !== false
)
49 if (is_dir($path . $file) AND $file{0} != '.' AND is_dir($path . $file . '/' . 'db'))
59 if (is_dir($path . 'db'))
65 if (count($repos) < 1)
67 $viewsvn->trigger
->error('no valid repositories');
72 /*=====================================================================*\
73 || ###################################################################
76 || ###################################################################
77 \*=====================================================================*/