1 <?php # vim:ts=2:sw=2:et:
2 /* For licensing and copyright terms, see the file named LICENSE */
4 // Browse.php - only for rendering the body..
5 // Tree.php - the actually tree..
7 require_once 'MTrackWeb.php';
9 class MTrackWeb_Browse extends MTrackWeb
11 var $template = 'browse.html';
19 MTrackACL::requireAllRights('Browser', 'read');
28 $this->pi = '/'. $pi . (strlen($pi) ? $this->bootLoader->ext : '');
29 $this->pi = rtrim($this->pi, '/');
30 // var_dump($this->pi);pi
31 $crumbs = MTrackSCM::makeBreadcrumbs($this->pi); // i think this modifieds pi... naughty really.
33 if (!strlen($this->pi) || $this->pi == '/') {
37 $this->repo = (count($crumbs) > 2) ? MTrackSCM::factory($this->pi) : null ;
43 if (isset($_GET['jump']) && strlen($_GET['jump'])) {
44 list($this->object, $this->ident) = explode(':', $_GET['jump'], 2);
47 $this->repoName = $this->repo ? $this->repo->displayName() : '';