-
Notifications
You must be signed in to change notification settings - Fork 39
/
pftt.php
69 lines (54 loc) · 1.98 KB
/
pftt.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
error_reporting(E_ALL);
include("include/functions.php");
$TITLE = "PHP: QA: PFTT";
$SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
common_header(NULL);
define('BASE_REPORT_DIR', dirname($_SERVER['SCRIPT_FILENAME'])."/reports/db/");
?>
<h1>PFTT</h1>
<p>Choose a PHP Branch</p>
<?php
$branches = scandir(BASE_REPORT_DIR);
if ($branches!==FALSE) {
$branches = array_reverse($branches);
foreach ( $branches as $branch ) {
if ($branch=="." or $branch==".." or $branch==".svn")
continue;
if (is_dir(BASE_REPORT_DIR."/$branch")) {
$latest_revision = '';
$latest_revision_mtime = 0;
foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) {
if ($revision=="." or $revision==".." or $revision==".svn")
continue;
if (is_dir(BASE_REPORT_DIR."/$branch/$revision")) {
$s = stat(BASE_REPORT_DIR."/$branch/$revision");
$mtime = $s['mtime'];
if ($mtime > $latest_revision_mtime) {
$latest_revision = $revision;
$latest_revision_mtime = $mtime;
}
}
}
$red = is_file(BASE_REPORT_DIR."/$branch/$latest_revision/FAIL_CRASH.txt");
?>
<table class="pftt" style="background:<?php echo $red ? '#ff0000;' : '#ccff66'; ?>">
<tr>
<td style="width:300px"><a href="list_builds.php?branch=<?php echo urlencode($branch); ?>"><?php echo htmlentities($branch); ?></a></td>
<td style="width:100px">Latest:</td>
<td style="width:300px"><a href="build.php?branch=<?php echo urlencode($branch); ?>&revision=<?php echo urlencode($latest_revision); ?>"><?php echo htmlentities($latest_revision); ?></a></td>
</tr>
</table>
<br/>
<?php
} // end if
}
}
?>
<p><strong>PFTT Source Code:</strong> <a href="https://github.com/php/pftt2">https://github.com/php/pftt2</a></p>
<p><strong>PFTT Binaries:</strong> <a href="https://windows.php.net/downloads/snaps/ostc/pftt/" target="_blank">https://windows.php.net/downloads/snaps/ostc/pftt/</a></p>
<br/>
<br/>
<?php
common_footer();
?>