-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplan.php
51 lines (41 loc) · 1.68 KB
/
plan.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
<?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'
#*****************************************************************************
#
#****************************************************************************
#
$pageTitle = "Mylar Plan";
$pageKeywords = "Mylar, Eclipse";
$pageAuthor = "Mik Kersten";
# $filename = $_SERVER['DOCUMENT_ROOT'] . "/mylar/doc/new.html";
$filename = $_SERVER['DOCUMENT_ROOT'] . "/mylar/doc/plan.html";
$dataFile = fopen( $filename, "r" ) ;
if ( $dataFile ) {
while (!feof($dataFile)) {
$contents .= fgets($dataFile, 4096);
}
fclose($dataFile);
} else {
die( "fopen failed for $filename" ) ;
}
# Paste your HTML content between the EOHTML markers!
include("_sideCommon.php");
$html = <<<EOHTML
<div id="maincontent">
<div id="midcolumn" style="width:92%">
$contents
</div>
</div>
EOHTML;
# Generate the web page
$Theme = $App->getThemeClass();
$Theme = $App->getThemeClass($theme);
$Theme->setNavPosition('left');
$Theme->setNav($Nav);
$Theme->setMenu($Menu);
$Theme->setPageAuthor($pageAuthor);
$Theme->setPageKeywords($pageKeywords);
$Theme->setPageTitle($pageTitle);
$Theme->setHtml($html);
$Theme->setBreadcrumb($Breadcrumb);
$Theme->generatePage();
?>