Create imagePath variable for resolving images.
diff --git a/scripts/dlconfig.php b/scripts/dlconfig.php
index 318e329..af0c00d 100644
--- a/scripts/dlconfig.php
+++ b/scripts/dlconfig.php
@@ -1,4 +1,5 @@
<?php
$relativePath=".";
+$imagePath="../../..";
$previousCrumb="<li><a href=\"http://download.eclipse.org/tools/orbit/downloads/\">Orbit Downloads</a></li>";
diff --git a/scripts/iplog.php b/scripts/iplog.php
index ebef556..f792142 100644
--- a/scripts/iplog.php
+++ b/scripts/iplog.php
@@ -137,17 +137,17 @@
// comparator log).
// note to self: use file_get_contents to reading contents into a string.
if (file_exists("referenceRepoExists")) {
- echo "<img class=\"cs\" alt=\"Repo exists\" src=\"".$relativePath."/commonFiles/Checkmark.gif\" /> Repo used for comparison during mirroring: ";
+ echo "<img class=\"cs\" alt=\"Repo exists\" src=\"".$imagePath."/commonFiles/Checkmark.gif\" /> Repo used for comparison during mirroring: ";
readfile("referenceRepoExists");
echo "<br />";
}
elseif (file_exists("referenceRepoExistsNot")) {
- echo "<img class=\"cs\" alt=\"Repo not found\" src=\"".$relativePath."/commonFiles/Fail.gif\" /> Bad build. Repo to use while mirroring was not found:<br />\n";
+ echo "<img class=\"cs\" alt=\"Repo not found\" src=\"".$imagePath."/commonFiles/Fail.gif\" /> Bad build. Repo to use while mirroring was not found:<br />\n";
readfile("referenceRepoExistsNot");
echo "<br />\n";
}
else {
- echo "<img class=\"cs\" alt=\"Repo indicator file not found\" src=\"".$relativePath."/commonFiles/Fail.gif\" /><br />\n";
+ echo "<img class=\"cs\" alt=\"Repo indicator file not found\" src=\"".$imagePath."/commonFiles/Fail.gif\" /><br />\n";
echo "Repository indicator file not found. Probably a bad build or build script error? Check Ant Build Output.";
echo "<br />\n";
}
@@ -157,10 +157,10 @@
echo "<a href=\"results-$buildlabel.xml\">\n";
// the testsFailed.txt file is an intentional indicator (only) file
if (file_exists("testsFailed.txt")) {
- echo "<img class=\"cs\" alt=\"Tests Failed\" src=\"".$relativePath."/commonFiles/Fail.gif\" />\n";
+ echo "<img class=\"cs\" alt=\"Tests Failed\" src=\"".$imagePath."/commonFiles/Fail.gif\" />\n";
}
elseif (file_exists("testsOk.txt")) {
- echo "<img class=\"cs\" alt=\"Tests Passed\" src=\"".$relativePath."/commonFiles/Checkmark.gif\" />\n";
+ echo "<img class=\"cs\" alt=\"Tests Passed\" src=\"".$imagePath."/commonFiles/Checkmark.gif\" />\n";
}
echo "Test Results</a><br />\n";
} else {
@@ -184,12 +184,12 @@
}
file_put_contents ($filenameerr, $dataerr);
//
- echo "<img class=\"cs\" alt=\"Checks Failed\" src=\"".$relativePath."/commonFiles/Fail.gif\" />" . "IP Log XML File Checks: Errors Found: <br />\n";
+ echo "<img class=\"cs\" alt=\"Checks Failed\" src=\"".$imagePath."/commonFiles/Fail.gif\" />" . "IP Log XML File Checks: Errors Found: <br />\n";
foreach ($ipouterrors as $iperrs) {
echo "<li>".$iperrs."</li>\n";
}
} else {
- echo "<img class=\"cs\" alt=\"Checks Ok\" src=\"".$relativePath."/commonFiles/Checkmark.gif\" />" ."IP Log XML File Checks: Ok <br />\n";
+ echo "<img class=\"cs\" alt=\"Checks Ok\" src=\"".$imagePath."/commonFiles/Checkmark.gif\" />" ."IP Log XML File Checks: Ok <br />\n";
}
echo "<a href=\"reporeports/\">CBI Repository Analysis Reports</a><br />\n";
@@ -318,8 +318,8 @@
echo "</table>";
echo "<p>Note: entries marked with 'unzip' are intented to be unzipped in a normal IDE environment, to work as intended (even though the file to download is a jar file).</p>";
-include $relativePath."/commonFiles/footerSUA.html";
-include $relativePath."/commonFiles/footerWebmaster.html";
+//include $relativePath."/commonFiles/footerSUA.html";
+//include $relativePath."/commonFiles/footerWebmaster.html";
require $relativePath."/commonFiles/DL.footer.php.html";
?>