jablonka.czprosek.czf

websvn

Subversion Repositories:
[/] [log.php] - Diff between revs 1 and 3

Show entire file Ignore whitespace

Rev 1 Rev 3
Line 84... Line 84...
$svnrep = new SVNRepository($rep); $svnrep = new SVNRepository($rep);
   
$passrev = $rev; $passrev = $rev;
   
// If there's no revision info, go to the lastest revision for this path // If there's no revision info, go to the lastest revision for this path
$history = $svnrep->getLog($path, "", "", true); $history = $svnrep->getLog($path, $startrev, $endrev, true);
  if (is_string($history)) {
  echo $history;
  exit;
  }
$youngest = isset($history->entries[0]) ? $history->entries[0]->rev : 0; $youngest = isset($history->entries[0]) ? $history->entries[0]->rev : 0;
   
if (empty($rev)) { if (empty($rev)) {
$rev = $youngest; $rev = $youngest;
} }
Line 141... Line 145...
} else { } else {
if ($max < 0) $max = 30; if ($max < 0) $max = 30;
} }
   
$history = $svnrep->getLog($path, $startrev, $endrev, true, $max); $history = $svnrep->getLog($path, $startrev, $endrev, true, $max);
  if (is_string($history)) {
  echo $history;
  exit;
  }
$vars["logsearch_moreresultslink"] = ""; $vars["logsearch_moreresultslink"] = "";
$vars["pagelinks"] = ""; $vars["pagelinks"] = "";
$vars["showalllink"] = ""; $vars["showalllink"] = "";
$listing = array(); $listing = array();
   
Line 173... Line 181...
$erev = isset($history->entries[$lastrevindex]) ? $history->entries[$lastrevindex]->rev : false; $erev = isset($history->entries[$lastrevindex]) ? $history->entries[$lastrevindex]->rev : false;
   
$entries = array(); $entries = array();
if ($brev && $erev) { if ($brev && $erev) {
$history = $svnrep->getLog($path, $brev, $erev, false, 0); $history = $svnrep->getLog($path, $brev, $erev, false, 0);
  if (is_string($history)) {
  echo $history;
  exit;
  }
$entries = $history->entries; $entries = $history->entries;
} }
   
$row = 0; $row = 0;
$index = 0; $index = 0;
Line 237... Line 249...
$url = $config->getURL($rep, $rpath, "file"); $url = $config->getURL($rep, $rpath, "file");
$listing[$index]["revpathlink"] = "<a href=\"${url}rev=$thisrev\">$rpath</a>"; $listing[$index]["revpathlink"] = "<a href=\"${url}rev=$thisrev\">$rpath</a>";
} }
   
$listing[$index]["revauthor"] = $r->author; $listing[$index]["revauthor"] = $r->author;
  $listing[$index]["date"] = $r->date;
$listing[$index]["revage"] = $r->age; $listing[$index]["revage"] = $r->age;
$listing[$index]["revlog"] = nl2br($bugtraq->replaceIDs(create_anchors($r->msg))); $listing[$index]["revlog"] = nl2br($bugtraq->replaceIDs(create_anchors($r->msg)));
$listing[$index]["rowparity"] = $row; $listing[$index]["rowparity"] = $row;
   
$row = 1 - $row; $row = 1 - $row;
Line 297... Line 310...
   
$vars["logsearch_startbox"] = "<input name=\"sr\" size=\"5\" value=\"$startrev\" />"; $vars["logsearch_startbox"] = "<input name=\"sr\" size=\"5\" value=\"$startrev\" />";
$vars["logsearch_endbox" ] = "<input name=\"er\" size=\"5\" value=\"$endrev\" />"; $vars["logsearch_endbox" ] = "<input name=\"er\" size=\"5\" value=\"$endrev\" />";
$vars["logsearch_maxbox" ] = "<input name=\"max\" size=\"5\" value=\"".($max==0?"":$max)."\" />"; $vars["logsearch_maxbox" ] = "<input name=\"max\" size=\"5\" value=\"".($max==0?"":$max)."\" />";
$vars["logsearch_inputbox"] = "<input name=\"search\" value=\"".htmlentities($search, ENT_QUOTES, 'UTF-8')."\" />"; $vars["logsearch_inputbox"] = "<input name=\"search\" value=\"".htmlentities($search, ENT_QUOTES, 'UTF-8')."\" />";
  $vars["logsearch_showall"] = '<input type="checkbox" name="all" value="1"'.($all ? ' checked="checked"' : '').' />';
   
$vars["logsearch_submit"] = "<input type=\"submit\" value=\"${lang["GO"]}\" />"; $vars["logsearch_submit"] = "<input type=\"submit\" value=\"${lang["GO"]}\" />";
$vars["logsearch_hidden"] = "<input type=\"hidden\" name=\"logsearch\" value=\"1\" />". $vars["logsearch_hidden"] = "<input type=\"hidden\" name=\"logsearch\" value=\"1\" />".
"<input type=\"hidden\" name=\"op\" value=\"log\" />". "<input type=\"hidden\" name=\"op\" value=\"log\" />".
"<input type=\"hidden\" name=\"rev\" value=\"$rev\" />". "<input type=\"hidden\" name=\"rev\" value=\"$rev\" />".
"<input type=\"hidden\" name=\"isdir\" value=\"$isDir\" />"; "<input type=\"hidden\" name=\"isdir\" value=\"$isDir\" />";
$vars["logsearch_endform"] = "</form>"; $vars["logsearch_endform"] = "</form>";
   
$url = $config->getURL($rep, $path, "log"); if ($page !== 1 || $all || $dosearch || $fromRev || $startrev !== $rev || $endrev !== 1 || $max !== 30) {
$vars["logsearch_clearloglink"] = "<a href=\"${url}rev=$rev&amp;isdir=$isDir\">${lang["CLEARLOG"]}</a>"; $url = $config->getURL($rep, $path, "log");
  $vars["logsearch_clearloglink"] = "<a href=\"${url}rev=$rev&amp;isdir=$isDir\">${lang["CLEARLOG"]}</a>";
  }
   
$url = $config->getURL($rep, "/", "comp"); $url = $config->getURL($rep, "/", "comp");
$vars["compare_form"] = "<form action=\"$url\" method=\"post\">"; $vars["compare_form"] = "<form action=\"$url\" method=\"post\">";
$vars["compare_submit"] = "<input name=\"comparesubmit\" type=\"submit\" value=\"${lang["COMPAREREVS"]}\" />"; $vars["compare_submit"] = "<input name=\"comparesubmit\" type=\"submit\" value=\"${lang["COMPAREREVS"]}\" />";
$vars["compare_hidden"] = "<input type=\"hidden\" name=\"op\" value=\"comp\" />"; $vars["compare_hidden"] = "<input type=\"hidden\" name=\"op\" value=\"comp\" />";
$vars["compare_endform"] = "</form>"; $vars["compare_endform"] = "</form>";
   
  $vars['showageinsteadofdate'] = $config->showAgeInsteadOfDate;
   
$vars["version"] = $version; $vars["version"] = $version;
   
if (!$rep->hasReadAccess($path, false)) { if (!$rep->hasReadAccess($path, false)) {
$vars["noaccess"] = true; $vars["noaccess"] = true;

Powered by WebSVN 2.2.1