Welcome to mirror list, hosted at ThFree Co, Russian Federation.

show_commit.php « web « cruise-control - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bcb5e5732d322915a90de5e4f97ccb76f66bd54c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

include("html_templates.php");
include("log_wrapper.php");

$type = $_GET["type"];
$commit_id = $_GET["commit_id"];

if (($type != "log" && $type != "info") || empty($commit_id)) {
  warn("Wrong arguments, dying") && die();
}

header("Content-Type: text/plain; charset=UTF-8");

include(StaticData::logs_path . "/" . substr($commit_id, 0, 1) . "/" . $commit_id . "." . $type);

?>