Work around lack of support for 'zip' extension on server.
diff --git a/scripts/iplog.php b/scripts/iplog.php
index 7e0eeec..edf29f3 100644
--- a/scripts/iplog.php
+++ b/scripts/iplog.php
@@ -2,10 +2,6 @@
 
 ini_set("display_errors", true);
 error_reporting (E_ALL);
-
-echo 'Preparing Final Page';
-echo exec("which jar");
-echo exec("which unzip");
 $serverName = $_SERVER["SERVER_NAME"];
 if ("download.eclipse.org" === $serverName) {
   include "dlconfigOnDownloads.php";
@@ -19,9 +15,13 @@
 
 # get path to use when resolving relative children repositories
 if (isset($_GET['repoPath'])) {
+	$targetServer = 'http://download.eclipse.org';
 	$rPath = $_GET['repoPath'];
-	$repoPath = 'http://download.eclipse.org/' . $rPath;
-	$buildlabel = substr($rPath, strrpos($rPath, '/') + 1);
+	$repoPath = $targetServer . '/' . $rPath;
+
+	// ... /N20161019150530/repository
+	$start = strrpos($rPath, '/', -12);
+	$buildlabel = substr($rPath, $start + 1, 15);
 } else {
 	echo 'Missing repoPath.';
 	exit;
@@ -29,43 +29,6 @@
 
 $pageTitle="Orbit Build $buildlabel";
 
-// curPageURL returns URL segments
-// http://build.eclipse.org/orbit/projects/                                 ==> http://build.eclipse.org/orbit/projects/
-// http://build.eclipse.org/orbit/projects/index.php                        ==> http://build.eclipse.org/orbit/projects/
-// http://build.eclipse.org/orbit/projects/index.php?value=name             ==> http://build.eclipse.org/orbit/projects/
-// echo "current base URL: " . curPageURL();
-
-//$ipoutfilename=__DIR__."/commonFiles/iplogFileErrors.txt";
-//chmod($ipoutfilename, 0666);
-//file_put_contents ($ipoutfilename,"");
-
-
-function curPageURL() {
-
-    $isHTTPS = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on");
-    $port = (isset($_SERVER["SERVER_PORT"]) && ((!$isHTTPS && $_SERVER["SERVER_PORT"] != "80") || ($isHTTPS && $_SERVER["SERVER_PORT"] != "443")));
-    $port = ($port) ? ':'.$_SERVER["SERVER_PORT"] : '';
-    $url = ($isHTTPS ? 'https://' : 'http://').$_SERVER["SERVER_NAME"].$port.$_SERVER["REQUEST_URI"];
-
-
-    $pattern = "!(^.*/)" . "index\.php(\?.*)*$!";
-
-    $matched = preg_match($pattern, $url, $matches);
-    if ($matched)
-    {
-        $url=$matches[1];
-    }
-    return $url;
-
-}
-
-// test of curPageURL
-// http://build.eclipse.org/orbit/projects/                                 ==> http://build.eclipse.org/orbit/projects/
-// http://build.eclipse.org/orbit/projects/index.php                        ==> http://build.eclipse.org/orbit/projects/
-// http://build.eclipse.org/orbit/projects/index.php?value=name             ==> http://build.eclipse.org/orbit/projects/
-// echo "current base URL: " . curPageURL();
-
-
 require $relativePath."/commonFiles/DL.header.php.html";
 include "$relativePath"."/commonFiles/tinyReminder.php";
 
@@ -225,10 +188,10 @@
 
     echo "</p>\n";
 
-       $currentPageURLSegments = curPageURL();
+       $currentPageURLSegments = $repoPath;
        echo "<h2>Orbit Build Repository</h2>\n";
        echo "<p>For HTTP access, a p2 repository for this specific build can be found by adding 'repository' to the end of this download site URL, namely:<br />";
-       echo "<a href=\"${currentPageURLSegments}repository/\">${currentPageURLSegments}repository/</a></p>";
+       echo "<a href=\"${currentPageURLSegments}\">${currentPageURLSegments}</a></p>";
 
 if (file_exists("repository/index.xml.gz")) {
        echo "<p>For use with tools such as <a href=\"http://bndtools.org/\">bndtools</a>, an <a href=\"http://www.osgi.org/Main/HomePage\">OSGi</a> repository index file for this specific build can be found by adding 'repository/index.xml.gz' to the end of this download site URL, namely:<br />";
@@ -257,36 +220,22 @@
 $childRepoXmlList = array();
 $children = $xmlDoc->getElementsByTagName('child');
 
+$bug500601Loc = 'tools/orbit/bug500601';
+
 foreach ($children as $c) {
   $childLoc = $c->getAttribute('location');
-  $proc->setParameter(null, 'repoPath', $repoPath . '/' . $childLoc);
+  // ... /N20161019150530/repository
+  $start = strrpos($childLoc, '/', -12);
+  $childBuildLabel = substr($childLoc, $start + 1, 15);
 
-  $childContent = file_get_contents($repoPath . '/' . $childLoc . '/' . 'content.jar');
+  $childContent = file_get_contents($targetServer . '/' . $bug500601Loc . '/' . $childBuildLabel . '/' . 'content.xml');
   if (! $childContent) {
-    echo 'Could not find ' . $childLoc . '/' . 'content.jar' . ' on server.';
+    echo 'Could not find ' . $bug500601Loc . '/' . $childBuildLabel . '/' . 'content.xml' . ' on server.';
     exit;
   }
-  $childRepoFile = tmpfile();
-  $ret = fwrite($childRepoFile, $childContent);
-  if (! $ret) {
-    echo 'Failed to read ' . $childLoc . '/' . 'content.jar';
-    exit;
-  }
-  $childRepoFileData = stream_get_meta_data($childRepoFile);
-  $childRepoFileName = $childRepoFileData['uri'];
-  $zip = zip_open($childRepoFileName);
-  while ($zip_entry = zip_read($zip)) {
-    if (zip_entry_name($zip_entry) == 'content.xml' &&
-        zip_entry_open($zip, $zip_entry, "r")) {
-      $fstream = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
-      zip_entry_close($zip_entry);
-    }
-  }
-  zip_close($zip);
-  fclose($childRepoFile);
 
-  $childRepoXml = trim($fstream);
-  array_push($childRepoXmlList, $childRepoXml);
+  $childRepoXml = trim($childContent);
+  $childRepoXmlList[$childLoc] = $childRepoXml;
 }
 
 
@@ -337,7 +286,8 @@
 echo "<th>Orbit Contact</th>";
 echo "</tr>";
 
-foreach ($childRepoXmlList as $childRepoXml) {
+foreach ($childRepoXmlList as $childLoc => $childRepoXml) {
+  $proc->setParameter(null, 'repoPath', $repoPath . '/' . $childLoc);
   $childXmlDoc = new DOMDocument();
   $childXmlDoc->loadXML($childRepoXml);
   $html = $proc->transformToXML( $childXmlDoc );