paths->construct_breadcrumb($viewsvn->paths->path); // ################################################################### $link['log'] = $viewsvn->paths->out('log.php' . $viewsvn->paths->revstr, $viewsvn->paths->path); $show['head'] = ($viewsvn->svn->common->fetch_head_rev($viewsvn->paths->path) != $viewsvn->paths->revnum AND $viewsvn->paths->revnum != 'HEAD'); if ($show['head']) { $link['gohead'] = $viewsvn->paths->out('browse.php' . $viewsvn->paths->fetch_rev_str(false, 'HEAD'), $viewsvn->paths->path); $link['diffhead'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, 'HEAD', $viewsvn->paths->revnum), $viewsvn->paths->path); } $show['prev'] = (($prev = $viewsvn->svn->common->fetch_prev_rev($viewsvn->paths->path, $viewsvn->paths->revnum)) != -1 ? true : false); if ($show['prev']) { $link['diffprev'] = $viewsvn->paths->out('diff.php' . $viewsvn->paths->fetch_rev_str(true, $viewsvn->paths->revnum, $prev), $viewsvn->paths->path); } // ################################################################### $logmsg = $viewsvn->svn->common->fetch_log($viewsvn->paths->path, $viewsvn->paths->revnum); unset($logmsg['files']); $logmsg['message_clean'] = $viewsvn->svn->format_log_message($logmsg['message']); $catdata = implode("\n", $viewsvn->svn->cat($viewsvn->paths->repos, $viewsvn->paths->relpath, $viewsvn->paths->revnum)); // get language information require_once('./includes/file_types.php'); $language = $filetypes[ $funct->fetch_extension($viewsvn->paths->relpath) ]; // initialize GeSHi $mtstart = microtime(); require_once('./includes/geshi/geshi.php'); $geshi = new Geshi($catdata, $language[MIMES_GESHI_LANGUAGE]); // use CSS $geshi->enable_classes(); // header $geshi->set_header_type(GESHI_HEADER_DIV); // disable links $urls = array_keys($geshi->language_data['URLS']); foreach ($urls AS $key) { $geshi->set_url_for_keyword_group($key, ''); } // don't do anything stupid $geshi->set_case_keywords(GESHI_CAPS_NO_CHANGE); // encoding $geshi->set_encoding('UTF-8'); // tab width $geshi->set_tab_width(5); // parse the code $catdata = $geshi->parse_code(); $viewsvn->debug("time in GeSHi = " . $funct->fetch_microtime_diff($mtstart)); // ################################################################### eval('$template->flush("' . $template->fetch('view') . '");'); /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>