blob: 35423391277e8a9c2bd92aa6c6b36d1c64da2c63 [file] [log] [blame]
david_williams56979242010-04-14 02:00:16 +00001<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'
2 ini_set("display_errors", "true");
3 error_reporting (E_ALL);
4
5 #
6 # Begin: page-specific settings.
7 $pageTitle = "Web Tools Platform Repository";
8 $pageKeywords = "Web Toosl Platform Repository Updates Software Install Eclipse";
9 $pageAuthor = "David Williams";
10 $theme = "Nova";
11
12
13 # Paste your HTML content between the markers!
14 ob_start();
15?>
16
17
18<div id="maincontent" style="padding: 5em; width: 90%; margins: 5%;">
19
20
21
22<?php
23 $xhtmlFile = 'indexHTML.html';
24 // Load the source. Will treat as "raw" XHMTL for now
25 //$doc = new DOMDocument;
26 //$doc->loadHTMLFile($xhtmlFile);
27 //echo $doc->saveHTML();
28 echo file_get_contents($xhtmlFile);
29
30 $current_dir=dirname(realpath($xhtmlFile));
31
32 $lastSegment = basename(rtrim($current_dir, '/'));
33
34 // this assumes the html text ends with something about "... the following URL ... "
35 echo "<p>&nbsp;&nbsp;&nbsp;&nbsp;<b> <code>http://download.eclipse.org/webtools/" . $lastSegment . "</code></b></p>";
36
37?>
38
39
40</div>
41
42<?php
43 $html = ob_get_contents();
44 ob_end_clean();
45
46 # Generate the web page
47 $App->generatePage($theme, $Menu, NULL, $pageAuthor, $pageKeywords, $pageTitle, $html);
48?>