Display CBI Repository Analysis Reports, if folder is present.
- Also, display the zip file size in human readable format as before.
diff --git a/scripts/iplog.php b/scripts/iplog.php
index ca60b9a..a858b79 100644
--- a/scripts/iplog.php
+++ b/scripts/iplog.php
@@ -32,6 +32,11 @@
$buildURL = $_GET['buildURL'];
}
+$displayablezipfilesize="(0M)";
+if (isset($_GET['zipFileSize'])) {
+ $displayablezipfilesize = $_GET['zipFileSize'];
+}
+
$pageTitle="Orbit Build $buildlabel";
require $relativePath."/commonFiles/DL.header.php.html";
@@ -187,6 +192,11 @@
echo "<img class=\"cs\" alt=\"Checks Ok\" src=\"".$relativePath."/commonFiles/Checkmark.gif\" />" ."IP Log XML File Checks: Ok <br />\n";
}
+ $reporeports="repository/buildlogs/reporeports";
+ if (file_exists($reporeports)) {
+ echo "<a href=\"repository/buildlogs/reporeports/\">CBI Repository Analysis Reports</a><br />\n";
+ }
+
echo "</p>\n";
$currentPageURLSegments = $repoPath;
@@ -199,7 +209,6 @@
echo "<a href=\"${currentPageURLSegments}repository/index.xml.gz\">${currentPageURLSegments}repository/index.xml.gz</a></p>";
}
- $displayablezipfilesize=fileSizeForDisplay("orbit-buildrepo-$buildlabel.zip");
echo "<h2>Zipped Orbit Build Repository</h2>";
echo "<p>The following zip file is a compressed-archive version of the above repository, for those that need or desire to have a copy of the whole repository on their local machine:<br />";