View | Details | Raw Unified | Return to bug 208422 | Differences between
and this patch

Collapse All | Expand All

(-)a/downloadsites/eclipse/default_style.css (-11 / +12 lines)
Lines 1-11 Link Here
1
p, table, td, th {  font-family: arial, helvetica, geneva; font-size: 10pt}
1
p, table, td, th {  font-family: arial, helvetica, geneva; font-size: 10pt}
2
pre {  font-family: "Courier New", Courier, mono; font-size: 10pt}
2
pre {  font-family: "Courier New", Courier, mono; font-size: 10pt}
3
h2 { font-family: arial, helvetica, geneva; font-size: 18pt; font-weight: bold ; line-height: 14px}
3
h2 { font-family: arial, helvetica, geneva; font-size: 18pt; font-weight: bold ; line-height: 14px}
4
code {  font-family: "Courier New", Courier, mono; font-size: 10pt}
4
code {  font-family: "Courier New", Courier, mono; font-size: 10pt}
5
sup {  font-family: arial,helvetica,geneva; font-size: 10px}
5
sup {  font-family: arial,helvetica,geneva; font-size: 10px}
6
h3 {  font-family: arial, helvetica, geneva; font-size: 14pt; font-weight: bold}
6
h3 {  font-family: arial, helvetica, geneva; font-size: 14pt; font-weight: bold}
7
li {  font-family: arial, helvetica, geneva; font-size: 10pt}
7
li {  font-family: arial, helvetica, geneva; font-size: 10pt}
8
h1 {  font-family: arial, helvetica, geneva; font-size: 28px; font-weight: bold}
8
h1 {  font-family: arial, helvetica, geneva; font-size: 28px; font-weight: bold}
9
body {  font-family: arial, helvetica, geneva; font-size: 10pt; clip:   rect(   ); margin-top: 5mm; margin-left: 3mm}
9
body {  font-family: arial, helvetica, geneva; font-size: 10pt; clip:   rect(   ); margin-top: 5mm; margin-left: 3mm}
10
.indextop { font-size: x-large;; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold}
10
.indextop { font-size: x-large;; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold}
11
.indexsub { font-size: xx-small;; font-family: Arial, Helvetica, sans-serif; color: #8080FF}
11
.indexsub { font-size: xx-small;; font-family: Arial, Helvetica, sans-serif; color: #8080FF}
12
.container_php, .container_default{ padding:0 20px}
(-)a/downloadsites/eclipse/downloads/createIndex4x.php (-15 / +54 lines)
Lines 1-20 Link Here
1
<?php   
2
  # Begin: page-specific settings.  Change these. 
3
  $pageTitle    = "Eclipse Project Downloads";
4
  $pageKeywords = "";
5
  $pageAuthor   = "";
6
  
7
  //ini_set("display_errors", "true");
8
  //error_reporting (E_ALL);
9
  $eclipseStream="4";
10
  $otherIndexFile="eclipse3x.html";
11
  $otherStream="3";
12
  include('dlconfig4.php');
13
  $subdirDrops="drops4";
14
 
15
  # Use the basic white layout if the file is not hosted on download.eclipse.org
16
  $layout = (array_key_exists("SERVER_NAME", $_SERVER) && ($_SERVER['SERVER_NAME'] == "download.eclipse.org")) ? "default" : "html";
17
  
18
  ob_start();
19
20
  switch($layout){
21
    case 'html':
22
      #If this file is not on download.eclipse.org print the legacy headers.?> 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
23
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
24
<html xmlns="http://www.w3.org/1999/xhtml">
3
<?php
4
//ini_set("display_errors", "true");
5
//error_reporting (E_ALL);
6
$eclipseStream="4";
7
$otherIndexFile="eclipse3x.html";
8
$otherStream="3";
9
include('dlconfig4.php');
10
$subdirDrops="drops4";
11
12
?>
13
<head>
25
<head>
14
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
26
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
15
<link rel="stylesheet" href="../default_style.css" />
27
<link rel="stylesheet" href="../default_style.css" />
16
<title>Eclipse Project Downloads</title></head>
28
<title><?php echo $pageTitle;?></title></head>
17
<body>
29
<body><?php 
30
      break;    
31
    default:
32
      #Otherwise use the default layout (content printed inside the nova theme).
33
      require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php");
34
      require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php");
35
      require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php");
36
      $App  = new App();
37
      $Nav  = new Nav();
38
      $Menu   = new Menu();
39
      break;      
40
  }?>
41
<div class="container_<?php echo $layout;?>">
18
<table border="0" cellspacing="5" cellpadding="2" width="100%" > 
42
<table border="0" cellspacing="5" cellpadding="2" width="100%" > 
19
43
20
<tr> 
44
<tr> 
Lines 414-420 Link Here
414
    }
438
    }
415
}
439
}
416
440
417
?>  
441
echo '</div>';
418
</body>
442
$html = ob_get_clean();
419
</html>
443
444
switch($layout){
445
    case 'html':
446
      #echo the computed content with the body and html closing tag. This is for the old layout.
447
      echo $html;
448
      echo '</body>';
449
      echo '</html>';
450
      break;
451
      	
452
	default:
453
      #For the default view we use $App->generatePage to generate the page inside nova.
454
	  $App->AddExtraHtmlHeader('<link rel="stylesheet" href="../default_style.css" />');
455
	  $App->Promotion = FALSE;
456
	  $App->generatePage('Nova', $Menu, NULL , $pageAuthor, $pageKeywords, $pageTitle, $html);
457
	  break;	
458
}
420
459

Return to bug 208422